From beed964315df717366f013f279e419993d25464f Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 01:50:34 +0000 Subject: [PATCH 1/5] feat: Enable REST transport for most of Java and Go clients PiperOrigin-RevId: 456641589 Source-Link: https://github.com/googleapis/googleapis/commit/8a251f5225b789b2383207ffd978f6aa3d77fcf7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4ca52a529cf01308d9714950edffbea3560cfbdb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGNhNTJhNTI5Y2YwMTMwOGQ5NzE0OTUwZWRmZmJlYTM1NjBjZmJkYiJ9 --- .../vpcaccess/v1/VpcAccessServiceGrpc.java | 722 --------- .../vpcaccess/v1/VpcAccessServiceClient.java | 54 +- .../v1/VpcAccessServiceSettings.java | 30 +- .../cloud/vpcaccess/v1/gapic_metadata.json | 0 .../cloud/vpcaccess/v1/package-info.java | 0 .../GrpcVpcAccessServiceCallableFactory.java | 0 .../v1/stub/GrpcVpcAccessServiceStub.java | 1 + ...tpJsonVpcAccessServiceCallableFactory.java | 105 ++ .../v1/stub/HttpJsonVpcAccessServiceStub.java | 413 +++++ .../v1/stub/VpcAccessServiceStub.java | 6 +- .../v1/stub/VpcAccessServiceStubSettings.java | 59 +- .../vpcaccess/v1/MockVpcAccessService.java | 0 .../v1/MockVpcAccessServiceImpl.java | 0 .../VpcAccessServiceClientHttpJsonTest.java | 490 ++++++ .../v1/VpcAccessServiceClientTest.java | 0 .../vpcaccess/v1/VpcAccessServiceGrpc.java | 579 +++++++ .../google/cloud/vpcaccess/v1/Connector.java | 1332 +++++++---------- .../cloud/vpcaccess/v1/ConnectorName.java | 0 .../vpcaccess/v1/ConnectorOrBuilder.java | 103 +- .../vpcaccess/v1/CreateConnectorRequest.java | 567 +++---- .../v1/CreateConnectorRequestOrBuilder.java | 64 +- .../vpcaccess/v1/DeleteConnectorRequest.java | 339 ++--- .../v1/DeleteConnectorRequestOrBuilder.java | 29 + .../vpcaccess/v1/GetConnectorRequest.java | 339 ++--- .../v1/GetConnectorRequestOrBuilder.java | 29 + .../vpcaccess/v1/ListConnectorsRequest.java | 452 +++--- .../v1/ListConnectorsRequestOrBuilder.java | 47 +- .../vpcaccess/v1/ListConnectorsResponse.java | 460 +++--- .../v1/ListConnectorsResponseOrBuilder.java | 45 +- .../cloud/vpcaccess/v1/LocationName.java | 0 .../cloud/vpcaccess/v1/OperationMetadata.java | 674 ++++----- .../v1/OperationMetadataOrBuilder.java | 78 +- .../cloud/vpcaccess/v1/VpcAccessProto.java | 213 +++ .../cloud/vpcaccess/v1/vpc_access.proto | 0 .../getconnector/SyncGetConnector.java | 46 + .../SyncCreateSetCredentialsProvider.java | 42 + .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 39 + .../createconnector/AsyncCreateConnector.java | 50 + .../AsyncCreateConnectorLRO.java | 50 + .../createconnector/SyncCreateConnector.java | 45 + ...eConnectorLocationnameStringConnector.java | 42 + ...cCreateConnectorStringStringConnector.java | 42 + .../deleteconnector/AsyncDeleteConnector.java | 47 + .../AsyncDeleteConnectorLRO.java | 48 + .../deleteconnector/SyncDeleteConnector.java | 43 + .../SyncDeleteConnectorConnectorname.java | 39 + .../SyncDeleteConnectorString.java | 39 + .../getconnector/AsyncGetConnector.java | 47 + .../getconnector/SyncGetConnector.java | 43 + .../SyncGetConnectorConnectorname.java | 39 + .../getconnector/SyncGetConnectorString.java | 39 + .../listconnectors/AsyncListConnectors.java | 51 + .../AsyncListConnectorsPaged.java | 59 + .../listconnectors/SyncListConnectors.java | 47 + .../SyncListConnectorsLocationname.java | 41 + .../SyncListConnectorsString.java | 41 + .../getconnector/SyncGetConnector.java | 46 + .../v1/DeleteConnectorRequestOrBuilder.java | 54 - .../v1/GetConnectorRequestOrBuilder.java | 54 - .../cloud/vpcaccess/v1/VpcAccessProto.java | 242 --- 61 files changed, 4738 insertions(+), 3908 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 (93%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java (89%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/gapic_metadata.json (100%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/package-info.java (100%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceCallableFactory.java (100%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceStub.java (99%) create mode 100644 owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceCallableFactory.java create mode 100644 owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.java rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStub.java (95%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java (89%) 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%) create mode 100644 owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientHttpJsonTest.java rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientTest.java (100%) create mode 100644 owl-bot-staging/v1/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java rename {proto-google-cloud-vpcaccess-v1 => owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java (73%) rename {proto-google-cloud-vpcaccess-v1 => owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java (100%) rename {proto-google-cloud-vpcaccess-v1 => owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java (71%) rename {proto-google-cloud-vpcaccess-v1 => owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java (64%) rename {proto-google-cloud-vpcaccess-v1 => owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequestOrBuilder.java (53%) rename {proto-google-cloud-vpcaccess-v1 => owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequest.java (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 (100%) create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/stub/vpcaccessservicestubsettings/getconnector/SyncGetConnector.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnector.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnectorLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnector.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorLocationnameStringConnector.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorStringStringConnector.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnector.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnectorLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnector.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorConnectorname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/AsyncGetConnector.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnector.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorConnectorname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectors.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectorsPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectors.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsLocationname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessservicesettings/getconnector/SyncGetConnector.java 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 93% 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 70d1472a..a7f6cc30 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 @@ -19,6 +19,7 @@ import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; @@ -30,7 +31,6 @@ import com.google.cloud.vpcaccess.v1.stub.VpcAccessServiceStubSettings; import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; @@ -63,13 +63,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. *
* @@ -106,13 +106,29 @@ * VpcAccessServiceClient.create(vpcAccessServiceSettings); * } * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * VpcAccessServiceSettings vpcAccessServiceSettings =
+ *     VpcAccessServiceSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             VpcAccessServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * VpcAccessServiceClient vpcAccessServiceClient =
+ *     VpcAccessServiceClient.create(vpcAccessServiceSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") public class VpcAccessServiceClient implements BackgroundResource { private final VpcAccessServiceSettings settings; private final VpcAccessServiceStub stub; - private final OperationsClient operationsClient; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of VpcAccessServiceClient with default settings. */ public static final VpcAccessServiceClient create() throws IOException { @@ -144,13 +160,17 @@ public static final VpcAccessServiceClient create(VpcAccessServiceStub stub) { protected VpcAccessServiceClient(VpcAccessServiceSettings settings) throws IOException { this.settings = settings; this.stub = ((VpcAccessServiceStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } protected VpcAccessServiceClient(VpcAccessServiceStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final VpcAccessServiceSettings getSettings() { @@ -165,10 +185,18 @@ public VpcAccessServiceStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - public final OperationsClient getOperationsClient() { + public final com.google.longrunning.OperationsClient getOperationsClient() { return operationsClient; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a Serverless VPC Access connector, returns an operation. @@ -724,10 +752,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( @@ -777,10 +802,7 @@ public ApiFuture createPageAsync( public static class ListConnectorsFixedSizeCollection extends AbstractFixedSizeCollection< - ListConnectorsRequest, - ListConnectorsResponse, - Connector, - ListConnectorsPage, + ListConnectorsRequest, ListConnectorsResponse, Connector, ListConnectorsPage, ListConnectorsFixedSizeCollection> { private ListConnectorsFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java similarity index 89% 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 dad3d315..0387a002 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 @@ -23,11 +23,13 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.vpcaccess.v1.stub.VpcAccessServiceStubSettings; @@ -44,9 +46,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 @@ -133,11 +135,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return VpcAccessServiceStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return VpcAccessServiceStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return VpcAccessServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return VpcAccessServiceStubSettings.defaultTransportChannelProvider(); } @@ -147,11 +156,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return VpcAccessServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -189,6 +204,11 @@ private static Builder createDefault() { return new Builder(VpcAccessServiceStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(VpcAccessServiceStubSettings.newHttpJsonBuilder()); + } + public VpcAccessServiceStubSettings.Builder getStubSettingsBuilder() { return ((VpcAccessServiceStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/gapic_metadata.json similarity index 100% rename from google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/gapic_metadata.json diff --git a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/package-info.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/package-info.java similarity index 100% rename from google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/package-info.java diff --git a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceCallableFactory.java similarity index 100% rename from google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceCallableFactory.java diff --git a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceStub.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceStub.java similarity index 99% 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..38a464fe 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 @@ -39,6 +39,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/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 new file mode 100644 index 00000000..77821620 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * 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.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the VpcAccessService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonVpcAccessServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1/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 new file mode 100644 index 00000000..23402820 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/HttpJsonVpcAccessServiceStub.java @@ -0,0 +1,413 @@ +/* + * 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.stub; + +import static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListConnectorsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +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.vpcaccess.v1.Connector; +import com.google.cloud.vpcaccess.v1.CreateConnectorRequest; +import com.google.cloud.vpcaccess.v1.DeleteConnectorRequest; +import com.google.cloud.vpcaccess.v1.GetConnectorRequest; +import com.google.cloud.vpcaccess.v1.ListConnectorsRequest; +import com.google.cloud.vpcaccess.v1.ListConnectorsResponse; +import com.google.cloud.vpcaccess.v1.OperationMetadata; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the VpcAccessService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonVpcAccessServiceStub extends VpcAccessServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Empty.getDescriptor()) + .add(Connector.getDescriptor()) + .add(OperationMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + createConnectorMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vpcaccess.v1.VpcAccessService/CreateConnector") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/connectors", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "connectorId", request.getConnectorId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("connector", request.getConnector())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateConnectorRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getConnectorMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vpcaccess.v1.VpcAccessService/GetConnector") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/connectors/*}", + 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(Connector.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listConnectorsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vpcaccess.v1.VpcAccessService/ListConnectors") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/connectors", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListConnectorsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteConnectorMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.vpcaccess.v1.VpcAccessService/DeleteConnector") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/connectors/*}", + 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(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteConnectorRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private final UnaryCallable createConnectorCallable; + private final OperationCallable + createConnectorOperationCallable; + private final UnaryCallable getConnectorCallable; + private final UnaryCallable listConnectorsCallable; + private final UnaryCallable + listConnectorsPagedCallable; + private final UnaryCallable deleteConnectorCallable; + private final OperationCallable + deleteConnectorOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonVpcAccessServiceStub create(VpcAccessServiceStubSettings settings) + throws IOException { + return new HttpJsonVpcAccessServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonVpcAccessServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonVpcAccessServiceStub( + VpcAccessServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonVpcAccessServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonVpcAccessServiceStub( + VpcAccessServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonVpcAccessServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonVpcAccessServiceStub( + VpcAccessServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonVpcAccessServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonVpcAccessServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonVpcAccessServiceStub( + VpcAccessServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings createConnectorTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createConnectorMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getConnectorTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getConnectorMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listConnectorsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listConnectorsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteConnectorTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteConnectorMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createConnectorCallable = + callableFactory.createUnaryCallable( + createConnectorTransportSettings, settings.createConnectorSettings(), clientContext); + this.createConnectorOperationCallable = + callableFactory.createOperationCallable( + createConnectorTransportSettings, + settings.createConnectorOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getConnectorCallable = + callableFactory.createUnaryCallable( + getConnectorTransportSettings, settings.getConnectorSettings(), clientContext); + this.listConnectorsCallable = + callableFactory.createUnaryCallable( + listConnectorsTransportSettings, settings.listConnectorsSettings(), clientContext); + this.listConnectorsPagedCallable = + callableFactory.createPagedCallable( + listConnectorsTransportSettings, settings.listConnectorsSettings(), clientContext); + this.deleteConnectorCallable = + callableFactory.createUnaryCallable( + deleteConnectorTransportSettings, settings.deleteConnectorSettings(), clientContext); + this.deleteConnectorOperationCallable = + callableFactory.createOperationCallable( + deleteConnectorTransportSettings, + settings.deleteConnectorOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createConnectorMethodDescriptor); + methodDescriptors.add(getConnectorMethodDescriptor); + methodDescriptors.add(listConnectorsMethodDescriptor); + methodDescriptors.add(deleteConnectorMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable createConnectorCallable() { + return createConnectorCallable; + } + + @Override + public OperationCallable + createConnectorOperationCallable() { + return createConnectorOperationCallable; + } + + @Override + public UnaryCallable getConnectorCallable() { + return getConnectorCallable; + } + + @Override + public UnaryCallable listConnectorsCallable() { + return listConnectorsCallable; + } + + @Override + public UnaryCallable + listConnectorsPagedCallable() { + return listConnectorsPagedCallable; + } + + @Override + public UnaryCallable deleteConnectorCallable() { + return deleteConnectorCallable; + } + + @Override + public OperationCallable + deleteConnectorOperationCallable() { + return deleteConnectorOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} 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 95% 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 675ea276..18d84e28 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 @@ -43,7 +43,11 @@ public abstract class VpcAccessServiceStub implements BackgroundResource { public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; } public OperationCallable 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 89% 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 af516c9f..9f8f2bf1 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 @@ -28,6 +28,9 @@ import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; @@ -69,9 +72,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 @@ -207,6 +210,11 @@ public VpcAccessServiceStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcVpcAccessServiceStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonVpcAccessServiceStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -239,18 +247,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(VpcAccessServiceStubSettings.class)) @@ -258,11 +273,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(VpcAccessServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return VpcAccessServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -381,6 +415,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .createConnectorSettings() 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/owl-bot-staging/v1/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 new file mode 100644 index 00000000..e2487409 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientHttpJsonTest.java @@ -0,0 +1,490 @@ +/* + * 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 static com.google.cloud.vpcaccess.v1.VpcAccessServiceClient.ListConnectorsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +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.vpcaccess.v1.stub.HttpJsonVpcAccessServiceStub; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class VpcAccessServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static VpcAccessServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonVpcAccessServiceStub.getMethodDescriptors(), + VpcAccessServiceSettings.getDefaultEndpoint()); + VpcAccessServiceSettings settings = + VpcAccessServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + VpcAccessServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = VpcAccessServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createConnectorTest() throws Exception { + Connector expectedResponse = + Connector.newBuilder() + .setName(ConnectorName.of("[PROJECT]", "[LOCATION]", "[CONNECTOR]").toString()) + .setNetwork("network1843485230") + .setIpCidrRange("ipCidrRange-866375486") + .setMinThroughput(2064735799) + .setMaxThroughput(1407819749) + .addAllConnectedProjects(new ArrayList()) + .setSubnet(Connector.Subnet.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createConnectorTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String connectorId = "connectorId1724784200"; + Connector connector = Connector.newBuilder().build(); + + Connector actualResponse = client.createConnectorAsync(parent, connectorId, connector).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + 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 createConnectorExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String connectorId = "connectorId1724784200"; + Connector connector = Connector.newBuilder().build(); + client.createConnectorAsync(parent, connectorId, connector).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createConnectorTest2() throws Exception { + Connector expectedResponse = + Connector.newBuilder() + .setName(ConnectorName.of("[PROJECT]", "[LOCATION]", "[CONNECTOR]").toString()) + .setNetwork("network1843485230") + .setIpCidrRange("ipCidrRange-866375486") + .setMinThroughput(2064735799) + .setMaxThroughput(1407819749) + .addAllConnectedProjects(new ArrayList()) + .setSubnet(Connector.Subnet.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createConnectorTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + String connectorId = "connectorId1724784200"; + Connector connector = Connector.newBuilder().build(); + + Connector actualResponse = client.createConnectorAsync(parent, connectorId, connector).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + 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 createConnectorExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + String connectorId = "connectorId1724784200"; + Connector connector = Connector.newBuilder().build(); + client.createConnectorAsync(parent, connectorId, connector).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getConnectorTest() throws Exception { + Connector expectedResponse = + Connector.newBuilder() + .setName(ConnectorName.of("[PROJECT]", "[LOCATION]", "[CONNECTOR]").toString()) + .setNetwork("network1843485230") + .setIpCidrRange("ipCidrRange-866375486") + .setMinThroughput(2064735799) + .setMaxThroughput(1407819749) + .addAllConnectedProjects(new ArrayList()) + .setSubnet(Connector.Subnet.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ConnectorName name = ConnectorName.of("[PROJECT]", "[LOCATION]", "[CONNECTOR]"); + + Connector actualResponse = client.getConnector(name); + Assert.assertEquals(expectedResponse, actualResponse); + + 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 getConnectorExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ConnectorName name = ConnectorName.of("[PROJECT]", "[LOCATION]", "[CONNECTOR]"); + client.getConnector(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConnectorTest2() throws Exception { + Connector expectedResponse = + Connector.newBuilder() + .setName(ConnectorName.of("[PROJECT]", "[LOCATION]", "[CONNECTOR]").toString()) + .setNetwork("network1843485230") + .setIpCidrRange("ipCidrRange-866375486") + .setMinThroughput(2064735799) + .setMaxThroughput(1407819749) + .addAllConnectedProjects(new ArrayList()) + .setSubnet(Connector.Subnet.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-698/locations/location-698/connectors/connector-698"; + + Connector actualResponse = client.getConnector(name); + Assert.assertEquals(expectedResponse, actualResponse); + + 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 getConnectorExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-698/locations/location-698/connectors/connector-698"; + client.getConnector(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConnectorsTest() throws Exception { + Connector responsesElement = Connector.newBuilder().build(); + ListConnectorsResponse expectedResponse = + ListConnectorsResponse.newBuilder() + .setNextPageToken("") + .addAllConnectors(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListConnectorsPagedResponse pagedListResponse = client.listConnectors(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConnectorsList().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 listConnectorsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listConnectors(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConnectorsTest2() throws Exception { + Connector responsesElement = Connector.newBuilder().build(); + ListConnectorsResponse expectedResponse = + ListConnectorsResponse.newBuilder() + .setNextPageToken("") + .addAllConnectors(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListConnectorsPagedResponse pagedListResponse = client.listConnectors(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConnectorsList().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 listConnectorsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listConnectors(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteConnectorTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteConnectorTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ConnectorName name = ConnectorName.of("[PROJECT]", "[LOCATION]", "[CONNECTOR]"); + + client.deleteConnectorAsync(name).get(); + + 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 deleteConnectorExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ConnectorName name = ConnectorName.of("[PROJECT]", "[LOCATION]", "[CONNECTOR]"); + client.deleteConnectorAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteConnectorTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteConnectorTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-698/locations/location-698/connectors/connector-698"; + + client.deleteConnectorAsync(name).get(); + + 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 deleteConnectorExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-698/locations/location-698/connectors/connector-698"; + client.deleteConnectorAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } +} diff --git a/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientTest.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientTest.java similarity index 100% rename from google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientTest.java rename to owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientTest.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java new file mode 100644 index 00000000..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 73% rename from proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java rename to owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java index f647dd8a..324d69c9 100644 --- a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java +++ b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; /** - * - * *
  * Definition of a Serverless VPC Access connector.
  * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.Connector} */ -public final class Connector extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Connector extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vpcaccess.v1.Connector) ConnectorOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Connector.newBuilder() to construct. private Connector(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Connector() { name_ = ""; network_ = ""; @@ -47,15 +29,16 @@ private Connector() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Connector(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Connector( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,77 +58,69 @@ private Connector( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - network_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + network_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - ipCidrRange_ = s; - break; - } - case 32: - { - int rawValue = input.readEnum(); + ipCidrRange_ = s; + break; + } + case 32: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 40: - { - minThroughput_ = input.readInt32(); - break; + state_ = rawValue; + break; + } + case 40: { + + minThroughput_ = input.readInt32(); + break; + } + case 48: { + + maxThroughput_ = input.readInt32(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + connectedProjects_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 48: - { - maxThroughput_ = input.readInt32(); - break; + connectedProjects_.add(s); + break; + } + case 66: { + com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder subBuilder = null; + if (subnet_ != null) { + subBuilder = subnet_.toBuilder(); } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - connectedProjects_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - connectedProjects_.add(s); - break; + subnet_ = input.readMessage(com.google.cloud.vpcaccess.v1.Connector.Subnet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(subnet_); + subnet_ = subBuilder.buildPartial(); } - case 66: - { - com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder subBuilder = null; - if (subnet_ != null) { - subBuilder = subnet_.toBuilder(); - } - subnet_ = - input.readMessage( - com.google.cloud.vpcaccess.v1.Connector.Subnet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(subnet_); - subnet_ = subBuilder.buildPartial(); - } - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -153,7 +128,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 +138,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 +169,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Connector is deployed and ready to receive traffic.
      * 
@@ -209,8 +177,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(1), /** - * - * *
      * An Insert operation is in progress. Transient condition.
      * 
@@ -219,8 +185,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(2), /** - * - * *
      * A Delete operation is in progress. Transient condition.
      * 
@@ -229,8 +193,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DELETING(3), /** - * - * *
      * Connector is in a bad state, manual deletion recommended.
      * 
@@ -239,8 +201,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ERROR(4), /** - * - * *
      * The connector is being updated.
      * 
@@ -252,8 +212,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Invalid state.
      * 
@@ -262,8 +220,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 +228,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 +236,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 +244,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 +252,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 4; /** - * - * *
      * The connector is being updated.
      * 
@@ -312,6 +260,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 +285,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 +347,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 +360,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 +372,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 +385,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 +396,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 +424,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 +452,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 +478,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 +509,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -591,15 +517,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 +533,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 +553,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 +560,6 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string project_id = 2; - * * @return The projectId. */ @java.lang.Override @@ -645,15 +568,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 +583,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 +601,6 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -690,7 +612,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 +643,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 +674,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 +765,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 +793,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 +814,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 +835,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 +846,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 +885,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 +925,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 +933,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 +948,6 @@ public java.lang.String getName() { } } /** - * - * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -1051,14 +956,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 +972,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -1076,22 +980,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 +1002,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 +1019,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 +1036,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 +1043,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 +1058,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 +1065,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 +1081,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 +1088,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 +1109,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 +1125,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 +1151,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 +1165,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 +1189,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 +1208,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 +1241,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 +1254,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 +1287,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 +1301,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 +1335,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 +1377,11 @@ public int getMinThroughput() { public static final int MAX_THROUGHPUT_FIELD_NUMBER = 6; private int maxThroughput_; /** - * - * *
    * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
    * 
* * int32 max_throughput = 6; - * * @return The maxThroughput. */ @java.lang.Override @@ -1531,45 +1392,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 +1427,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 +1455,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.
    * 
@@ -1642,7 +1479,6 @@ public com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder getSubnetOrBuilde } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1654,7 +1490,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_); } @@ -1698,13 +1535,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 +1555,8 @@ public int getSerializedSize() { size += 1 * getConnectedProjectsList().size(); } if (subnet_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSubnet()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSubnet()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1725,23 +1566,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vpcaccess.v1.Connector)) { return super.equals(obj); } com.google.cloud.vpcaccess.v1.Connector other = (com.google.cloud.vpcaccess.v1.Connector) obj; - if (!getName().equals(other.getName())) return false; - if (!getNetwork().equals(other.getNetwork())) return false; - if (!getIpCidrRange().equals(other.getIpCidrRange())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getNetwork() + .equals(other.getNetwork())) return false; + if (!getIpCidrRange() + .equals(other.getIpCidrRange())) return false; if (state_ != other.state_) return false; - if (getMinThroughput() != other.getMinThroughput()) return false; - if (getMaxThroughput() != other.getMaxThroughput()) return false; - if (!getConnectedProjectsList().equals(other.getConnectedProjectsList())) return false; + if (getMinThroughput() + != other.getMinThroughput()) return false; + if (getMaxThroughput() + != other.getMaxThroughput()) return false; + if (!getConnectedProjectsList() + .equals(other.getConnectedProjectsList())) return false; if (hasSubnet() != other.hasSubnet()) return false; if (hasSubnet()) { - if (!getSubnet().equals(other.getSubnet())) return false; + if (!getSubnet() + .equals(other.getSubnet())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1779,127 +1627,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vpcaccess.v1.Connector parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vpcaccess.v1.Connector parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vpcaccess.v1.Connector parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.Connector parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vpcaccess.v1.Connector prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Definition of a Serverless VPC Access connector.
    * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.Connector} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vpcaccess.v1.Connector) com.google.cloud.vpcaccess.v1.ConnectorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_Connector_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_Connector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.Connector.class, - com.google.cloud.vpcaccess.v1.Connector.Builder.class); + com.google.cloud.vpcaccess.v1.Connector.class, com.google.cloud.vpcaccess.v1.Connector.Builder.class); } // Construct using com.google.cloud.vpcaccess.v1.Connector.newBuilder() @@ -1907,15 +1746,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(); @@ -1943,9 +1783,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 @@ -1964,8 +1804,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_; @@ -1991,39 +1830,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; @@ -2094,25 +1932,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 +1956,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 +1977,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 +2032,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 +2052,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 +2073,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 +2128,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 +2149,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 +2171,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 +2229,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 +2281,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 +2315,42 @@ public int getMinThroughput() { return minThroughput_; } /** - * - * *
      * Minimum throughput of the connector in Mbps. Default and min is 200.
      * 
* * int32 min_throughput = 5; - * * @param value The minThroughput to set. * @return This builder for chaining. */ public Builder setMinThroughput(int value) { - + minThroughput_ = value; onChanged(); return this; } /** - * - * *
      * Minimum throughput of the connector in Mbps. Default and min is 200.
      * 
* * int32 min_throughput = 5; - * * @return This builder for chaining. */ public Builder clearMinThroughput() { - + minThroughput_ = 0; onChanged(); return this; } - private int maxThroughput_; + private int maxThroughput_ ; /** - * - * *
      * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
      * 
* * int32 max_throughput = 6; - * * @return The maxThroughput. */ @java.lang.Override @@ -2590,90 +2358,71 @@ public int getMaxThroughput() { return maxThroughput_; } /** - * - * *
      * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
      * 
* * int32 max_throughput = 6; - * * @param value The maxThroughput to set. * @return This builder for chaining. */ public Builder setMaxThroughput(int value) { - + maxThroughput_ = value; onChanged(); return this; } /** - * - * *
      * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
      * 
* * int32 max_throughput = 6; - * * @return This builder for chaining. */ public Builder clearMaxThroughput() { - + maxThroughput_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList connectedProjects_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList connectedProjects_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureConnectedProjectsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { connectedProjects_ = new com.google.protobuf.LazyStringArrayList(connectedProjects_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the connectedProjects. */ - public com.google.protobuf.ProtocolStringList getConnectedProjectsList() { + public com.google.protobuf.ProtocolStringList + getConnectedProjectsList() { return connectedProjects_.getUnmodifiableView(); } /** - * - * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of connectedProjects. */ public int getConnectedProjectsCount() { return connectedProjects_.size(); } /** - * - * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The connectedProjects at the given index. */ @@ -2681,95 +2430,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 +2513,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 +2535,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 +2583,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 +2601,6 @@ public Builder setSubnet( return this; } /** - * - * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2897,9 +2611,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 +2623,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 +2641,6 @@ public Builder clearSubnet() { return this; } /** - * - * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2940,13 +2648,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 +2663,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 +2675,21 @@ public com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder getSubnetOrBuilde * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vpcaccess.v1.Connector.Subnet, - com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder, - com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder> + com.google.cloud.vpcaccess.v1.Connector.Subnet, com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder, com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder> getSubnetFieldBuilder() { if (subnetBuilder_ == null) { - subnetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vpcaccess.v1.Connector.Subnet, - com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder, - com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder>( - getSubnet(), getParentForChildren(), isClean()); + subnetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vpcaccess.v1.Connector.Subnet, com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder, com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder>( + getSubnet(), + getParentForChildren(), + isClean()); subnet_ = null; } return subnetBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2999,12 +2699,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 +2713,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 +2737,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vpcaccess.v1.Connector getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java similarity index 100% rename from proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java rename to owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java diff --git a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java similarity index 71% rename from proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java index 5ee83598..b6d81c7a 100644 --- a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java @@ -1,242 +1,173 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; -public interface ConnectorOrBuilder - extends +public interface ConnectorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vpcaccess.v1.Connector) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name in the format `projects/*/locations/*/connectors/*`.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name in the format `projects/*/locations/*/connectors/*`.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Name of a VPC network.
    * 
* * string network = 2; - * * @return The network. */ java.lang.String getNetwork(); /** - * - * *
    * Name of a VPC network.
    * 
* * string network = 2; - * * @return The bytes for network. */ - com.google.protobuf.ByteString getNetworkBytes(); + com.google.protobuf.ByteString + getNetworkBytes(); /** - * - * *
    * The range of internal addresses that follows RFC 4632 notation.
    * Example: `10.132.0.0/28`.
    * 
* * string ip_cidr_range = 3; - * * @return The ipCidrRange. */ java.lang.String getIpCidrRange(); /** - * - * *
    * The range of internal addresses that follows RFC 4632 notation.
    * Example: `10.132.0.0/28`.
    * 
* * string ip_cidr_range = 3; - * * @return The bytes for ipCidrRange. */ - com.google.protobuf.ByteString getIpCidrRangeBytes(); + com.google.protobuf.ByteString + getIpCidrRangeBytes(); /** - * - * *
    * Output only. State of the VPC access connector.
    * 
* - * - * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. State of the VPC access connector.
    * 
* - * - * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.vpcaccess.v1.Connector.State getState(); /** - * - * *
    * Minimum throughput of the connector in Mbps. Default and min is 200.
    * 
* * int32 min_throughput = 5; - * * @return The minThroughput. */ int getMinThroughput(); /** - * - * *
    * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
    * 
* * int32 max_throughput = 6; - * * @return The maxThroughput. */ int getMaxThroughput(); /** - * - * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the connectedProjects. */ - java.util.List getConnectedProjectsList(); + java.util.List + getConnectedProjectsList(); /** - * - * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of connectedProjects. */ int getConnectedProjectsCount(); /** - * - * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The connectedProjects at the given index. */ java.lang.String getConnectedProjects(int index); /** - * - * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the connectedProjects at the given index. */ - com.google.protobuf.ByteString getConnectedProjectsBytes(int index); + com.google.protobuf.ByteString + getConnectedProjectsBytes(int index); /** - * - * *
    * The subnet in which to house the VPC Access Connector.
    * 
* * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; - * * @return Whether the subnet field is set. */ boolean hasSubnet(); /** - * - * *
    * The subnet in which to house the VPC Access Connector.
    * 
* * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; - * * @return The subnet. */ com.google.cloud.vpcaccess.v1.Connector.Subnet getSubnet(); /** - * - * *
    * The subnet in which to house the VPC Access Connector.
    * 
diff --git a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java similarity index 64% rename from proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java rename to owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java index 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..0d0d61b5 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessProto.java @@ -0,0 +1,213 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vpcaccess/v1/vpc_access.proto + +package com.google.cloud.vpcaccess.v1; + +public final class VpcAccessProto { + private VpcAccessProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_Connector_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n*google/cloud/vpcaccess/v1/vpc_access.p" + + "roto\022\031google.cloud.vpcaccess.v1\032\034google/" + + "api/annotations.proto\032\027google/api/client" + + ".proto\032\037google/api/field_behavior.proto\032" + + "\031google/api/resource.proto\032#google/longr" + + "unning/operations.proto\032\037google/protobuf" + + "/timestamp.proto\"\204\004\n\tConnector\022\014\n\004name\030\001" + + " \001(\t\022\017\n\007network\030\002 \001(\t\022\025\n\rip_cidr_range\030\003" + + " \001(\t\022>\n\005state\030\004 \001(\0162*.google.cloud.vpcac" + + "cess.v1.Connector.StateB\003\340A\003\022\026\n\016min_thro" + + "ughput\030\005 \001(\005\022\026\n\016max_throughput\030\006 \001(\005\022\037\n\022" + + "connected_projects\030\007 \003(\tB\003\340A\003\022;\n\006subnet\030" + + "\010 \001(\0132+.google.cloud.vpcaccess.v1.Connec" + + "tor.Subnet\032*\n\006Subnet\022\014\n\004name\030\001 \001(\t\022\022\n\npr" + + "oject_id\030\002 \001(\t\"^\n\005State\022\025\n\021STATE_UNSPECI" + + "FIED\020\000\022\t\n\005READY\020\001\022\014\n\010CREATING\020\002\022\014\n\010DELET" + + "ING\020\003\022\t\n\005ERROR\020\004\022\014\n\010UPDATING\020\005:g\352Ad\n\"vpc" + + "access.googleapis.com/Connector\022>project" + + "s/{project}/locations/{location}/connect" + + "ors/{connector}\"\254\001\n\026CreateConnectorReque" + + "st\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.go" + + "ogleapis.com/Location\022\031\n\014connector_id\030\002 " + + "\001(\tB\003\340A\002\022<\n\tconnector\030\003 \001(\0132$.google.clo" + + "ud.vpcaccess.v1.ConnectorB\003\340A\002\"O\n\023GetCon" + + "nectorRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpc" + + "access.googleapis.com/Connector\"y\n\025ListC" + + "onnectorsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" + + "\n!locations.googleapis.com/Location\022\021\n\tp" + + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\026Li" + + "stConnectorsResponse\0228\n\nconnectors\030\001 \003(\013" + + "2$.google.cloud.vpcaccess.v1.Connector\022\027" + + "\n\017next_page_token\030\002 \001(\t\"R\n\026DeleteConnect" + + "orRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpcacce" + + "ss.googleapis.com/Connector\"\315\001\n\021Operatio" + + "nMetadata\022\023\n\006method\030\001 \001(\tB\003\340A\003\0224\n\013create" + + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0221\n\010end_time\030\003 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\022:\n\006target\030\005 \001(\tB*\340A\003\372A$\n" + + "\"vpcaccess.googleapis.com/Connector2\374\006\n\020" + + "VpcAccessService\022\350\001\n\017CreateConnector\0221.g" + + "oogle.cloud.vpcaccess.v1.CreateConnector" + + "Request\032\035.google.longrunning.Operation\"\202" + + "\001\202\323\344\223\002;\"./v1/{parent=projects/*/location" + + "s/*}/connectors:\tconnector\332A\035parent,conn" + + "ector_id,connector\312A\036\n\tConnector\022\021Operat" + + "ionMetadata\022\243\001\n\014GetConnector\022..google.cl" + + "oud.vpcaccess.v1.GetConnectorRequest\032$.g" + + "oogle.cloud.vpcaccess.v1.Connector\"=\202\323\344\223" + + "\0020\022./v1/{name=projects/*/locations/*/con" + + "nectors/*}\332A\004name\022\266\001\n\016ListConnectors\0220.g" + + "oogle.cloud.vpcaccess.v1.ListConnectorsR" + + "equest\0321.google.cloud.vpcaccess.v1.ListC" + + "onnectorsResponse\"?\202\323\344\223\0020\022./v1/{parent=p" + + "rojects/*/locations/*}/connectors\332A\006pare" + + "nt\022\317\001\n\017DeleteConnector\0221.google.cloud.vp" + + "caccess.v1.DeleteConnectorRequest\032\035.goog" + + "le.longrunning.Operation\"j\202\323\344\223\0020*./v1/{n" + + "ame=projects/*/locations/*/connectors/*}" + + "\332A\004name\312A*\n\025google.protobuf.Empty\022\021Opera" + + "tionMetadata\032L\312A\030vpcaccess.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/clou" + + "d-platformB\314\001\n\035com.google.cloud.vpcacces" + + "s.v1B\016VpcAccessProtoP\001ZBgoogle.golang.or" + + "g/genproto/googleapis/cloud/vpcaccess/v1" + + ";vpcaccess\252\002\031Google.Cloud.VpcAccess.V1\312\002" + + "\031Google\\Cloud\\VpcAccess\\V1\352\002\034Google::Clo" + + "ud::VpcAccess::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_vpcaccess_v1_Connector_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_Connector_descriptor, + new java.lang.String[] { "Name", "Network", "IpCidrRange", "State", "MinThroughput", "MaxThroughput", "ConnectedProjects", "Subnet", }); + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor = + internal_static_google_cloud_vpcaccess_v1_Connector_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor, + new java.lang.String[] { "Name", "ProjectId", }); + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor, + new java.lang.String[] { "Parent", "ConnectorId", "Connector", }); + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor, + new java.lang.String[] { "Connectors", "NextPageToken", }); + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor, + new java.lang.String[] { "Method", "CreateTime", "EndTime", "Target", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-vpcaccess-v1/src/main/proto/google/cloud/vpcaccess/v1/vpc_access.proto b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/proto/google/cloud/vpcaccess/v1/vpc_access.proto similarity index 100% rename from proto-google-cloud-vpcaccess-v1/src/main/proto/google/cloud/vpcaccess/v1/vpc_access.proto rename to owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/proto/google/cloud/vpcaccess/v1/vpc_access.proto diff --git a/owl-bot-staging/v1/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 new file mode 100644 index 00000000..9799e917 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/stub/vpcaccessservicestubsettings/getconnector/SyncGetConnector.java @@ -0,0 +1,46 @@ +/* + * 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.stub.samples; + +// [START vpcaccess_v1_generated_vpcaccessservicestubsettings_getconnector_sync] +import com.google.cloud.vpcaccess.v1.stub.VpcAccessServiceStubSettings; +import java.time.Duration; + +public class SyncGetConnector { + + public static void main(String[] args) throws Exception { + syncGetConnector(); + } + + public static void syncGetConnector() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + VpcAccessServiceStubSettings.Builder vpcAccessServiceSettingsBuilder = + VpcAccessServiceStubSettings.newBuilder(); + vpcAccessServiceSettingsBuilder + .getConnectorSettings() + .setRetrySettings( + vpcAccessServiceSettingsBuilder + .getConnectorSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + VpcAccessServiceStubSettings vpcAccessServiceSettings = vpcAccessServiceSettingsBuilder.build(); + } +} +// [END vpcaccess_v1_generated_vpcaccessservicestubsettings_getconnector_sync] diff --git a/owl-bot-staging/v1/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 new file mode 100644 index 00000000..c5ddbed1 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,42 @@ +/* + * 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_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; +import com.google.cloud.vpcaccess.v1.VpcAccessServiceSettings; +import com.google.cloud.vpcaccess.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + VpcAccessServiceSettings vpcAccessServiceSettings = + VpcAccessServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + VpcAccessServiceClient vpcAccessServiceClient = + VpcAccessServiceClient.create(vpcAccessServiceSettings); + } +} +// [END vpcaccess_v1_generated_vpcaccessserviceclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/v1/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 new file mode 100644 index 00000000..5338ec9a --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * 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_create_setcredentialsprovider1_sync] +import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; +import com.google.cloud.vpcaccess.v1.VpcAccessServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + VpcAccessServiceSettings vpcAccessServiceSettings = + VpcAccessServiceSettings.newBuilder() + .setTransportChannelProvider( + VpcAccessServiceSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + VpcAccessServiceClient vpcAccessServiceClient = + VpcAccessServiceClient.create(vpcAccessServiceSettings); + } +} +// [END vpcaccess_v1_generated_vpcaccessserviceclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/v1/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 new file mode 100644 index 00000000..124ac839 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,39 @@ +/* + * 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_create_setendpoint_sync] +import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; +import com.google.cloud.vpcaccess.v1.VpcAccessServiceSettings; +import com.google.cloud.vpcaccess.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + VpcAccessServiceSettings vpcAccessServiceSettings = + VpcAccessServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + VpcAccessServiceClient vpcAccessServiceClient = + VpcAccessServiceClient.create(vpcAccessServiceSettings); + } +} +// [END vpcaccess_v1_generated_vpcaccessserviceclient_create_setendpoint_sync] diff --git a/owl-bot-staging/v1/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 new file mode 100644 index 00000000..d96f2ec5 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnector.java @@ -0,0 +1,50 @@ +/* + * 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_createconnector_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vpcaccess.v1.Connector; +import com.google.cloud.vpcaccess.v1.CreateConnectorRequest; +import com.google.cloud.vpcaccess.v1.LocationName; +import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; +import com.google.longrunning.Operation; + +public class AsyncCreateConnector { + + public static void main(String[] args) throws Exception { + asyncCreateConnector(); + } + + public static void asyncCreateConnector() 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()) { + CreateConnectorRequest request = + CreateConnectorRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setConnectorId("connectorId1724784200") + .setConnector(Connector.newBuilder().build()) + .build(); + ApiFuture future = + vpcAccessServiceClient.createConnectorCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END vpcaccess_v1_generated_vpcaccessserviceclient_createconnector_async] diff --git a/owl-bot-staging/v1/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 new file mode 100644 index 00000000..a3a3803c --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/AsyncCreateConnectorLRO.java @@ -0,0 +1,50 @@ +/* + * 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_createconnector_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vpcaccess.v1.Connector; +import com.google.cloud.vpcaccess.v1.CreateConnectorRequest; +import com.google.cloud.vpcaccess.v1.LocationName; +import com.google.cloud.vpcaccess.v1.OperationMetadata; +import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; + +public class AsyncCreateConnectorLRO { + + public static void main(String[] args) throws Exception { + asyncCreateConnectorLRO(); + } + + public static void asyncCreateConnectorLRO() 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()) { + CreateConnectorRequest request = + CreateConnectorRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setConnectorId("connectorId1724784200") + .setConnector(Connector.newBuilder().build()) + .build(); + OperationFuture future = + vpcAccessServiceClient.createConnectorOperationCallable().futureCall(request); + // Do something. + Connector response = future.get(); + } + } +} +// [END vpcaccess_v1_generated_vpcaccessserviceclient_createconnector_lro_async] diff --git a/owl-bot-staging/v1/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 new file mode 100644 index 00000000..63ccd15a --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnector.java @@ -0,0 +1,45 @@ +/* + * 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_createconnector_sync] +import com.google.cloud.vpcaccess.v1.Connector; +import com.google.cloud.vpcaccess.v1.CreateConnectorRequest; +import com.google.cloud.vpcaccess.v1.LocationName; +import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; + +public class SyncCreateConnector { + + public static void main(String[] args) throws Exception { + syncCreateConnector(); + } + + public static void syncCreateConnector() 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()) { + CreateConnectorRequest request = + CreateConnectorRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setConnectorId("connectorId1724784200") + .setConnector(Connector.newBuilder().build()) + .build(); + Connector response = vpcAccessServiceClient.createConnectorAsync(request).get(); + } + } +} +// [END vpcaccess_v1_generated_vpcaccessserviceclient_createconnector_sync] diff --git a/owl-bot-staging/v1/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 new file mode 100644 index 00000000..d2f0f1b5 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorLocationnameStringConnector.java @@ -0,0 +1,42 @@ +/* + * 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_createconnector_locationnamestringconnector_sync] +import com.google.cloud.vpcaccess.v1.Connector; +import com.google.cloud.vpcaccess.v1.LocationName; +import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; + +public class SyncCreateConnectorLocationnameStringConnector { + + public static void main(String[] args) throws Exception { + syncCreateConnectorLocationnameStringConnector(); + } + + public static void syncCreateConnectorLocationnameStringConnector() 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()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String connectorId = "connectorId1724784200"; + Connector connector = Connector.newBuilder().build(); + Connector response = + vpcAccessServiceClient.createConnectorAsync(parent, connectorId, connector).get(); + } + } +} +// [END vpcaccess_v1_generated_vpcaccessserviceclient_createconnector_locationnamestringconnector_sync] diff --git a/owl-bot-staging/v1/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 new file mode 100644 index 00000000..4c5f042d --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/createconnector/SyncCreateConnectorStringStringConnector.java @@ -0,0 +1,42 @@ +/* + * 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_createconnector_stringstringconnector_sync] +import com.google.cloud.vpcaccess.v1.Connector; +import com.google.cloud.vpcaccess.v1.LocationName; +import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; + +public class SyncCreateConnectorStringStringConnector { + + public static void main(String[] args) throws Exception { + syncCreateConnectorStringStringConnector(); + } + + public static void syncCreateConnectorStringStringConnector() 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()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + String connectorId = "connectorId1724784200"; + Connector connector = Connector.newBuilder().build(); + Connector response = + vpcAccessServiceClient.createConnectorAsync(parent, connectorId, connector).get(); + } + } +} +// [END vpcaccess_v1_generated_vpcaccessserviceclient_createconnector_stringstringconnector_sync] diff --git a/owl-bot-staging/v1/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 new file mode 100644 index 00000000..d7514e97 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnector.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_deleteconnector_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vpcaccess.v1.ConnectorName; +import com.google.cloud.vpcaccess.v1.DeleteConnectorRequest; +import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteConnector { + + public static void main(String[] args) throws Exception { + asyncDeleteConnector(); + } + + public static void asyncDeleteConnector() 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()) { + DeleteConnectorRequest request = + DeleteConnectorRequest.newBuilder() + .setName(ConnectorName.of("[PROJECT]", "[LOCATION]", "[CONNECTOR]").toString()) + .build(); + ApiFuture future = + vpcAccessServiceClient.deleteConnectorCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END vpcaccess_v1_generated_vpcaccessserviceclient_deleteconnector_async] diff --git a/owl-bot-staging/v1/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 new file mode 100644 index 00000000..9e9c310e --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/AsyncDeleteConnectorLRO.java @@ -0,0 +1,48 @@ +/* + * 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_deleteconnector_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.vpcaccess.v1.ConnectorName; +import com.google.cloud.vpcaccess.v1.DeleteConnectorRequest; +import com.google.cloud.vpcaccess.v1.OperationMetadata; +import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteConnectorLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteConnectorLRO(); + } + + public static void asyncDeleteConnectorLRO() 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()) { + DeleteConnectorRequest request = + DeleteConnectorRequest.newBuilder() + .setName(ConnectorName.of("[PROJECT]", "[LOCATION]", "[CONNECTOR]").toString()) + .build(); + OperationFuture future = + vpcAccessServiceClient.deleteConnectorOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END vpcaccess_v1_generated_vpcaccessserviceclient_deleteconnector_lro_async] diff --git a/owl-bot-staging/v1/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 new file mode 100644 index 00000000..12ff233f --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnector.java @@ -0,0 +1,43 @@ +/* + * 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_deleteconnector_sync] +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 { + + public static void main(String[] args) throws Exception { + syncDeleteConnector(); + } + + public static void syncDeleteConnector() 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()) { + DeleteConnectorRequest request = + DeleteConnectorRequest.newBuilder() + .setName(ConnectorName.of("[PROJECT]", "[LOCATION]", "[CONNECTOR]").toString()) + .build(); + vpcAccessServiceClient.deleteConnectorAsync(request).get(); + } + } +} +// [END vpcaccess_v1_generated_vpcaccessserviceclient_deleteconnector_sync] diff --git a/owl-bot-staging/v1/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 new file mode 100644 index 00000000..a04fe677 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorConnectorname.java @@ -0,0 +1,39 @@ +/* + * 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_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 { + + public static void main(String[] args) throws Exception { + syncDeleteConnectorConnectorname(); + } + + public static void syncDeleteConnectorConnectorname() 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()) { + ConnectorName name = ConnectorName.of("[PROJECT]", "[LOCATION]", "[CONNECTOR]"); + vpcAccessServiceClient.deleteConnectorAsync(name).get(); + } + } +} +// [END vpcaccess_v1_generated_vpcaccessserviceclient_deleteconnector_connectorname_sync] diff --git a/owl-bot-staging/v1/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 new file mode 100644 index 00000000..eb10e2db --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorString.java @@ -0,0 +1,39 @@ +/* + * 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_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 { + + public static void main(String[] args) throws Exception { + syncDeleteConnectorString(); + } + + public static void syncDeleteConnectorString() 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()) { + String name = ConnectorName.of("[PROJECT]", "[LOCATION]", "[CONNECTOR]").toString(); + vpcAccessServiceClient.deleteConnectorAsync(name).get(); + } + } +} +// [END vpcaccess_v1_generated_vpcaccessserviceclient_deleteconnector_string_sync] diff --git a/owl-bot-staging/v1/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 new file mode 100644 index 00000000..2d0b641c --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/AsyncGetConnector.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_getconnector_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vpcaccess.v1.Connector; +import com.google.cloud.vpcaccess.v1.ConnectorName; +import com.google.cloud.vpcaccess.v1.GetConnectorRequest; +import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; + +public class AsyncGetConnector { + + public static void main(String[] args) throws Exception { + asyncGetConnector(); + } + + public static void asyncGetConnector() 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()) { + GetConnectorRequest request = + GetConnectorRequest.newBuilder() + .setName(ConnectorName.of("[PROJECT]", "[LOCATION]", "[CONNECTOR]").toString()) + .build(); + ApiFuture future = + vpcAccessServiceClient.getConnectorCallable().futureCall(request); + // Do something. + Connector response = future.get(); + } + } +} +// [END vpcaccess_v1_generated_vpcaccessserviceclient_getconnector_async] diff --git a/owl-bot-staging/v1/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 new file mode 100644 index 00000000..44dceafc --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnector.java @@ -0,0 +1,43 @@ +/* + * 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_getconnector_sync] +import com.google.cloud.vpcaccess.v1.Connector; +import com.google.cloud.vpcaccess.v1.ConnectorName; +import com.google.cloud.vpcaccess.v1.GetConnectorRequest; +import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; + +public class SyncGetConnector { + + public static void main(String[] args) throws Exception { + syncGetConnector(); + } + + public static void syncGetConnector() 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()) { + GetConnectorRequest request = + GetConnectorRequest.newBuilder() + .setName(ConnectorName.of("[PROJECT]", "[LOCATION]", "[CONNECTOR]").toString()) + .build(); + Connector response = vpcAccessServiceClient.getConnector(request); + } + } +} +// [END vpcaccess_v1_generated_vpcaccessserviceclient_getconnector_sync] diff --git a/owl-bot-staging/v1/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 new file mode 100644 index 00000000..58cadaed --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorConnectorname.java @@ -0,0 +1,39 @@ +/* + * 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_getconnector_connectorname_sync] +import com.google.cloud.vpcaccess.v1.Connector; +import com.google.cloud.vpcaccess.v1.ConnectorName; +import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; + +public class SyncGetConnectorConnectorname { + + public static void main(String[] args) throws Exception { + syncGetConnectorConnectorname(); + } + + public static void syncGetConnectorConnectorname() 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()) { + ConnectorName name = ConnectorName.of("[PROJECT]", "[LOCATION]", "[CONNECTOR]"); + Connector response = vpcAccessServiceClient.getConnector(name); + } + } +} +// [END vpcaccess_v1_generated_vpcaccessserviceclient_getconnector_connectorname_sync] diff --git a/owl-bot-staging/v1/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 new file mode 100644 index 00000000..503a67d9 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/getconnector/SyncGetConnectorString.java @@ -0,0 +1,39 @@ +/* + * 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_getconnector_string_sync] +import com.google.cloud.vpcaccess.v1.Connector; +import com.google.cloud.vpcaccess.v1.ConnectorName; +import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; + +public class SyncGetConnectorString { + + public static void main(String[] args) throws Exception { + syncGetConnectorString(); + } + + public static void syncGetConnectorString() 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()) { + String name = ConnectorName.of("[PROJECT]", "[LOCATION]", "[CONNECTOR]").toString(); + Connector response = vpcAccessServiceClient.getConnector(name); + } + } +} +// [END vpcaccess_v1_generated_vpcaccessserviceclient_getconnector_string_sync] diff --git a/owl-bot-staging/v1/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 new file mode 100644 index 00000000..576dfa5f --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectors.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_listconnectors_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.vpcaccess.v1.Connector; +import com.google.cloud.vpcaccess.v1.ListConnectorsRequest; +import com.google.cloud.vpcaccess.v1.LocationName; +import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; + +public class AsyncListConnectors { + + public static void main(String[] args) throws Exception { + asyncListConnectors(); + } + + public static void asyncListConnectors() 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()) { + ListConnectorsRequest request = + ListConnectorsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + vpcAccessServiceClient.listConnectorsPagedCallable().futureCall(request); + // Do something. + for (Connector element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vpcaccess_v1_generated_vpcaccessserviceclient_listconnectors_async] diff --git a/owl-bot-staging/v1/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 new file mode 100644 index 00000000..e55b250d --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/AsyncListConnectorsPaged.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_listconnectors_paged_async] +import com.google.cloud.vpcaccess.v1.Connector; +import com.google.cloud.vpcaccess.v1.ListConnectorsRequest; +import com.google.cloud.vpcaccess.v1.ListConnectorsResponse; +import com.google.cloud.vpcaccess.v1.LocationName; +import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; +import com.google.common.base.Strings; + +public class AsyncListConnectorsPaged { + + public static void main(String[] args) throws Exception { + asyncListConnectorsPaged(); + } + + public static void asyncListConnectorsPaged() 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()) { + ListConnectorsRequest request = + ListConnectorsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListConnectorsResponse response = + vpcAccessServiceClient.listConnectorsCallable().call(request); + for (Connector element : response.getConnectorsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END vpcaccess_v1_generated_vpcaccessserviceclient_listconnectors_paged_async] diff --git a/owl-bot-staging/v1/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 new file mode 100644 index 00000000..12912ffc --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectors.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_listconnectors_sync] +import com.google.cloud.vpcaccess.v1.Connector; +import com.google.cloud.vpcaccess.v1.ListConnectorsRequest; +import com.google.cloud.vpcaccess.v1.LocationName; +import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; + +public class SyncListConnectors { + + public static void main(String[] args) throws Exception { + syncListConnectors(); + } + + public static void syncListConnectors() 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()) { + ListConnectorsRequest request = + ListConnectorsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Connector element : vpcAccessServiceClient.listConnectors(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vpcaccess_v1_generated_vpcaccessserviceclient_listconnectors_sync] diff --git a/owl-bot-staging/v1/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 new file mode 100644 index 00000000..b0e17d16 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsLocationname.java @@ -0,0 +1,41 @@ +/* + * 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_listconnectors_locationname_sync] +import com.google.cloud.vpcaccess.v1.Connector; +import com.google.cloud.vpcaccess.v1.LocationName; +import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; + +public class SyncListConnectorsLocationname { + + public static void main(String[] args) throws Exception { + syncListConnectorsLocationname(); + } + + public static void syncListConnectorsLocationname() 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()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Connector element : vpcAccessServiceClient.listConnectors(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vpcaccess_v1_generated_vpcaccessserviceclient_listconnectors_locationname_sync] diff --git a/owl-bot-staging/v1/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 new file mode 100644 index 00000000..8ff76ba0 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/listconnectors/SyncListConnectorsString.java @@ -0,0 +1,41 @@ +/* + * 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_listconnectors_string_sync] +import com.google.cloud.vpcaccess.v1.Connector; +import com.google.cloud.vpcaccess.v1.LocationName; +import com.google.cloud.vpcaccess.v1.VpcAccessServiceClient; + +public class SyncListConnectorsString { + + public static void main(String[] args) throws Exception { + syncListConnectorsString(); + } + + public static void syncListConnectorsString() 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()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Connector element : vpcAccessServiceClient.listConnectors(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END vpcaccess_v1_generated_vpcaccessserviceclient_listconnectors_string_sync] diff --git a/owl-bot-staging/v1/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 new file mode 100644 index 00000000..35a0a98c --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessservicesettings/getconnector/SyncGetConnector.java @@ -0,0 +1,46 @@ +/* + * 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_vpcaccessservicesettings_getconnector_sync] +import com.google.cloud.vpcaccess.v1.VpcAccessServiceSettings; +import java.time.Duration; + +public class SyncGetConnector { + + public static void main(String[] args) throws Exception { + syncGetConnector(); + } + + public static void syncGetConnector() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + VpcAccessServiceSettings.Builder vpcAccessServiceSettingsBuilder = + VpcAccessServiceSettings.newBuilder(); + vpcAccessServiceSettingsBuilder + .getConnectorSettings() + .setRetrySettings( + vpcAccessServiceSettingsBuilder + .getConnectorSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + VpcAccessServiceSettings vpcAccessServiceSettings = vpcAccessServiceSettingsBuilder.build(); + } +} +// [END vpcaccess_v1_generated_vpcaccessservicesettings_getconnector_sync] 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 345b2b58cd639299b57a22dc24e30676d0661a1b Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 01:52:40 +0000 Subject: [PATCH 2/5] =?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 | 16 +- .../v1/VpcAccessServiceSettings.java | 7 +- .../cloud/vpcaccess/v1/gapic_metadata.json | 0 .../cloud/vpcaccess/v1/package-info.java | 0 .../GrpcVpcAccessServiceCallableFactory.java | 0 .../v1/stub/GrpcVpcAccessServiceStub.java | 1 - ...tpJsonVpcAccessServiceCallableFactory.java | 0 .../v1/stub/HttpJsonVpcAccessServiceStub.java | 1 - .../v1/stub/VpcAccessServiceStub.java | 0 .../v1/stub/VpcAccessServiceStubSettings.java | 6 +- .../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 | 213 --- .../google/cloud/vpcaccess/v1/Connector.java | 1332 ++++++++++------- .../cloud/vpcaccess/v1/ConnectorName.java | 0 .../vpcaccess/v1/ConnectorOrBuilder.java | 103 +- .../vpcaccess/v1/CreateConnectorRequest.java | 567 ++++--- .../v1/CreateConnectorRequestOrBuilder.java | 64 +- .../vpcaccess/v1/DeleteConnectorRequest.java | 339 +++-- .../v1/DeleteConnectorRequestOrBuilder.java | 54 + .../vpcaccess/v1/GetConnectorRequest.java | 339 +++-- .../v1/GetConnectorRequestOrBuilder.java | 54 + .../vpcaccess/v1/ListConnectorsRequest.java | 452 +++--- .../v1/ListConnectorsRequestOrBuilder.java | 47 +- .../vpcaccess/v1/ListConnectorsResponse.java | 460 +++--- .../v1/ListConnectorsResponseOrBuilder.java | 45 +- .../cloud/vpcaccess/v1/LocationName.java | 0 .../cloud/vpcaccess/v1/OperationMetadata.java | 674 +++++---- .../v1/OperationMetadataOrBuilder.java | 78 +- .../cloud/vpcaccess/v1/VpcAccessProto.java | 242 +++ .../cloud/vpcaccess/v1/vpc_access.proto | 0 .../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 .../getconnector/SyncGetConnector.java | 0 61 files changed, 3901 insertions(+), 2561 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 (98%) rename {owl-bot-staging/v1/google-cloud-vpcaccess => google-cloud-vpcaccess}/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessService.java (100%) rename {owl-bot-staging/v1/google-cloud-vpcaccess => google-cloud-vpcaccess}/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessServiceImpl.java (100%) rename {owl-bot-staging/v1/google-cloud-vpcaccess => google-cloud-vpcaccess}/src/test/java/com/google/cloud/vpcaccess/v1/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 (73%) rename {owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1 => proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1 => proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1 => proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1 => proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequestOrBuilder.java (53%) rename {owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1 => proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequest.java (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 (88%) 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 (98%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorConnectorname.java (97%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorString.java (97%) 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/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 a7f6cc30..5da10a8a 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 @@ -63,13 +63,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. *
* @@ -752,7 +752,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( @@ -802,7 +805,10 @@ public ApiFuture createPageAsync( public static class ListConnectorsFixedSizeCollection extends AbstractFixedSizeCollection< - ListConnectorsRequest, ListConnectorsResponse, Connector, ListConnectorsPage, + ListConnectorsRequest, + ListConnectorsResponse, + Connector, + ListConnectorsPage, ListConnectorsFixedSizeCollection> { private ListConnectorsFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java similarity index 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 0387a002..b0207fa7 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 @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.vpcaccess.v1.stub.VpcAccessServiceStubSettings; @@ -46,9 +45,9 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When 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 38a464fe..eb7b7474 100644 --- a/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceStub.java +++ b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceStub.java @@ -39,7 +39,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/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 23402820..f610e4c6 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 @@ -30,7 +30,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 98% rename from owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java rename to google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java index 9f8f2bf1..01827378 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 @@ -72,9 +72,9 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessService.java b/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessService.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessService.java rename to google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessService.java diff --git a/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessServiceImpl.java b/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessServiceImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessServiceImpl.java rename to google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessServiceImpl.java diff --git a/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/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 0d0d61b5..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessProto.java +++ /dev/null @@ -1,213 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vpcaccess/v1/vpc_access.proto - -package com.google.cloud.vpcaccess.v1; - -public final class VpcAccessProto { - private VpcAccessProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_Connector_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n*google/cloud/vpcaccess/v1/vpc_access.p" + - "roto\022\031google.cloud.vpcaccess.v1\032\034google/" + - "api/annotations.proto\032\027google/api/client" + - ".proto\032\037google/api/field_behavior.proto\032" + - "\031google/api/resource.proto\032#google/longr" + - "unning/operations.proto\032\037google/protobuf" + - "/timestamp.proto\"\204\004\n\tConnector\022\014\n\004name\030\001" + - " \001(\t\022\017\n\007network\030\002 \001(\t\022\025\n\rip_cidr_range\030\003" + - " \001(\t\022>\n\005state\030\004 \001(\0162*.google.cloud.vpcac" + - "cess.v1.Connector.StateB\003\340A\003\022\026\n\016min_thro" + - "ughput\030\005 \001(\005\022\026\n\016max_throughput\030\006 \001(\005\022\037\n\022" + - "connected_projects\030\007 \003(\tB\003\340A\003\022;\n\006subnet\030" + - "\010 \001(\0132+.google.cloud.vpcaccess.v1.Connec" + - "tor.Subnet\032*\n\006Subnet\022\014\n\004name\030\001 \001(\t\022\022\n\npr" + - "oject_id\030\002 \001(\t\"^\n\005State\022\025\n\021STATE_UNSPECI" + - "FIED\020\000\022\t\n\005READY\020\001\022\014\n\010CREATING\020\002\022\014\n\010DELET" + - "ING\020\003\022\t\n\005ERROR\020\004\022\014\n\010UPDATING\020\005:g\352Ad\n\"vpc" + - "access.googleapis.com/Connector\022>project" + - "s/{project}/locations/{location}/connect" + - "ors/{connector}\"\254\001\n\026CreateConnectorReque" + - "st\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.go" + - "ogleapis.com/Location\022\031\n\014connector_id\030\002 " + - "\001(\tB\003\340A\002\022<\n\tconnector\030\003 \001(\0132$.google.clo" + - "ud.vpcaccess.v1.ConnectorB\003\340A\002\"O\n\023GetCon" + - "nectorRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpc" + - "access.googleapis.com/Connector\"y\n\025ListC" + - "onnectorsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" + - "\n!locations.googleapis.com/Location\022\021\n\tp" + - "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\026Li" + - "stConnectorsResponse\0228\n\nconnectors\030\001 \003(\013" + - "2$.google.cloud.vpcaccess.v1.Connector\022\027" + - "\n\017next_page_token\030\002 \001(\t\"R\n\026DeleteConnect" + - "orRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpcacce" + - "ss.googleapis.com/Connector\"\315\001\n\021Operatio" + - "nMetadata\022\023\n\006method\030\001 \001(\tB\003\340A\003\0224\n\013create" + - "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + - "\003\340A\003\0221\n\010end_time\030\003 \001(\0132\032.google.protobuf" + - ".TimestampB\003\340A\003\022:\n\006target\030\005 \001(\tB*\340A\003\372A$\n" + - "\"vpcaccess.googleapis.com/Connector2\374\006\n\020" + - "VpcAccessService\022\350\001\n\017CreateConnector\0221.g" + - "oogle.cloud.vpcaccess.v1.CreateConnector" + - "Request\032\035.google.longrunning.Operation\"\202" + - "\001\202\323\344\223\002;\"./v1/{parent=projects/*/location" + - "s/*}/connectors:\tconnector\332A\035parent,conn" + - "ector_id,connector\312A\036\n\tConnector\022\021Operat" + - "ionMetadata\022\243\001\n\014GetConnector\022..google.cl" + - "oud.vpcaccess.v1.GetConnectorRequest\032$.g" + - "oogle.cloud.vpcaccess.v1.Connector\"=\202\323\344\223" + - "\0020\022./v1/{name=projects/*/locations/*/con" + - "nectors/*}\332A\004name\022\266\001\n\016ListConnectors\0220.g" + - "oogle.cloud.vpcaccess.v1.ListConnectorsR" + - "equest\0321.google.cloud.vpcaccess.v1.ListC" + - "onnectorsResponse\"?\202\323\344\223\0020\022./v1/{parent=p" + - "rojects/*/locations/*}/connectors\332A\006pare" + - "nt\022\317\001\n\017DeleteConnector\0221.google.cloud.vp" + - "caccess.v1.DeleteConnectorRequest\032\035.goog" + - "le.longrunning.Operation\"j\202\323\344\223\0020*./v1/{n" + - "ame=projects/*/locations/*/connectors/*}" + - "\332A\004name\312A*\n\025google.protobuf.Empty\022\021Opera" + - "tionMetadata\032L\312A\030vpcaccess.googleapis.co" + - "m\322A.https://www.googleapis.com/auth/clou" + - "d-platformB\314\001\n\035com.google.cloud.vpcacces" + - "s.v1B\016VpcAccessProtoP\001ZBgoogle.golang.or" + - "g/genproto/googleapis/cloud/vpcaccess/v1" + - ";vpcaccess\252\002\031Google.Cloud.VpcAccess.V1\312\002" + - "\031Google\\Cloud\\VpcAccess\\V1\352\002\034Google::Clo" + - "ud::VpcAccess::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_vpcaccess_v1_Connector_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_Connector_descriptor, - new java.lang.String[] { "Name", "Network", "IpCidrRange", "State", "MinThroughput", "MaxThroughput", "ConnectedProjects", "Subnet", }); - internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor = - internal_static_google_cloud_vpcaccess_v1_Connector_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor, - new java.lang.String[] { "Name", "ProjectId", }); - internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor, - new java.lang.String[] { "Parent", "ConnectorId", "Connector", }); - internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor, - new java.lang.String[] { "Connectors", "NextPageToken", }); - internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_vpcaccess_v1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor, - new java.lang.String[] { "Method", "CreateTime", "EndTime", "Target", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java rename to proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java index 324d69c9..f647dd8a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java +++ b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; /** + * + * *
  * Definition of a Serverless VPC Access connector.
  * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.Connector} */ -public final class Connector extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Connector extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vpcaccess.v1.Connector) ConnectorOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Connector.newBuilder() to construct. private Connector(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Connector() { name_ = ""; network_ = ""; @@ -29,16 +47,15 @@ private Connector() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Connector(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Connector( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,69 +75,77 @@ private Connector( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - network_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - ipCidrRange_ = s; - break; - } - case 32: { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - state_ = rawValue; - break; - } - case 40: { + network_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - minThroughput_ = input.readInt32(); - break; - } - case 48: { + ipCidrRange_ = s; + break; + } + case 32: + { + int rawValue = input.readEnum(); - maxThroughput_ = input.readInt32(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - connectedProjects_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + state_ = rawValue; + break; } - connectedProjects_.add(s); - break; - } - case 66: { - com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder subBuilder = null; - if (subnet_ != null) { - subBuilder = subnet_.toBuilder(); + case 40: + { + minThroughput_ = input.readInt32(); + break; + } + case 48: + { + maxThroughput_ = input.readInt32(); + break; } - subnet_ = input.readMessage(com.google.cloud.vpcaccess.v1.Connector.Subnet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(subnet_); - subnet_ = subBuilder.buildPartial(); + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + connectedProjects_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + connectedProjects_.add(s); + break; } + case 66: + { + com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder subBuilder = null; + if (subnet_ != null) { + subBuilder = subnet_.toBuilder(); + } + subnet_ = + input.readMessage( + com.google.cloud.vpcaccess.v1.Connector.Subnet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(subnet_); + subnet_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -128,8 +153,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(); @@ -138,29 +162,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.
      * 
@@ -169,6 +199,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Connector is deployed and ready to receive traffic.
      * 
@@ -177,6 +209,8 @@ public enum State */ READY(1), /** + * + * *
      * An Insert operation is in progress. Transient condition.
      * 
@@ -185,6 +219,8 @@ public enum State */ CREATING(2), /** + * + * *
      * A Delete operation is in progress. Transient condition.
      * 
@@ -193,6 +229,8 @@ public enum State */ DELETING(3), /** + * + * *
      * Connector is in a bad state, manual deletion recommended.
      * 
@@ -201,6 +239,8 @@ public enum State */ ERROR(4), /** + * + * *
      * The connector is being updated.
      * 
@@ -212,6 +252,8 @@ public enum State ; /** + * + * *
      * Invalid state.
      * 
@@ -220,6 +262,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Connector is deployed and ready to receive traffic.
      * 
@@ -228,6 +272,8 @@ public enum State */ public static final int READY_VALUE = 1; /** + * + * *
      * An Insert operation is in progress. Transient condition.
      * 
@@ -236,6 +282,8 @@ public enum State */ public static final int CREATING_VALUE = 2; /** + * + * *
      * A Delete operation is in progress. Transient condition.
      * 
@@ -244,6 +292,8 @@ public enum State */ public static final int DELETING_VALUE = 3; /** + * + * *
      * Connector is in a bad state, manual deletion recommended.
      * 
@@ -252,6 +302,8 @@ public enum State */ public static final int ERROR_VALUE = 4; /** + * + * *
      * The connector is being updated.
      * 
@@ -260,7 +312,6 @@ public enum State */ public static final int UPDATING_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -285,52 +336,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; @@ -347,11 +401,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
@@ -360,10 +417,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
@@ -372,12 +432,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
@@ -385,10 +447,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
@@ -396,27 +461,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_ = ""; @@ -424,16 +492,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) @@ -452,25 +519,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) { @@ -478,29 +547,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
@@ -509,6 +582,7 @@ private Subnet(
      * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -517,14 +591,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
@@ -533,16 +608,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 { @@ -553,6 +627,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
@@ -560,6 +636,7 @@ public java.lang.String getName() {
      * 
* * string project_id = 2; + * * @return The projectId. */ @java.lang.Override @@ -568,14 +645,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
@@ -583,16 +661,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 { @@ -601,6 +678,7 @@ public java.lang.String getProjectId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -612,8 +690,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_); } @@ -643,17 +720,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; } @@ -674,88 +750,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 @@ -765,27 +847,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() @@ -793,16 +880,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(); @@ -814,9 +900,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 @@ -835,7 +921,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(); @@ -846,38 +933,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; @@ -885,7 +975,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(); @@ -925,6 +1016,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -933,13 +1026,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; @@ -948,6 +1041,8 @@ public java.lang.String getName() { } } /** + * + * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -956,15 +1051,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 { @@ -972,6 +1066,8 @@ public java.lang.String getName() { } } /** + * + * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -980,20 +1076,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
@@ -1002,15 +1100,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
@@ -1019,16 +1120,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; @@ -1036,6 +1137,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
@@ -1043,13 +1146,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; @@ -1058,6 +1161,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
@@ -1065,15 +1170,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 { @@ -1081,6 +1185,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
@@ -1088,20 +1194,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
@@ -1109,15 +1217,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
@@ -1125,20 +1236,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) { @@ -1151,12 +1263,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(); } @@ -1165,16 +1277,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; @@ -1189,17 +1301,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 @@ -1208,29 +1322,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 { @@ -1241,11 +1355,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 @@ -1254,29 +1371,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 { @@ -1287,12 +1404,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 @@ -1301,30 +1421,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 { @@ -1335,38 +1455,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 @@ -1377,11 +1513,14 @@ public int getMinThroughput() { public static final int MAX_THROUGHPUT_FIELD_NUMBER = 6; private int maxThroughput_; /** + * + * *
    * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
    * 
* * int32 max_throughput = 6; + * * @return The maxThroughput. */ @java.lang.Override @@ -1392,34 +1531,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. */ @@ -1427,27 +1577,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 @@ -1455,18 +1611,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.
    * 
@@ -1479,6 +1642,7 @@ public com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder getSubnetOrBuilde } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1490,8 +1654,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_); } @@ -1535,16 +1698,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; @@ -1555,8 +1715,7 @@ public int getSerializedSize() { size += 1 * getConnectedProjectsList().size(); } if (subnet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getSubnet()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSubnet()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1566,30 +1725,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vpcaccess.v1.Connector)) { return super.equals(obj); } com.google.cloud.vpcaccess.v1.Connector other = (com.google.cloud.vpcaccess.v1.Connector) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getNetwork() - .equals(other.getNetwork())) return false; - if (!getIpCidrRange() - .equals(other.getIpCidrRange())) return false; + if (!getName().equals(other.getName())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getIpCidrRange().equals(other.getIpCidrRange())) return false; if (state_ != other.state_) return false; - if (getMinThroughput() - != other.getMinThroughput()) return false; - if (getMaxThroughput() - != other.getMaxThroughput()) return false; - if (!getConnectedProjectsList() - .equals(other.getConnectedProjectsList())) return false; + if (getMinThroughput() != other.getMinThroughput()) return false; + if (getMaxThroughput() != other.getMaxThroughput()) return false; + if (!getConnectedProjectsList().equals(other.getConnectedProjectsList())) return false; if (hasSubnet() != other.hasSubnet()) return false; if (hasSubnet()) { - if (!getSubnet() - .equals(other.getSubnet())) return false; + if (!getSubnet().equals(other.getSubnet())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1627,118 +1779,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() @@ -1746,16 +1907,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(); @@ -1783,9 +1943,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 @@ -1804,7 +1964,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_; @@ -1830,38 +1991,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; @@ -1932,22 +2094,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; @@ -1956,20 +2121,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 { @@ -1977,54 +2143,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; @@ -2032,18 +2205,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; @@ -2052,20 +2227,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 { @@ -2073,54 +2249,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; @@ -2128,19 +2311,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; @@ -2149,21 +2334,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 { @@ -2171,57 +2357,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; @@ -2229,51 +2422,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. */ @@ -2281,33 +2496,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 @@ -2315,42 +2538,51 @@ public int getMinThroughput() { return minThroughput_; } /** + * + * *
      * Minimum throughput of the connector in Mbps. Default and min is 200.
      * 
* * int32 min_throughput = 5; + * * @param value The minThroughput to set. * @return This builder for chaining. */ public Builder setMinThroughput(int value) { - + minThroughput_ = value; onChanged(); return this; } /** + * + * *
      * Minimum throughput of the connector in Mbps. Default and min is 200.
      * 
* * int32 min_throughput = 5; + * * @return This builder for chaining. */ public Builder clearMinThroughput() { - + minThroughput_ = 0; onChanged(); return this; } - private int maxThroughput_ ; + private int maxThroughput_; /** + * + * *
      * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
      * 
* * int32 max_throughput = 6; + * * @return The maxThroughput. */ @java.lang.Override @@ -2358,71 +2590,90 @@ public int getMaxThroughput() { return maxThroughput_; } /** + * + * *
      * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
      * 
* * int32 max_throughput = 6; + * * @param value The maxThroughput to set. * @return This builder for chaining. */ public Builder setMaxThroughput(int value) { - + maxThroughput_ = value; onChanged(); return this; } /** + * + * *
      * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
      * 
* * int32 max_throughput = 6; + * * @return This builder for chaining. */ public Builder clearMaxThroughput() { - + maxThroughput_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList connectedProjects_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList connectedProjects_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureConnectedProjectsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { connectedProjects_ = new com.google.protobuf.LazyStringArrayList(connectedProjects_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the connectedProjects. */ - public com.google.protobuf.ProtocolStringList - getConnectedProjectsList() { + public com.google.protobuf.ProtocolStringList getConnectedProjectsList() { return connectedProjects_.getUnmodifiableView(); } /** + * + * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of connectedProjects. */ public int getConnectedProjectsCount() { return connectedProjects_.size(); } /** + * + * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The connectedProjects at the given index. */ @@ -2430,80 +2681,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() { @@ -2513,20 +2779,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(); @@ -2535,34 +2804,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.
      * 
@@ -2583,6 +2865,8 @@ public Builder setSubnet(com.google.cloud.vpcaccess.v1.Connector.Subnet value) { return this; } /** + * + * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2601,6 +2885,8 @@ public Builder setSubnet( return this; } /** + * + * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2611,7 +2897,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; } @@ -2623,6 +2911,8 @@ public Builder mergeSubnet(com.google.cloud.vpcaccess.v1.Connector.Subnet value) return this; } /** + * + * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2641,6 +2931,8 @@ public Builder clearSubnet() { return this; } /** + * + * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2648,11 +2940,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.
      * 
@@ -2663,11 +2957,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.
      * 
@@ -2675,21 +2972,24 @@ public com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder getSubnetOrBuilde * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vpcaccess.v1.Connector.Subnet, com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder, com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder> + com.google.cloud.vpcaccess.v1.Connector.Subnet, + com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder, + com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder> getSubnetFieldBuilder() { if (subnetBuilder_ == null) { - subnetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vpcaccess.v1.Connector.Subnet, com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder, com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder>( - getSubnet(), - getParentForChildren(), - isClean()); + subnetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vpcaccess.v1.Connector.Subnet, + com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder, + com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder>( + getSubnet(), getParentForChildren(), isClean()); subnet_ = null; } return subnetBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2699,12 +2999,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(); } @@ -2713,16 +3013,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; @@ -2737,6 +3037,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vpcaccess.v1.Connector getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java rename to proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java rename to proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java index b6d81c7a..5ee83598 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java +++ b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java @@ -1,173 +1,242 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; -public interface ConnectorOrBuilder extends +public interface ConnectorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vpcaccess.v1.Connector) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name in the format `projects/*/locations/*/connectors/*`.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name in the format `projects/*/locations/*/connectors/*`.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Name of a VPC network.
    * 
* * string network = 2; + * * @return The network. */ java.lang.String getNetwork(); /** + * + * *
    * Name of a VPC network.
    * 
* * string network = 2; + * * @return The bytes for network. */ - com.google.protobuf.ByteString - getNetworkBytes(); + com.google.protobuf.ByteString getNetworkBytes(); /** + * + * *
    * The range of internal addresses that follows RFC 4632 notation.
    * Example: `10.132.0.0/28`.
    * 
* * string ip_cidr_range = 3; + * * @return The ipCidrRange. */ java.lang.String getIpCidrRange(); /** + * + * *
    * The range of internal addresses that follows RFC 4632 notation.
    * Example: `10.132.0.0/28`.
    * 
* * string ip_cidr_range = 3; + * * @return The bytes for ipCidrRange. */ - com.google.protobuf.ByteString - getIpCidrRangeBytes(); + com.google.protobuf.ByteString getIpCidrRangeBytes(); /** + * + * *
    * Output only. State of the VPC access connector.
    * 
* - * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. State of the VPC access connector.
    * 
* - * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.vpcaccess.v1.Connector.State getState(); /** + * + * *
    * Minimum throughput of the connector in Mbps. Default and min is 200.
    * 
* * int32 min_throughput = 5; + * * @return The minThroughput. */ int getMinThroughput(); /** + * + * *
    * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
    * 
* * int32 max_throughput = 6; + * * @return The maxThroughput. */ int getMaxThroughput(); /** + * + * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the connectedProjects. */ - java.util.List - getConnectedProjectsList(); + java.util.List getConnectedProjectsList(); /** + * + * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of connectedProjects. */ int getConnectedProjectsCount(); /** + * + * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The connectedProjects at the given index. */ java.lang.String getConnectedProjects(int index); /** + * + * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The bytes of the connectedProjects at the given index. */ - com.google.protobuf.ByteString - getConnectedProjectsBytes(int index); + com.google.protobuf.ByteString getConnectedProjectsBytes(int index); /** + * + * *
    * The subnet in which to house the VPC Access Connector.
    * 
* * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; + * * @return Whether the subnet field is set. */ boolean hasSubnet(); /** + * + * *
    * The subnet in which to house the VPC Access Connector.
    * 
* * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; + * * @return The subnet. */ com.google.cloud.vpcaccess.v1.Connector.Subnet getSubnet(); /** + * + * *
    * The subnet in which to house the VPC Access Connector.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java rename to proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java index 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..39ee2b17 --- /dev/null +++ b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessProto.java @@ -0,0 +1,242 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vpcaccess/v1/vpc_access.proto + +package com.google.cloud.vpcaccess.v1; + +public final class VpcAccessProto { + private VpcAccessProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_Connector_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n*google/cloud/vpcaccess/v1/vpc_access.p" + + "roto\022\031google.cloud.vpcaccess.v1\032\034google/" + + "api/annotations.proto\032\027google/api/client" + + ".proto\032\037google/api/field_behavior.proto\032" + + "\031google/api/resource.proto\032#google/longr" + + "unning/operations.proto\032\037google/protobuf" + + "/timestamp.proto\"\204\004\n\tConnector\022\014\n\004name\030\001" + + " \001(\t\022\017\n\007network\030\002 \001(\t\022\025\n\rip_cidr_range\030\003" + + " \001(\t\022>\n\005state\030\004 \001(\0162*.google.cloud.vpcac" + + "cess.v1.Connector.StateB\003\340A\003\022\026\n\016min_thro" + + "ughput\030\005 \001(\005\022\026\n\016max_throughput\030\006 \001(\005\022\037\n\022" + + "connected_projects\030\007 \003(\tB\003\340A\003\022;\n\006subnet\030" + + "\010 \001(\0132+.google.cloud.vpcaccess.v1.Connec" + + "tor.Subnet\032*\n\006Subnet\022\014\n\004name\030\001 \001(\t\022\022\n\npr" + + "oject_id\030\002 \001(\t\"^\n\005State\022\025\n\021STATE_UNSPECI" + + "FIED\020\000\022\t\n\005READY\020\001\022\014\n\010CREATING\020\002\022\014\n\010DELET" + + "ING\020\003\022\t\n\005ERROR\020\004\022\014\n\010UPDATING\020\005:g\352Ad\n\"vpc" + + "access.googleapis.com/Connector\022>project" + + "s/{project}/locations/{location}/connect" + + "ors/{connector}\"\254\001\n\026CreateConnectorReque" + + "st\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.go" + + "ogleapis.com/Location\022\031\n\014connector_id\030\002 " + + "\001(\tB\003\340A\002\022<\n\tconnector\030\003 \001(\0132$.google.clo" + + "ud.vpcaccess.v1.ConnectorB\003\340A\002\"O\n\023GetCon" + + "nectorRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpc" + + "access.googleapis.com/Connector\"y\n\025ListC" + + "onnectorsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" + + "\n!locations.googleapis.com/Location\022\021\n\tp" + + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\026Li" + + "stConnectorsResponse\0228\n\nconnectors\030\001 \003(\013" + + "2$.google.cloud.vpcaccess.v1.Connector\022\027" + + "\n\017next_page_token\030\002 \001(\t\"R\n\026DeleteConnect" + + "orRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpcacce" + + "ss.googleapis.com/Connector\"\315\001\n\021Operatio" + + "nMetadata\022\023\n\006method\030\001 \001(\tB\003\340A\003\0224\n\013create" + + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0221\n\010end_time\030\003 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\022:\n\006target\030\005 \001(\tB*\340A\003\372A$\n" + + "\"vpcaccess.googleapis.com/Connector2\374\006\n\020" + + "VpcAccessService\022\350\001\n\017CreateConnector\0221.g" + + "oogle.cloud.vpcaccess.v1.CreateConnector" + + "Request\032\035.google.longrunning.Operation\"\202" + + "\001\202\323\344\223\002;\"./v1/{parent=projects/*/location" + + "s/*}/connectors:\tconnector\332A\035parent,conn" + + "ector_id,connector\312A\036\n\tConnector\022\021Operat" + + "ionMetadata\022\243\001\n\014GetConnector\022..google.cl" + + "oud.vpcaccess.v1.GetConnectorRequest\032$.g" + + "oogle.cloud.vpcaccess.v1.Connector\"=\202\323\344\223" + + "\0020\022./v1/{name=projects/*/locations/*/con" + + "nectors/*}\332A\004name\022\266\001\n\016ListConnectors\0220.g" + + "oogle.cloud.vpcaccess.v1.ListConnectorsR" + + "equest\0321.google.cloud.vpcaccess.v1.ListC" + + "onnectorsResponse\"?\202\323\344\223\0020\022./v1/{parent=p" + + "rojects/*/locations/*}/connectors\332A\006pare" + + "nt\022\317\001\n\017DeleteConnector\0221.google.cloud.vp" + + "caccess.v1.DeleteConnectorRequest\032\035.goog" + + "le.longrunning.Operation\"j\202\323\344\223\0020*./v1/{n" + + "ame=projects/*/locations/*/connectors/*}" + + "\332A\004name\312A*\n\025google.protobuf.Empty\022\021Opera" + + "tionMetadata\032L\312A\030vpcaccess.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/clou" + + "d-platformB\314\001\n\035com.google.cloud.vpcacces" + + "s.v1B\016VpcAccessProtoP\001ZBgoogle.golang.or" + + "g/genproto/googleapis/cloud/vpcaccess/v1" + + ";vpcaccess\252\002\031Google.Cloud.VpcAccess.V1\312\002" + + "\031Google\\Cloud\\VpcAccess\\V1\352\002\034Google::Clo" + + "ud::VpcAccess::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_vpcaccess_v1_Connector_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_Connector_descriptor, + new java.lang.String[] { + "Name", + "Network", + "IpCidrRange", + "State", + "MinThroughput", + "MaxThroughput", + "ConnectedProjects", + "Subnet", + }); + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor = + internal_static_google_cloud_vpcaccess_v1_Connector_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor, + new java.lang.String[] { + "Name", "ProjectId", + }); + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor, + new java.lang.String[] { + "Parent", "ConnectorId", "Connector", + }); + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor, + new java.lang.String[] { + "Connectors", "NextPageToken", + }); + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor, + new java.lang.String[] { + "Method", "CreateTime", "EndTime", "Target", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/proto/google/cloud/vpcaccess/v1/vpc_access.proto b/proto-google-cloud-vpcaccess-v1/src/main/proto/google/cloud/vpcaccess/v1/vpc_access.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/proto/google/cloud/vpcaccess/v1/vpc_access.proto rename to proto-google-cloud-vpcaccess-v1/src/main/proto/google/cloud/vpcaccess/v1/vpc_access.proto 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 88% 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 index d2f0f1b5..d559f65e 100644 --- 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 @@ -16,7 +16,8 @@ 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; @@ -39,4 +40,5 @@ 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/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 98% 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 index 12ff233f..b13ba891 100644 --- 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 @@ -20,7 +20,6 @@ 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/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 97% 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 index a04fe677..aaf23ca9 100644 --- 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 @@ -19,7 +19,6 @@ // [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/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 97% 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 index eb10e2db..a3832c58 100644 --- 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 @@ -19,7 +19,6 @@ // [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/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/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 02da3fc42b4412d6fd3f14a0d8788d8b08820bc0 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Thu, 23 Jun 2022 12:24:26 -0400 Subject: [PATCH 3/5] Update pom.xml --- google-cloud-vpcaccess/pom.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/google-cloud-vpcaccess/pom.xml b/google-cloud-vpcaccess/pom.xml index 5834f790..27a8271e 100644 --- a/google-cloud-vpcaccess/pom.xml +++ b/google-cloud-vpcaccess/pom.xml @@ -58,6 +58,10 @@ com.google.api gax-grpc + + com.google.api + gax-httpjson + org.threeten threetenbp @@ -77,12 +81,24 @@ test + + com.google.api + gax + testlib + test + com.google.api gax-grpc testlib test + + com.google.api + gax-httpjson + testlib + test + From c6924ad287f3dc80baef0f39f880849deda33d69 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 27 Jun 2022 20:49:10 +0000 Subject: [PATCH 4/5] fix: update gapic-generator-java with mock service generation fixes PiperOrigin-RevId: 457524730 Source-Link: https://github.com/googleapis/googleapis/commit/917e7f21cb1dc062744c6694437cdd46219f28cb Source-Link: https://github.com/googleapis/googleapis-gen/commit/2497f9a069d3f6b2d6810d5a4e239cda1e7e5a39 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjQ5N2Y5YTA2OWQzZjZiMmQ2ODEwZDVhNGUyMzljZGExZTdlNWEzOSJ9 --- .../vpcaccess/v1/VpcAccessServiceGrpc.java | 722 --------- .../vpcaccess/v1/VpcAccessServiceClient.java | 18 +- .../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 +- .../vpcaccess/v1/MockVpcAccessService.java | 0 .../v1/MockVpcAccessServiceImpl.java | 0 .../VpcAccessServiceClientHttpJsonTest.java | 0 .../v1/VpcAccessServiceClientTest.java | 0 .../vpcaccess/v1/VpcAccessServiceGrpc.java | 579 +++++++ .../google/cloud/vpcaccess/v1/Connector.java | 1332 +++++++---------- .../cloud/vpcaccess/v1/ConnectorName.java | 0 .../vpcaccess/v1/ConnectorOrBuilder.java | 103 +- .../vpcaccess/v1/CreateConnectorRequest.java | 567 +++---- .../v1/CreateConnectorRequestOrBuilder.java | 64 +- .../vpcaccess/v1/DeleteConnectorRequest.java | 339 ++--- .../v1/DeleteConnectorRequestOrBuilder.java | 29 + .../vpcaccess/v1/GetConnectorRequest.java | 339 ++--- .../v1/GetConnectorRequestOrBuilder.java | 29 + .../vpcaccess/v1/ListConnectorsRequest.java | 452 +++--- .../v1/ListConnectorsRequestOrBuilder.java | 47 +- .../vpcaccess/v1/ListConnectorsResponse.java | 460 +++--- .../v1/ListConnectorsResponseOrBuilder.java | 45 +- .../cloud/vpcaccess/v1/LocationName.java | 0 .../cloud/vpcaccess/v1/OperationMetadata.java | 674 ++++----- .../v1/OperationMetadataOrBuilder.java | 78 +- .../cloud/vpcaccess/v1/VpcAccessProto.java | 213 +++ .../cloud/vpcaccess/v1/vpc_access.proto | 0 .../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 .../getconnector/SyncGetConnector.java | 0 .../v1/DeleteConnectorRequestOrBuilder.java | 54 - .../v1/GetConnectorRequestOrBuilder.java | 54 - .../cloud/vpcaccess/v1/VpcAccessProto.java | 242 --- 61 files changed, 2563 insertions(+), 3901 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 (98%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java (97%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/gapic_metadata.json (100%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/package-info.java (100%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceCallableFactory.java (100%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceStub.java (99%) 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 (99%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStub.java (100%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java (98%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessService.java (100%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessServiceImpl.java (100%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientHttpJsonTest.java (100%) rename {google-cloud-vpcaccess => owl-bot-staging/v1/google-cloud-vpcaccess}/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientTest.java (100%) create mode 100644 owl-bot-staging/v1/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java rename {proto-google-cloud-vpcaccess-v1 => owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java (73%) rename {proto-google-cloud-vpcaccess-v1 => owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java (100%) rename {proto-google-cloud-vpcaccess-v1 => owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java (71%) rename {proto-google-cloud-vpcaccess-v1 => owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java (64%) rename {proto-google-cloud-vpcaccess-v1 => owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequestOrBuilder.java (53%) rename {proto-google-cloud-vpcaccess-v1 => owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequest.java (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 (100%) 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%) 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 98% 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 5da10a8a..8474b0cc 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 @@ -18,6 +18,7 @@ import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.httpjson.longrunning.OperationsClient; import com.google.api.gax.longrunning.OperationFuture; @@ -63,13 +64,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. *
* @@ -193,6 +194,7 @@ public final com.google.longrunning.OperationsClient getOperationsClient() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ + @BetaApi public final OperationsClient getHttpJsonOperationsClient() { return httpJsonOperationsClient; } @@ -752,10 +754,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( @@ -805,10 +804,7 @@ public ApiFuture createPageAsync( public static class ListConnectorsFixedSizeCollection extends AbstractFixedSizeCollection< - ListConnectorsRequest, - ListConnectorsResponse, - Connector, - ListConnectorsPage, + ListConnectorsRequest, ListConnectorsResponse, Connector, ListConnectorsPage, ListConnectorsFixedSizeCollection> { private ListConnectorsFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java similarity index 97% 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..0387a002 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 @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.vpcaccess.v1.stub.VpcAccessServiceStubSettings; @@ -45,9 +46,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/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/gapic_metadata.json similarity index 100% rename from google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/gapic_metadata.json diff --git a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/package-info.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/package-info.java similarity index 100% rename from google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/package-info.java diff --git a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceCallableFactory.java similarity index 100% rename from google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceCallableFactory.java diff --git a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceStub.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceStub.java similarity index 99% 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..38a464fe 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 @@ -39,6 +39,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-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 99% 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..23402820 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 @@ -30,6 +30,7 @@ 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/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStub.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStub.java similarity index 100% rename from google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStub.java rename to owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStub.java diff --git a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java similarity index 98% rename from google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java rename to owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java index 01827378..9f8f2bf1 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 @@ -72,9 +72,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/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 100% 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 diff --git a/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientTest.java b/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientTest.java similarity index 100% rename from google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientTest.java rename to owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientTest.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceGrpc.java new file mode 100644 index 00000000..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 73% rename from proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java rename to owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java index f647dd8a..324d69c9 100644 --- a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java +++ b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; /** - * - * *
  * Definition of a Serverless VPC Access connector.
  * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.Connector} */ -public final class Connector extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Connector extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.vpcaccess.v1.Connector) ConnectorOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Connector.newBuilder() to construct. private Connector(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Connector() { name_ = ""; network_ = ""; @@ -47,15 +29,16 @@ private Connector() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Connector(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Connector( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,77 +58,69 @@ private Connector( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - network_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + network_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - ipCidrRange_ = s; - break; - } - case 32: - { - int rawValue = input.readEnum(); + ipCidrRange_ = s; + break; + } + case 32: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 40: - { - minThroughput_ = input.readInt32(); - break; + state_ = rawValue; + break; + } + case 40: { + + minThroughput_ = input.readInt32(); + break; + } + case 48: { + + maxThroughput_ = input.readInt32(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + connectedProjects_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 48: - { - maxThroughput_ = input.readInt32(); - break; + connectedProjects_.add(s); + break; + } + case 66: { + com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder subBuilder = null; + if (subnet_ != null) { + subBuilder = subnet_.toBuilder(); } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - connectedProjects_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - connectedProjects_.add(s); - break; + subnet_ = input.readMessage(com.google.cloud.vpcaccess.v1.Connector.Subnet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(subnet_); + subnet_ = subBuilder.buildPartial(); } - case 66: - { - com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder subBuilder = null; - if (subnet_ != null) { - subBuilder = subnet_.toBuilder(); - } - subnet_ = - input.readMessage( - com.google.cloud.vpcaccess.v1.Connector.Subnet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(subnet_); - subnet_ = subBuilder.buildPartial(); - } - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -153,7 +128,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 +138,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 +169,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Connector is deployed and ready to receive traffic.
      * 
@@ -209,8 +177,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ READY(1), /** - * - * *
      * An Insert operation is in progress. Transient condition.
      * 
@@ -219,8 +185,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(2), /** - * - * *
      * A Delete operation is in progress. Transient condition.
      * 
@@ -229,8 +193,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DELETING(3), /** - * - * *
      * Connector is in a bad state, manual deletion recommended.
      * 
@@ -239,8 +201,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ERROR(4), /** - * - * *
      * The connector is being updated.
      * 
@@ -252,8 +212,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Invalid state.
      * 
@@ -262,8 +220,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 +228,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 +236,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 +244,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 +252,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 4; /** - * - * *
      * The connector is being updated.
      * 
@@ -312,6 +260,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 +285,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 +347,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 +360,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 +372,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 +385,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 +396,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 +424,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 +452,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 +478,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 +509,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -591,15 +517,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 +533,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 +553,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 +560,6 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string project_id = 2; - * * @return The projectId. */ @java.lang.Override @@ -645,15 +568,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 +583,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 +601,6 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -690,7 +612,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 +643,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 +674,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 +765,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 +793,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 +814,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 +835,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 +846,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 +885,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 +925,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 +933,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 +948,6 @@ public java.lang.String getName() { } } /** - * - * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -1051,14 +956,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 +972,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -1076,22 +980,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 +1002,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 +1019,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 +1036,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 +1043,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 +1058,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 +1065,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 +1081,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 +1088,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 +1109,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 +1125,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 +1151,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 +1165,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 +1189,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 +1208,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 +1241,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 +1254,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 +1287,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 +1301,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 +1335,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 +1377,11 @@ public int getMinThroughput() { public static final int MAX_THROUGHPUT_FIELD_NUMBER = 6; private int maxThroughput_; /** - * - * *
    * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
    * 
* * int32 max_throughput = 6; - * * @return The maxThroughput. */ @java.lang.Override @@ -1531,45 +1392,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 +1427,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 +1455,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.
    * 
@@ -1642,7 +1479,6 @@ public com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder getSubnetOrBuilde } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1654,7 +1490,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_); } @@ -1698,13 +1535,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 +1555,8 @@ public int getSerializedSize() { size += 1 * getConnectedProjectsList().size(); } if (subnet_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSubnet()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSubnet()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1725,23 +1566,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vpcaccess.v1.Connector)) { return super.equals(obj); } com.google.cloud.vpcaccess.v1.Connector other = (com.google.cloud.vpcaccess.v1.Connector) obj; - if (!getName().equals(other.getName())) return false; - if (!getNetwork().equals(other.getNetwork())) return false; - if (!getIpCidrRange().equals(other.getIpCidrRange())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getNetwork() + .equals(other.getNetwork())) return false; + if (!getIpCidrRange() + .equals(other.getIpCidrRange())) return false; if (state_ != other.state_) return false; - if (getMinThroughput() != other.getMinThroughput()) return false; - if (getMaxThroughput() != other.getMaxThroughput()) return false; - if (!getConnectedProjectsList().equals(other.getConnectedProjectsList())) return false; + if (getMinThroughput() + != other.getMinThroughput()) return false; + if (getMaxThroughput() + != other.getMaxThroughput()) return false; + if (!getConnectedProjectsList() + .equals(other.getConnectedProjectsList())) return false; if (hasSubnet() != other.hasSubnet()) return false; if (hasSubnet()) { - if (!getSubnet().equals(other.getSubnet())) return false; + if (!getSubnet() + .equals(other.getSubnet())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1779,127 +1627,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.vpcaccess.v1.Connector parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.vpcaccess.v1.Connector parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.vpcaccess.v1.Connector parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.Connector parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.vpcaccess.v1.Connector parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.vpcaccess.v1.Connector prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Definition of a Serverless VPC Access connector.
    * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.Connector} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.vpcaccess.v1.Connector) com.google.cloud.vpcaccess.v1.ConnectorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_Connector_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_Connector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.vpcaccess.v1.VpcAccessProto - .internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable + return com.google.cloud.vpcaccess.v1.VpcAccessProto.internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.vpcaccess.v1.Connector.class, - com.google.cloud.vpcaccess.v1.Connector.Builder.class); + com.google.cloud.vpcaccess.v1.Connector.class, com.google.cloud.vpcaccess.v1.Connector.Builder.class); } // Construct using com.google.cloud.vpcaccess.v1.Connector.newBuilder() @@ -1907,15 +1746,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(); @@ -1943,9 +1783,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 @@ -1964,8 +1804,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_; @@ -1991,39 +1830,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; @@ -2094,25 +1932,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 +1956,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 +1977,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 +2032,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 +2052,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 +2073,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 +2128,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 +2149,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 +2171,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 +2229,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 +2281,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 +2315,42 @@ public int getMinThroughput() { return minThroughput_; } /** - * - * *
      * Minimum throughput of the connector in Mbps. Default and min is 200.
      * 
* * int32 min_throughput = 5; - * * @param value The minThroughput to set. * @return This builder for chaining. */ public Builder setMinThroughput(int value) { - + minThroughput_ = value; onChanged(); return this; } /** - * - * *
      * Minimum throughput of the connector in Mbps. Default and min is 200.
      * 
* * int32 min_throughput = 5; - * * @return This builder for chaining. */ public Builder clearMinThroughput() { - + minThroughput_ = 0; onChanged(); return this; } - private int maxThroughput_; + private int maxThroughput_ ; /** - * - * *
      * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
      * 
* * int32 max_throughput = 6; - * * @return The maxThroughput. */ @java.lang.Override @@ -2590,90 +2358,71 @@ public int getMaxThroughput() { return maxThroughput_; } /** - * - * *
      * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
      * 
* * int32 max_throughput = 6; - * * @param value The maxThroughput to set. * @return This builder for chaining. */ public Builder setMaxThroughput(int value) { - + maxThroughput_ = value; onChanged(); return this; } /** - * - * *
      * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
      * 
* * int32 max_throughput = 6; - * * @return This builder for chaining. */ public Builder clearMaxThroughput() { - + maxThroughput_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList connectedProjects_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList connectedProjects_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureConnectedProjectsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { connectedProjects_ = new com.google.protobuf.LazyStringArrayList(connectedProjects_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the connectedProjects. */ - public com.google.protobuf.ProtocolStringList getConnectedProjectsList() { + public com.google.protobuf.ProtocolStringList + getConnectedProjectsList() { return connectedProjects_.getUnmodifiableView(); } /** - * - * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of connectedProjects. */ public int getConnectedProjectsCount() { return connectedProjects_.size(); } /** - * - * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The connectedProjects at the given index. */ @@ -2681,95 +2430,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 +2513,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 +2535,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 +2583,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 +2601,6 @@ public Builder setSubnet( return this; } /** - * - * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2897,9 +2611,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 +2623,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 +2641,6 @@ public Builder clearSubnet() { return this; } /** - * - * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2940,13 +2648,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 +2663,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 +2675,21 @@ public com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder getSubnetOrBuilde * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vpcaccess.v1.Connector.Subnet, - com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder, - com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder> + com.google.cloud.vpcaccess.v1.Connector.Subnet, com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder, com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder> getSubnetFieldBuilder() { if (subnetBuilder_ == null) { - subnetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vpcaccess.v1.Connector.Subnet, - com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder, - com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder>( - getSubnet(), getParentForChildren(), isClean()); + subnetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vpcaccess.v1.Connector.Subnet, com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder, com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder>( + getSubnet(), + getParentForChildren(), + isClean()); subnet_ = null; } return subnetBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2999,12 +2699,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 +2713,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 +2737,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vpcaccess.v1.Connector getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java similarity index 100% rename from proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java rename to owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java diff --git a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java similarity index 71% rename from proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java index 5ee83598..b6d81c7a 100644 --- a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java @@ -1,242 +1,173 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; -public interface ConnectorOrBuilder - extends +public interface ConnectorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vpcaccess.v1.Connector) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name in the format `projects/*/locations/*/connectors/*`.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name in the format `projects/*/locations/*/connectors/*`.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Name of a VPC network.
    * 
* * string network = 2; - * * @return The network. */ java.lang.String getNetwork(); /** - * - * *
    * Name of a VPC network.
    * 
* * string network = 2; - * * @return The bytes for network. */ - com.google.protobuf.ByteString getNetworkBytes(); + com.google.protobuf.ByteString + getNetworkBytes(); /** - * - * *
    * The range of internal addresses that follows RFC 4632 notation.
    * Example: `10.132.0.0/28`.
    * 
* * string ip_cidr_range = 3; - * * @return The ipCidrRange. */ java.lang.String getIpCidrRange(); /** - * - * *
    * The range of internal addresses that follows RFC 4632 notation.
    * Example: `10.132.0.0/28`.
    * 
* * string ip_cidr_range = 3; - * * @return The bytes for ipCidrRange. */ - com.google.protobuf.ByteString getIpCidrRangeBytes(); + com.google.protobuf.ByteString + getIpCidrRangeBytes(); /** - * - * *
    * Output only. State of the VPC access connector.
    * 
* - * - * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. State of the VPC access connector.
    * 
* - * - * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.vpcaccess.v1.Connector.State getState(); /** - * - * *
    * Minimum throughput of the connector in Mbps. Default and min is 200.
    * 
* * int32 min_throughput = 5; - * * @return The minThroughput. */ int getMinThroughput(); /** - * - * *
    * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
    * 
* * int32 max_throughput = 6; - * * @return The maxThroughput. */ int getMaxThroughput(); /** - * - * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return A list containing the connectedProjects. */ - java.util.List getConnectedProjectsList(); + java.util.List + getConnectedProjectsList(); /** - * - * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The count of connectedProjects. */ int getConnectedProjectsCount(); /** - * - * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the element to return. * @return The connectedProjects at the given index. */ java.lang.String getConnectedProjects(int index); /** - * - * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param index The index of the value to return. * @return The bytes of the connectedProjects at the given index. */ - com.google.protobuf.ByteString getConnectedProjectsBytes(int index); + com.google.protobuf.ByteString + getConnectedProjectsBytes(int index); /** - * - * *
    * The subnet in which to house the VPC Access Connector.
    * 
* * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; - * * @return Whether the subnet field is set. */ boolean hasSubnet(); /** - * - * *
    * The subnet in which to house the VPC Access Connector.
    * 
* * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; - * * @return The subnet. */ com.google.cloud.vpcaccess.v1.Connector.Subnet getSubnet(); /** - * - * *
    * The subnet in which to house the VPC Access Connector.
    * 
diff --git a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java similarity index 64% rename from proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java rename to owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java index 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..0d0d61b5 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessProto.java @@ -0,0 +1,213 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vpcaccess/v1/vpc_access.proto + +package com.google.cloud.vpcaccess.v1; + +public final class VpcAccessProto { + private VpcAccessProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_Connector_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n*google/cloud/vpcaccess/v1/vpc_access.p" + + "roto\022\031google.cloud.vpcaccess.v1\032\034google/" + + "api/annotations.proto\032\027google/api/client" + + ".proto\032\037google/api/field_behavior.proto\032" + + "\031google/api/resource.proto\032#google/longr" + + "unning/operations.proto\032\037google/protobuf" + + "/timestamp.proto\"\204\004\n\tConnector\022\014\n\004name\030\001" + + " \001(\t\022\017\n\007network\030\002 \001(\t\022\025\n\rip_cidr_range\030\003" + + " \001(\t\022>\n\005state\030\004 \001(\0162*.google.cloud.vpcac" + + "cess.v1.Connector.StateB\003\340A\003\022\026\n\016min_thro" + + "ughput\030\005 \001(\005\022\026\n\016max_throughput\030\006 \001(\005\022\037\n\022" + + "connected_projects\030\007 \003(\tB\003\340A\003\022;\n\006subnet\030" + + "\010 \001(\0132+.google.cloud.vpcaccess.v1.Connec" + + "tor.Subnet\032*\n\006Subnet\022\014\n\004name\030\001 \001(\t\022\022\n\npr" + + "oject_id\030\002 \001(\t\"^\n\005State\022\025\n\021STATE_UNSPECI" + + "FIED\020\000\022\t\n\005READY\020\001\022\014\n\010CREATING\020\002\022\014\n\010DELET" + + "ING\020\003\022\t\n\005ERROR\020\004\022\014\n\010UPDATING\020\005:g\352Ad\n\"vpc" + + "access.googleapis.com/Connector\022>project" + + "s/{project}/locations/{location}/connect" + + "ors/{connector}\"\254\001\n\026CreateConnectorReque" + + "st\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.go" + + "ogleapis.com/Location\022\031\n\014connector_id\030\002 " + + "\001(\tB\003\340A\002\022<\n\tconnector\030\003 \001(\0132$.google.clo" + + "ud.vpcaccess.v1.ConnectorB\003\340A\002\"O\n\023GetCon" + + "nectorRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpc" + + "access.googleapis.com/Connector\"y\n\025ListC" + + "onnectorsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" + + "\n!locations.googleapis.com/Location\022\021\n\tp" + + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\026Li" + + "stConnectorsResponse\0228\n\nconnectors\030\001 \003(\013" + + "2$.google.cloud.vpcaccess.v1.Connector\022\027" + + "\n\017next_page_token\030\002 \001(\t\"R\n\026DeleteConnect" + + "orRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpcacce" + + "ss.googleapis.com/Connector\"\315\001\n\021Operatio" + + "nMetadata\022\023\n\006method\030\001 \001(\tB\003\340A\003\0224\n\013create" + + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0221\n\010end_time\030\003 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\022:\n\006target\030\005 \001(\tB*\340A\003\372A$\n" + + "\"vpcaccess.googleapis.com/Connector2\374\006\n\020" + + "VpcAccessService\022\350\001\n\017CreateConnector\0221.g" + + "oogle.cloud.vpcaccess.v1.CreateConnector" + + "Request\032\035.google.longrunning.Operation\"\202" + + "\001\202\323\344\223\002;\"./v1/{parent=projects/*/location" + + "s/*}/connectors:\tconnector\332A\035parent,conn" + + "ector_id,connector\312A\036\n\tConnector\022\021Operat" + + "ionMetadata\022\243\001\n\014GetConnector\022..google.cl" + + "oud.vpcaccess.v1.GetConnectorRequest\032$.g" + + "oogle.cloud.vpcaccess.v1.Connector\"=\202\323\344\223" + + "\0020\022./v1/{name=projects/*/locations/*/con" + + "nectors/*}\332A\004name\022\266\001\n\016ListConnectors\0220.g" + + "oogle.cloud.vpcaccess.v1.ListConnectorsR" + + "equest\0321.google.cloud.vpcaccess.v1.ListC" + + "onnectorsResponse\"?\202\323\344\223\0020\022./v1/{parent=p" + + "rojects/*/locations/*}/connectors\332A\006pare" + + "nt\022\317\001\n\017DeleteConnector\0221.google.cloud.vp" + + "caccess.v1.DeleteConnectorRequest\032\035.goog" + + "le.longrunning.Operation\"j\202\323\344\223\0020*./v1/{n" + + "ame=projects/*/locations/*/connectors/*}" + + "\332A\004name\312A*\n\025google.protobuf.Empty\022\021Opera" + + "tionMetadata\032L\312A\030vpcaccess.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/clou" + + "d-platformB\314\001\n\035com.google.cloud.vpcacces" + + "s.v1B\016VpcAccessProtoP\001ZBgoogle.golang.or" + + "g/genproto/googleapis/cloud/vpcaccess/v1" + + ";vpcaccess\252\002\031Google.Cloud.VpcAccess.V1\312\002" + + "\031Google\\Cloud\\VpcAccess\\V1\352\002\034Google::Clo" + + "ud::VpcAccess::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_vpcaccess_v1_Connector_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_Connector_descriptor, + new java.lang.String[] { "Name", "Network", "IpCidrRange", "State", "MinThroughput", "MaxThroughput", "ConnectedProjects", "Subnet", }); + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor = + internal_static_google_cloud_vpcaccess_v1_Connector_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor, + new java.lang.String[] { "Name", "ProjectId", }); + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor, + new java.lang.String[] { "Parent", "ConnectorId", "Connector", }); + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor, + new java.lang.String[] { "Connectors", "NextPageToken", }); + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor, + new java.lang.String[] { "Method", "CreateTime", "EndTime", "Target", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-vpcaccess-v1/src/main/proto/google/cloud/vpcaccess/v1/vpc_access.proto b/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/proto/google/cloud/vpcaccess/v1/vpc_access.proto similarity index 100% rename from proto-google-cloud-vpcaccess-v1/src/main/proto/google/cloud/vpcaccess/v1/vpc_access.proto rename to owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/proto/google/cloud/vpcaccess/v1/vpc_access.proto diff --git a/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/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 9d1bc26d3762b1ca6920ab2b68cba7f6e103d26f Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 27 Jun 2022 20:51:25 +0000 Subject: [PATCH 5/5] =?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 --- README.md | 4 +- .../vpcaccess/v1/VpcAccessServiceClient.java | 16 +- .../v1/VpcAccessServiceSettings.java | 7 +- .../cloud/vpcaccess/v1/gapic_metadata.json | 0 .../cloud/vpcaccess/v1/package-info.java | 0 .../GrpcVpcAccessServiceCallableFactory.java | 0 .../v1/stub/GrpcVpcAccessServiceStub.java | 1 - ...tpJsonVpcAccessServiceCallableFactory.java | 0 .../v1/stub/HttpJsonVpcAccessServiceStub.java | 1 - .../v1/stub/VpcAccessServiceStub.java | 0 .../v1/stub/VpcAccessServiceStubSettings.java | 6 +- .../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 | 213 --- .../google/cloud/vpcaccess/v1/Connector.java | 1332 ++++++++++------- .../cloud/vpcaccess/v1/ConnectorName.java | 0 .../vpcaccess/v1/ConnectorOrBuilder.java | 103 +- .../vpcaccess/v1/CreateConnectorRequest.java | 567 ++++--- .../v1/CreateConnectorRequestOrBuilder.java | 64 +- .../vpcaccess/v1/DeleteConnectorRequest.java | 339 +++-- .../v1/DeleteConnectorRequestOrBuilder.java | 54 + .../vpcaccess/v1/GetConnectorRequest.java | 339 +++-- .../v1/GetConnectorRequestOrBuilder.java | 54 + .../vpcaccess/v1/ListConnectorsRequest.java | 452 +++--- .../v1/ListConnectorsRequestOrBuilder.java | 47 +- .../vpcaccess/v1/ListConnectorsResponse.java | 460 +++--- .../v1/ListConnectorsResponseOrBuilder.java | 45 +- .../cloud/vpcaccess/v1/LocationName.java | 0 .../cloud/vpcaccess/v1/OperationMetadata.java | 674 +++++---- .../v1/OperationMetadataOrBuilder.java | 78 +- .../cloud/vpcaccess/v1/VpcAccessProto.java | 242 +++ .../cloud/vpcaccess/v1/vpc_access.proto | 0 .../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 .../getconnector/SyncGetConnector.java | 0 62 files changed, 3903 insertions(+), 2563 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 (98%) rename {owl-bot-staging/v1/google-cloud-vpcaccess => google-cloud-vpcaccess}/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessService.java (100%) rename {owl-bot-staging/v1/google-cloud-vpcaccess => google-cloud-vpcaccess}/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessServiceImpl.java (100%) rename {owl-bot-staging/v1/google-cloud-vpcaccess => google-cloud-vpcaccess}/src/test/java/com/google/cloud/vpcaccess/v1/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 (73%) rename {owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1 => proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1 => proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1 => proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1 => proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequestOrBuilder.java (53%) rename {owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1 => proto-google-cloud-vpcaccess-v1}/src/main/java/com/google/cloud/vpcaccess/v1/DeleteConnectorRequest.java (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 (88%) 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 (98%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorConnectorname.java (97%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/vpcaccess/v1/vpcaccessserviceclient/deleteconnector/SyncDeleteConnectorString.java (97%) 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/vpcaccessservicesettings/getconnector/SyncGetConnector.java (100%) diff --git a/README.md b/README.md index 8f899f49..6eb5cdca 100644 --- a/README.md +++ b/README.md @@ -27,13 +27,13 @@ If you are using Maven, add this to your pom.xml file: If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-vpcaccess:2.2.0' +implementation 'com.google.cloud:google-cloud-vpcaccess:2.2.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vpcaccess" % "2.2.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vpcaccess" % "2.2.1" ``` ## Authentication 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 8474b0cc..e2057d60 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 @@ -64,13 +64,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. *
* @@ -754,7 +754,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( @@ -804,7 +807,10 @@ public ApiFuture createPageAsync( public static class ListConnectorsFixedSizeCollection extends AbstractFixedSizeCollection< - ListConnectorsRequest, ListConnectorsResponse, Connector, ListConnectorsPage, + ListConnectorsRequest, + ListConnectorsResponse, + Connector, + ListConnectorsPage, ListConnectorsFixedSizeCollection> { private ListConnectorsFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java similarity index 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 0387a002..b0207fa7 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 @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.vpcaccess.v1.stub.VpcAccessServiceStubSettings; @@ -46,9 +45,9 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When 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 38a464fe..eb7b7474 100644 --- a/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceStub.java +++ b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceStub.java @@ -39,7 +39,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/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 23402820..f610e4c6 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 @@ -30,7 +30,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 98% rename from owl-bot-staging/v1/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java rename to google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java index 9f8f2bf1..01827378 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 @@ -72,9 +72,9 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessService.java b/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessService.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessService.java rename to google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessService.java diff --git a/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessServiceImpl.java b/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessServiceImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessServiceImpl.java rename to google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessServiceImpl.java diff --git a/owl-bot-staging/v1/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/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 0d0d61b5..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessProto.java +++ /dev/null @@ -1,213 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/vpcaccess/v1/vpc_access.proto - -package com.google.cloud.vpcaccess.v1; - -public final class VpcAccessProto { - private VpcAccessProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_Connector_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_vpcaccess_v1_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n*google/cloud/vpcaccess/v1/vpc_access.p" + - "roto\022\031google.cloud.vpcaccess.v1\032\034google/" + - "api/annotations.proto\032\027google/api/client" + - ".proto\032\037google/api/field_behavior.proto\032" + - "\031google/api/resource.proto\032#google/longr" + - "unning/operations.proto\032\037google/protobuf" + - "/timestamp.proto\"\204\004\n\tConnector\022\014\n\004name\030\001" + - " \001(\t\022\017\n\007network\030\002 \001(\t\022\025\n\rip_cidr_range\030\003" + - " \001(\t\022>\n\005state\030\004 \001(\0162*.google.cloud.vpcac" + - "cess.v1.Connector.StateB\003\340A\003\022\026\n\016min_thro" + - "ughput\030\005 \001(\005\022\026\n\016max_throughput\030\006 \001(\005\022\037\n\022" + - "connected_projects\030\007 \003(\tB\003\340A\003\022;\n\006subnet\030" + - "\010 \001(\0132+.google.cloud.vpcaccess.v1.Connec" + - "tor.Subnet\032*\n\006Subnet\022\014\n\004name\030\001 \001(\t\022\022\n\npr" + - "oject_id\030\002 \001(\t\"^\n\005State\022\025\n\021STATE_UNSPECI" + - "FIED\020\000\022\t\n\005READY\020\001\022\014\n\010CREATING\020\002\022\014\n\010DELET" + - "ING\020\003\022\t\n\005ERROR\020\004\022\014\n\010UPDATING\020\005:g\352Ad\n\"vpc" + - "access.googleapis.com/Connector\022>project" + - "s/{project}/locations/{location}/connect" + - "ors/{connector}\"\254\001\n\026CreateConnectorReque" + - "st\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.go" + - "ogleapis.com/Location\022\031\n\014connector_id\030\002 " + - "\001(\tB\003\340A\002\022<\n\tconnector\030\003 \001(\0132$.google.clo" + - "ud.vpcaccess.v1.ConnectorB\003\340A\002\"O\n\023GetCon" + - "nectorRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpc" + - "access.googleapis.com/Connector\"y\n\025ListC" + - "onnectorsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" + - "\n!locations.googleapis.com/Location\022\021\n\tp" + - "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\026Li" + - "stConnectorsResponse\0228\n\nconnectors\030\001 \003(\013" + - "2$.google.cloud.vpcaccess.v1.Connector\022\027" + - "\n\017next_page_token\030\002 \001(\t\"R\n\026DeleteConnect" + - "orRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpcacce" + - "ss.googleapis.com/Connector\"\315\001\n\021Operatio" + - "nMetadata\022\023\n\006method\030\001 \001(\tB\003\340A\003\0224\n\013create" + - "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + - "\003\340A\003\0221\n\010end_time\030\003 \001(\0132\032.google.protobuf" + - ".TimestampB\003\340A\003\022:\n\006target\030\005 \001(\tB*\340A\003\372A$\n" + - "\"vpcaccess.googleapis.com/Connector2\374\006\n\020" + - "VpcAccessService\022\350\001\n\017CreateConnector\0221.g" + - "oogle.cloud.vpcaccess.v1.CreateConnector" + - "Request\032\035.google.longrunning.Operation\"\202" + - "\001\202\323\344\223\002;\"./v1/{parent=projects/*/location" + - "s/*}/connectors:\tconnector\332A\035parent,conn" + - "ector_id,connector\312A\036\n\tConnector\022\021Operat" + - "ionMetadata\022\243\001\n\014GetConnector\022..google.cl" + - "oud.vpcaccess.v1.GetConnectorRequest\032$.g" + - "oogle.cloud.vpcaccess.v1.Connector\"=\202\323\344\223" + - "\0020\022./v1/{name=projects/*/locations/*/con" + - "nectors/*}\332A\004name\022\266\001\n\016ListConnectors\0220.g" + - "oogle.cloud.vpcaccess.v1.ListConnectorsR" + - "equest\0321.google.cloud.vpcaccess.v1.ListC" + - "onnectorsResponse\"?\202\323\344\223\0020\022./v1/{parent=p" + - "rojects/*/locations/*}/connectors\332A\006pare" + - "nt\022\317\001\n\017DeleteConnector\0221.google.cloud.vp" + - "caccess.v1.DeleteConnectorRequest\032\035.goog" + - "le.longrunning.Operation\"j\202\323\344\223\0020*./v1/{n" + - "ame=projects/*/locations/*/connectors/*}" + - "\332A\004name\312A*\n\025google.protobuf.Empty\022\021Opera" + - "tionMetadata\032L\312A\030vpcaccess.googleapis.co" + - "m\322A.https://www.googleapis.com/auth/clou" + - "d-platformB\314\001\n\035com.google.cloud.vpcacces" + - "s.v1B\016VpcAccessProtoP\001ZBgoogle.golang.or" + - "g/genproto/googleapis/cloud/vpcaccess/v1" + - ";vpcaccess\252\002\031Google.Cloud.VpcAccess.V1\312\002" + - "\031Google\\Cloud\\VpcAccess\\V1\352\002\034Google::Clo" + - "ud::VpcAccess::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_vpcaccess_v1_Connector_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_Connector_descriptor, - new java.lang.String[] { "Name", "Network", "IpCidrRange", "State", "MinThroughput", "MaxThroughput", "ConnectedProjects", "Subnet", }); - internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor = - internal_static_google_cloud_vpcaccess_v1_Connector_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor, - new java.lang.String[] { "Name", "ProjectId", }); - internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor, - new java.lang.String[] { "Parent", "ConnectorId", "Connector", }); - internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor, - new java.lang.String[] { "Connectors", "NextPageToken", }); - internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_vpcaccess_v1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor, - new java.lang.String[] { "Method", "CreateTime", "EndTime", "Target", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java rename to proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java index 324d69c9..f647dd8a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java +++ b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/Connector.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; /** + * + * *
  * Definition of a Serverless VPC Access connector.
  * 
* * Protobuf type {@code google.cloud.vpcaccess.v1.Connector} */ -public final class Connector extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Connector extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.vpcaccess.v1.Connector) ConnectorOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Connector.newBuilder() to construct. private Connector(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Connector() { name_ = ""; network_ = ""; @@ -29,16 +47,15 @@ private Connector() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Connector(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Connector( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,69 +75,77 @@ private Connector( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - network_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - ipCidrRange_ = s; - break; - } - case 32: { - int rawValue = input.readEnum(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - state_ = rawValue; - break; - } - case 40: { + network_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - minThroughput_ = input.readInt32(); - break; - } - case 48: { + ipCidrRange_ = s; + break; + } + case 32: + { + int rawValue = input.readEnum(); - maxThroughput_ = input.readInt32(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - connectedProjects_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + state_ = rawValue; + break; } - connectedProjects_.add(s); - break; - } - case 66: { - com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder subBuilder = null; - if (subnet_ != null) { - subBuilder = subnet_.toBuilder(); + case 40: + { + minThroughput_ = input.readInt32(); + break; + } + case 48: + { + maxThroughput_ = input.readInt32(); + break; } - subnet_ = input.readMessage(com.google.cloud.vpcaccess.v1.Connector.Subnet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(subnet_); - subnet_ = subBuilder.buildPartial(); + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + connectedProjects_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + connectedProjects_.add(s); + break; } + case 66: + { + com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder subBuilder = null; + if (subnet_ != null) { + subBuilder = subnet_.toBuilder(); + } + subnet_ = + input.readMessage( + com.google.cloud.vpcaccess.v1.Connector.Subnet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(subnet_); + subnet_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -128,8 +153,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(); @@ -138,29 +162,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.
      * 
@@ -169,6 +199,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Connector is deployed and ready to receive traffic.
      * 
@@ -177,6 +209,8 @@ public enum State */ READY(1), /** + * + * *
      * An Insert operation is in progress. Transient condition.
      * 
@@ -185,6 +219,8 @@ public enum State */ CREATING(2), /** + * + * *
      * A Delete operation is in progress. Transient condition.
      * 
@@ -193,6 +229,8 @@ public enum State */ DELETING(3), /** + * + * *
      * Connector is in a bad state, manual deletion recommended.
      * 
@@ -201,6 +239,8 @@ public enum State */ ERROR(4), /** + * + * *
      * The connector is being updated.
      * 
@@ -212,6 +252,8 @@ public enum State ; /** + * + * *
      * Invalid state.
      * 
@@ -220,6 +262,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Connector is deployed and ready to receive traffic.
      * 
@@ -228,6 +272,8 @@ public enum State */ public static final int READY_VALUE = 1; /** + * + * *
      * An Insert operation is in progress. Transient condition.
      * 
@@ -236,6 +282,8 @@ public enum State */ public static final int CREATING_VALUE = 2; /** + * + * *
      * A Delete operation is in progress. Transient condition.
      * 
@@ -244,6 +292,8 @@ public enum State */ public static final int DELETING_VALUE = 3; /** + * + * *
      * Connector is in a bad state, manual deletion recommended.
      * 
@@ -252,6 +302,8 @@ public enum State */ public static final int ERROR_VALUE = 4; /** + * + * *
      * The connector is being updated.
      * 
@@ -260,7 +312,6 @@ public enum State */ public static final int UPDATING_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -285,52 +336,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; @@ -347,11 +401,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
@@ -360,10 +417,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
@@ -372,12 +432,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
@@ -385,10 +447,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
@@ -396,27 +461,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_ = ""; @@ -424,16 +492,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) @@ -452,25 +519,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) { @@ -478,29 +547,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
@@ -509,6 +582,7 @@ private Subnet(
      * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -517,14 +591,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
@@ -533,16 +608,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 { @@ -553,6 +627,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
@@ -560,6 +636,7 @@ public java.lang.String getName() {
      * 
* * string project_id = 2; + * * @return The projectId. */ @java.lang.Override @@ -568,14 +645,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
@@ -583,16 +661,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 { @@ -601,6 +678,7 @@ public java.lang.String getProjectId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -612,8 +690,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_); } @@ -643,17 +720,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; } @@ -674,88 +750,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 @@ -765,27 +847,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() @@ -793,16 +880,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(); @@ -814,9 +900,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 @@ -835,7 +921,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(); @@ -846,38 +933,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; @@ -885,7 +975,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(); @@ -925,6 +1016,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -933,13 +1026,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; @@ -948,6 +1041,8 @@ public java.lang.String getName() { } } /** + * + * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -956,15 +1051,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 { @@ -972,6 +1066,8 @@ public java.lang.String getName() { } } /** + * + * *
        * Subnet name (relative, not fully qualified).
        * E.g. if the full subnet selfLink is
@@ -980,20 +1076,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
@@ -1002,15 +1100,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
@@ -1019,16 +1120,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; @@ -1036,6 +1137,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
@@ -1043,13 +1146,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; @@ -1058,6 +1161,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
@@ -1065,15 +1170,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 { @@ -1081,6 +1185,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
@@ -1088,20 +1194,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
@@ -1109,15 +1217,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
@@ -1125,20 +1236,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) { @@ -1151,12 +1263,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(); } @@ -1165,16 +1277,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; @@ -1189,17 +1301,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 @@ -1208,29 +1322,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 { @@ -1241,11 +1355,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 @@ -1254,29 +1371,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 { @@ -1287,12 +1404,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 @@ -1301,30 +1421,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 { @@ -1335,38 +1455,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 @@ -1377,11 +1513,14 @@ public int getMinThroughput() { public static final int MAX_THROUGHPUT_FIELD_NUMBER = 6; private int maxThroughput_; /** + * + * *
    * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
    * 
* * int32 max_throughput = 6; + * * @return The maxThroughput. */ @java.lang.Override @@ -1392,34 +1531,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. */ @@ -1427,27 +1577,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 @@ -1455,18 +1611,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.
    * 
@@ -1479,6 +1642,7 @@ public com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder getSubnetOrBuilde } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1490,8 +1654,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_); } @@ -1535,16 +1698,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; @@ -1555,8 +1715,7 @@ public int getSerializedSize() { size += 1 * getConnectedProjectsList().size(); } if (subnet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getSubnet()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSubnet()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1566,30 +1725,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.vpcaccess.v1.Connector)) { return super.equals(obj); } com.google.cloud.vpcaccess.v1.Connector other = (com.google.cloud.vpcaccess.v1.Connector) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getNetwork() - .equals(other.getNetwork())) return false; - if (!getIpCidrRange() - .equals(other.getIpCidrRange())) return false; + if (!getName().equals(other.getName())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getIpCidrRange().equals(other.getIpCidrRange())) return false; if (state_ != other.state_) return false; - if (getMinThroughput() - != other.getMinThroughput()) return false; - if (getMaxThroughput() - != other.getMaxThroughput()) return false; - if (!getConnectedProjectsList() - .equals(other.getConnectedProjectsList())) return false; + if (getMinThroughput() != other.getMinThroughput()) return false; + if (getMaxThroughput() != other.getMaxThroughput()) return false; + if (!getConnectedProjectsList().equals(other.getConnectedProjectsList())) return false; if (hasSubnet() != other.hasSubnet()) return false; if (hasSubnet()) { - if (!getSubnet() - .equals(other.getSubnet())) return false; + if (!getSubnet().equals(other.getSubnet())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1627,118 +1779,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() @@ -1746,16 +1907,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(); @@ -1783,9 +1943,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 @@ -1804,7 +1964,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_; @@ -1830,38 +1991,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; @@ -1932,22 +2094,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; @@ -1956,20 +2121,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 { @@ -1977,54 +2143,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; @@ -2032,18 +2205,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; @@ -2052,20 +2227,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 { @@ -2073,54 +2249,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; @@ -2128,19 +2311,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; @@ -2149,21 +2334,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 { @@ -2171,57 +2357,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; @@ -2229,51 +2422,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. */ @@ -2281,33 +2496,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 @@ -2315,42 +2538,51 @@ public int getMinThroughput() { return minThroughput_; } /** + * + * *
      * Minimum throughput of the connector in Mbps. Default and min is 200.
      * 
* * int32 min_throughput = 5; + * * @param value The minThroughput to set. * @return This builder for chaining. */ public Builder setMinThroughput(int value) { - + minThroughput_ = value; onChanged(); return this; } /** + * + * *
      * Minimum throughput of the connector in Mbps. Default and min is 200.
      * 
* * int32 min_throughput = 5; + * * @return This builder for chaining. */ public Builder clearMinThroughput() { - + minThroughput_ = 0; onChanged(); return this; } - private int maxThroughput_ ; + private int maxThroughput_; /** + * + * *
      * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
      * 
* * int32 max_throughput = 6; + * * @return The maxThroughput. */ @java.lang.Override @@ -2358,71 +2590,90 @@ public int getMaxThroughput() { return maxThroughput_; } /** + * + * *
      * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
      * 
* * int32 max_throughput = 6; + * * @param value The maxThroughput to set. * @return This builder for chaining. */ public Builder setMaxThroughput(int value) { - + maxThroughput_ = value; onChanged(); return this; } /** + * + * *
      * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
      * 
* * int32 max_throughput = 6; + * * @return This builder for chaining. */ public Builder clearMaxThroughput() { - + maxThroughput_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList connectedProjects_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList connectedProjects_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureConnectedProjectsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { connectedProjects_ = new com.google.protobuf.LazyStringArrayList(connectedProjects_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the connectedProjects. */ - public com.google.protobuf.ProtocolStringList - getConnectedProjectsList() { + public com.google.protobuf.ProtocolStringList getConnectedProjectsList() { return connectedProjects_.getUnmodifiableView(); } /** + * + * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of connectedProjects. */ public int getConnectedProjectsCount() { return connectedProjects_.size(); } /** + * + * *
      * Output only. List of projects using the connector.
      * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The connectedProjects at the given index. */ @@ -2430,80 +2681,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() { @@ -2513,20 +2779,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(); @@ -2535,34 +2804,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.
      * 
@@ -2583,6 +2865,8 @@ public Builder setSubnet(com.google.cloud.vpcaccess.v1.Connector.Subnet value) { return this; } /** + * + * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2601,6 +2885,8 @@ public Builder setSubnet( return this; } /** + * + * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2611,7 +2897,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; } @@ -2623,6 +2911,8 @@ public Builder mergeSubnet(com.google.cloud.vpcaccess.v1.Connector.Subnet value) return this; } /** + * + * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2641,6 +2931,8 @@ public Builder clearSubnet() { return this; } /** + * + * *
      * The subnet in which to house the VPC Access Connector.
      * 
@@ -2648,11 +2940,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.
      * 
@@ -2663,11 +2957,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.
      * 
@@ -2675,21 +2972,24 @@ public com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder getSubnetOrBuilde * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vpcaccess.v1.Connector.Subnet, com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder, com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder> + com.google.cloud.vpcaccess.v1.Connector.Subnet, + com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder, + com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder> getSubnetFieldBuilder() { if (subnetBuilder_ == null) { - subnetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.vpcaccess.v1.Connector.Subnet, com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder, com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder>( - getSubnet(), - getParentForChildren(), - isClean()); + subnetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.vpcaccess.v1.Connector.Subnet, + com.google.cloud.vpcaccess.v1.Connector.Subnet.Builder, + com.google.cloud.vpcaccess.v1.Connector.SubnetOrBuilder>( + getSubnet(), getParentForChildren(), isClean()); subnet_ = null; } return subnetBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2699,12 +2999,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(); } @@ -2713,16 +3013,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; @@ -2737,6 +3037,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.vpcaccess.v1.Connector getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java rename to proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java rename to proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java index b6d81c7a..5ee83598 100644 --- a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java +++ b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorOrBuilder.java @@ -1,173 +1,242 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vpcaccess/v1/vpc_access.proto package com.google.cloud.vpcaccess.v1; -public interface ConnectorOrBuilder extends +public interface ConnectorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.vpcaccess.v1.Connector) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name in the format `projects/*/locations/*/connectors/*`.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name in the format `projects/*/locations/*/connectors/*`.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Name of a VPC network.
    * 
* * string network = 2; + * * @return The network. */ java.lang.String getNetwork(); /** + * + * *
    * Name of a VPC network.
    * 
* * string network = 2; + * * @return The bytes for network. */ - com.google.protobuf.ByteString - getNetworkBytes(); + com.google.protobuf.ByteString getNetworkBytes(); /** + * + * *
    * The range of internal addresses that follows RFC 4632 notation.
    * Example: `10.132.0.0/28`.
    * 
* * string ip_cidr_range = 3; + * * @return The ipCidrRange. */ java.lang.String getIpCidrRange(); /** + * + * *
    * The range of internal addresses that follows RFC 4632 notation.
    * Example: `10.132.0.0/28`.
    * 
* * string ip_cidr_range = 3; + * * @return The bytes for ipCidrRange. */ - com.google.protobuf.ByteString - getIpCidrRangeBytes(); + com.google.protobuf.ByteString getIpCidrRangeBytes(); /** + * + * *
    * Output only. State of the VPC access connector.
    * 
* - * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. State of the VPC access connector.
    * 
* - * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.vpcaccess.v1.Connector.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.vpcaccess.v1.Connector.State getState(); /** + * + * *
    * Minimum throughput of the connector in Mbps. Default and min is 200.
    * 
* * int32 min_throughput = 5; + * * @return The minThroughput. */ int getMinThroughput(); /** + * + * *
    * Maximum throughput of the connector in Mbps. Default is 200, max is 1000.
    * 
* * int32 max_throughput = 6; + * * @return The maxThroughput. */ int getMaxThroughput(); /** + * + * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return A list containing the connectedProjects. */ - java.util.List - getConnectedProjectsList(); + java.util.List getConnectedProjectsList(); /** + * + * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The count of connectedProjects. */ int getConnectedProjectsCount(); /** + * + * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the element to return. * @return The connectedProjects at the given index. */ java.lang.String getConnectedProjects(int index); /** + * + * *
    * Output only. List of projects using the connector.
    * 
* - * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string connected_projects = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param index The index of the value to return. * @return The bytes of the connectedProjects at the given index. */ - com.google.protobuf.ByteString - getConnectedProjectsBytes(int index); + com.google.protobuf.ByteString getConnectedProjectsBytes(int index); /** + * + * *
    * The subnet in which to house the VPC Access Connector.
    * 
* * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; + * * @return Whether the subnet field is set. */ boolean hasSubnet(); /** + * + * *
    * The subnet in which to house the VPC Access Connector.
    * 
* * .google.cloud.vpcaccess.v1.Connector.Subnet subnet = 8; + * * @return The subnet. */ com.google.cloud.vpcaccess.v1.Connector.Subnet getSubnet(); /** + * + * *
    * The subnet in which to house the VPC Access Connector.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java rename to proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/CreateConnectorRequest.java index 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..39ee2b17 --- /dev/null +++ b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessProto.java @@ -0,0 +1,242 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/vpcaccess/v1/vpc_access.proto + +package com.google.cloud.vpcaccess.v1; + +public final class VpcAccessProto { + private VpcAccessProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_Connector_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n*google/cloud/vpcaccess/v1/vpc_access.p" + + "roto\022\031google.cloud.vpcaccess.v1\032\034google/" + + "api/annotations.proto\032\027google/api/client" + + ".proto\032\037google/api/field_behavior.proto\032" + + "\031google/api/resource.proto\032#google/longr" + + "unning/operations.proto\032\037google/protobuf" + + "/timestamp.proto\"\204\004\n\tConnector\022\014\n\004name\030\001" + + " \001(\t\022\017\n\007network\030\002 \001(\t\022\025\n\rip_cidr_range\030\003" + + " \001(\t\022>\n\005state\030\004 \001(\0162*.google.cloud.vpcac" + + "cess.v1.Connector.StateB\003\340A\003\022\026\n\016min_thro" + + "ughput\030\005 \001(\005\022\026\n\016max_throughput\030\006 \001(\005\022\037\n\022" + + "connected_projects\030\007 \003(\tB\003\340A\003\022;\n\006subnet\030" + + "\010 \001(\0132+.google.cloud.vpcaccess.v1.Connec" + + "tor.Subnet\032*\n\006Subnet\022\014\n\004name\030\001 \001(\t\022\022\n\npr" + + "oject_id\030\002 \001(\t\"^\n\005State\022\025\n\021STATE_UNSPECI" + + "FIED\020\000\022\t\n\005READY\020\001\022\014\n\010CREATING\020\002\022\014\n\010DELET" + + "ING\020\003\022\t\n\005ERROR\020\004\022\014\n\010UPDATING\020\005:g\352Ad\n\"vpc" + + "access.googleapis.com/Connector\022>project" + + "s/{project}/locations/{location}/connect" + + "ors/{connector}\"\254\001\n\026CreateConnectorReque" + + "st\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.go" + + "ogleapis.com/Location\022\031\n\014connector_id\030\002 " + + "\001(\tB\003\340A\002\022<\n\tconnector\030\003 \001(\0132$.google.clo" + + "ud.vpcaccess.v1.ConnectorB\003\340A\002\"O\n\023GetCon" + + "nectorRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpc" + + "access.googleapis.com/Connector\"y\n\025ListC" + + "onnectorsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#" + + "\n!locations.googleapis.com/Location\022\021\n\tp" + + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"k\n\026Li" + + "stConnectorsResponse\0228\n\nconnectors\030\001 \003(\013" + + "2$.google.cloud.vpcaccess.v1.Connector\022\027" + + "\n\017next_page_token\030\002 \001(\t\"R\n\026DeleteConnect" + + "orRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"vpcacce" + + "ss.googleapis.com/Connector\"\315\001\n\021Operatio" + + "nMetadata\022\023\n\006method\030\001 \001(\tB\003\340A\003\0224\n\013create" + + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0221\n\010end_time\030\003 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\022:\n\006target\030\005 \001(\tB*\340A\003\372A$\n" + + "\"vpcaccess.googleapis.com/Connector2\374\006\n\020" + + "VpcAccessService\022\350\001\n\017CreateConnector\0221.g" + + "oogle.cloud.vpcaccess.v1.CreateConnector" + + "Request\032\035.google.longrunning.Operation\"\202" + + "\001\202\323\344\223\002;\"./v1/{parent=projects/*/location" + + "s/*}/connectors:\tconnector\332A\035parent,conn" + + "ector_id,connector\312A\036\n\tConnector\022\021Operat" + + "ionMetadata\022\243\001\n\014GetConnector\022..google.cl" + + "oud.vpcaccess.v1.GetConnectorRequest\032$.g" + + "oogle.cloud.vpcaccess.v1.Connector\"=\202\323\344\223" + + "\0020\022./v1/{name=projects/*/locations/*/con" + + "nectors/*}\332A\004name\022\266\001\n\016ListConnectors\0220.g" + + "oogle.cloud.vpcaccess.v1.ListConnectorsR" + + "equest\0321.google.cloud.vpcaccess.v1.ListC" + + "onnectorsResponse\"?\202\323\344\223\0020\022./v1/{parent=p" + + "rojects/*/locations/*}/connectors\332A\006pare" + + "nt\022\317\001\n\017DeleteConnector\0221.google.cloud.vp" + + "caccess.v1.DeleteConnectorRequest\032\035.goog" + + "le.longrunning.Operation\"j\202\323\344\223\0020*./v1/{n" + + "ame=projects/*/locations/*/connectors/*}" + + "\332A\004name\312A*\n\025google.protobuf.Empty\022\021Opera" + + "tionMetadata\032L\312A\030vpcaccess.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/clou" + + "d-platformB\314\001\n\035com.google.cloud.vpcacces" + + "s.v1B\016VpcAccessProtoP\001ZBgoogle.golang.or" + + "g/genproto/googleapis/cloud/vpcaccess/v1" + + ";vpcaccess\252\002\031Google.Cloud.VpcAccess.V1\312\002" + + "\031Google\\Cloud\\VpcAccess\\V1\352\002\034Google::Clo" + + "ud::VpcAccess::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_vpcaccess_v1_Connector_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_vpcaccess_v1_Connector_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_Connector_descriptor, + new java.lang.String[] { + "Name", + "Network", + "IpCidrRange", + "State", + "MinThroughput", + "MaxThroughput", + "ConnectedProjects", + "Subnet", + }); + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor = + internal_static_google_cloud_vpcaccess_v1_Connector_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_Connector_Subnet_descriptor, + new java.lang.String[] { + "Name", "ProjectId", + }); + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_CreateConnectorRequest_descriptor, + new java.lang.String[] { + "Parent", "ConnectorId", "Connector", + }); + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_GetConnectorRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_ListConnectorsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_ListConnectorsResponse_descriptor, + new java.lang.String[] { + "Connectors", "NextPageToken", + }); + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_DeleteConnectorRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_vpcaccess_v1_OperationMetadata_descriptor, + new java.lang.String[] { + "Method", "CreateTime", "EndTime", "Target", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/proto/google/cloud/vpcaccess/v1/vpc_access.proto b/proto-google-cloud-vpcaccess-v1/src/main/proto/google/cloud/vpcaccess/v1/vpc_access.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-vpcaccess-v1/src/main/proto/google/cloud/vpcaccess/v1/vpc_access.proto rename to proto-google-cloud-vpcaccess-v1/src/main/proto/google/cloud/vpcaccess/v1/vpc_access.proto 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 88% 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 index d2f0f1b5..d559f65e 100644 --- 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 @@ -16,7 +16,8 @@ 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; @@ -39,4 +40,5 @@ 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/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 98% 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 index 12ff233f..b13ba891 100644 --- 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 @@ -20,7 +20,6 @@ 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/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 97% 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 index a04fe677..aaf23ca9 100644 --- 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 @@ -19,7 +19,6 @@ // [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/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 97% 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 index eb10e2db..a3832c58 100644 --- 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 @@ -19,7 +19,6 @@ // [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/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/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