From 9f68113fc798b353d8757b7e8c958226e8fd2c9c Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 02:58:12 +0000 Subject: [PATCH 1/3] 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 --- .../connection/v1/ConnectionServiceGrpc.java | 1216 --- .../v1beta1/ConnectionServiceGrpc.java | 1417 --- .../v1/ConnectionServiceClient.java | 31 +- .../v1/ConnectionServiceSettings.java | 30 +- .../bigqueryconnection/v1/gapic_metadata.json | 0 .../bigqueryconnection/v1/package-info.java | 0 .../v1/stub/ConnectionServiceStub.java | 0 .../stub/ConnectionServiceStubSettings.java | 59 +- .../GrpcConnectionServiceCallableFactory.java | 0 .../v1/stub/GrpcConnectionServiceStub.java | 1 + ...pJsonConnectionServiceCallableFactory.java | 105 + .../stub/HttpJsonConnectionServiceStub.java | 586 ++ .../ConnectionServiceClientHttpJsonTest.java | 865 ++ .../v1/ConnectionServiceClientTest.java | 0 .../v1/MockConnectionService.java | 0 .../v1/MockConnectionServiceImpl.java | 0 .../connection/v1/ConnectionServiceGrpc.java | 945 ++ .../bigquery/connection/v1/AwsAccessRole.java | 393 +- .../connection/v1/AwsAccessRoleOrBuilder.java | 36 +- .../connection/v1/AwsCrossAccountRole.java | 472 +- .../v1/AwsCrossAccountRoleOrBuilder.java | 45 +- .../bigquery/connection/v1/AwsProperties.java | 540 +- .../connection/v1/AwsPropertiesOrBuilder.java | 40 +- .../v1/CloudResourceProperties.java | 335 +- .../v1/CloudResourcePropertiesOrBuilder.java | 27 +- .../connection/v1/CloudSpannerProperties.java | 369 +- .../v1/CloudSpannerPropertiesOrBuilder.java | 30 +- .../connection/v1/CloudSqlCredential.java | 393 +- .../v1/CloudSqlCredentialOrBuilder.java | 36 +- .../connection/v1/CloudSqlProperties.java | 697 +- .../v1/CloudSqlPropertiesOrBuilder.java | 62 +- .../bigquery/connection/v1/Connection.java | 1154 +-- .../connection/v1/ConnectionName.java | 0 .../connection/v1/ConnectionOrBuilder.java | 92 +- .../connection/v1/ConnectionOuterClass.java | 330 + .../v1/CreateConnectionRequest.java | 589 +- .../v1/CreateConnectionRequestOrBuilder.java | 64 +- .../v1/DeleteConnectionRequest.java | 363 +- .../v1/DeleteConnectionRequestOrBuilder.java | 31 + .../connection/v1/GetConnectionRequest.java | 349 +- .../v1/GetConnectionRequestOrBuilder.java | 31 + .../connection/v1/ListConnectionsRequest.java | 473 +- .../v1/ListConnectionsRequestOrBuilder.java | 47 +- .../v1/ListConnectionsResponse.java | 470 +- .../v1/ListConnectionsResponseOrBuilder.java | 45 +- .../bigquery/connection/v1/LocationName.java | 0 .../v1/UpdateConnectionRequest.java | 640 +- .../v1/UpdateConnectionRequestOrBuilder.java | 72 +- .../bigquery/connection/v1/connection.proto | 0 .../v1beta1/ConnectionServiceClient.java | 21 +- .../v1beta1/ConnectionServiceSettings.java | 30 +- .../connection/v1beta1/gapic_metadata.json | 0 .../connection/v1beta1/package-info.java | 0 .../v1beta1/stub/ConnectionServiceStub.java | 0 .../stub/ConnectionServiceStubSettings.java | 59 +- .../GrpcConnectionServiceCallableFactory.java | 0 .../stub/GrpcConnectionServiceStub.java | 1 + ...pJsonConnectionServiceCallableFactory.java | 105 + .../stub/HttpJsonConnectionServiceStub.java | 656 ++ .../ConnectionServiceClientHttpJsonTest.java | 904 ++ .../v1beta1/ConnectionServiceClientTest.java | 0 .../v1beta1/MockConnectionService.java | 0 .../v1beta1/MockConnectionServiceImpl.java | 0 .../v1beta1/ConnectionServiceGrpc.java | 1031 +++ .../connection/v1beta1/ConnectionName.java | 0 .../connection/v1beta1/ConnectionProto.java | 7904 ++++++----------- .../connection/v1beta1/LocationName.java | 0 .../connection/v1beta1/connection.proto | 0 .../connection/v1/ConnectionOuterClass.java | 368 - .../v1/DeleteConnectionRequestOrBuilder.java | 56 - .../v1/GetConnectionRequestOrBuilder.java | 56 - 71 files changed, 11582 insertions(+), 13089 deletions(-) delete mode 100644 grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java delete mode 100644 grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java rename {google-cloud-bigqueryconnection => owl-bot-staging/v1/google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java (97%) rename {google-cloud-bigqueryconnection => owl-bot-staging/v1/google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java (91%) rename {google-cloud-bigqueryconnection => owl-bot-staging/v1/google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigqueryconnection/v1/gapic_metadata.json (100%) rename {google-cloud-bigqueryconnection => owl-bot-staging/v1/google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigqueryconnection/v1/package-info.java (100%) rename {google-cloud-bigqueryconnection => owl-bot-staging/v1/google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStub.java (100%) rename {google-cloud-bigqueryconnection => owl-bot-staging/v1/google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java (90%) rename {google-cloud-bigqueryconnection => owl-bot-staging/v1/google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceCallableFactory.java (100%) rename {google-cloud-bigqueryconnection => owl-bot-staging/v1/google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java (99%) create mode 100644 owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceCallableFactory.java create mode 100644 owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceStub.java create mode 100644 owl-bot-staging/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientHttpJsonTest.java rename {google-cloud-bigqueryconnection => owl-bot-staging/v1/google-cloud-bigqueryconnection}/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientTest.java (100%) rename {google-cloud-bigqueryconnection => owl-bot-staging/v1/google-cloud-bigqueryconnection}/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionService.java (100%) rename {google-cloud-bigqueryconnection => owl-bot-staging/v1/google-cloud-bigqueryconnection}/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionServiceImpl.java (100%) create mode 100644 owl-bot-staging/v1/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java rename {proto-google-cloud-bigqueryconnection-v1 => owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java (71%) rename {proto-google-cloud-bigqueryconnection-v1 => owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.java (61%) rename {proto-google-cloud-bigqueryconnection-v1 => owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRole.java (73%) rename {proto-google-cloud-bigqueryconnection-v1 => owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRoleOrBuilder.java (70%) rename {proto-google-cloud-bigqueryconnection-v1 => owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java (69%) rename {proto-google-cloud-bigqueryconnection-v1 => owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java (73%) rename {proto-google-cloud-bigqueryconnection-v1 => owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourceProperties.java (72%) rename {proto-google-cloud-bigqueryconnection-v1 => owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourcePropertiesOrBuilder.java (70%) rename {proto-google-cloud-bigqueryconnection-v1 => owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.java (68%) rename {proto-google-cloud-bigqueryconnection-v1 => owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java (55%) rename {proto-google-cloud-bigqueryconnection-v1 => owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredential.java (70%) rename {proto-google-cloud-bigqueryconnection-v1 => owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredentialOrBuilder.java (54%) rename {proto-google-cloud-bigqueryconnection-v1 => owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.java (66%) rename {proto-google-cloud-bigqueryconnection-v1 => owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java (61%) rename {proto-google-cloud-bigqueryconnection-v1 => owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java (70%) rename {proto-google-cloud-bigqueryconnection-v1 => owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionName.java (100%) rename {proto-google-cloud-bigqueryconnection-v1 => owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java (82%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java rename {proto-google-cloud-bigqueryconnection-v1 => owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequest.java (64%) rename {proto-google-cloud-bigqueryconnection-v1 => owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequestOrBuilder.java (53%) rename {proto-google-cloud-bigqueryconnection-v1 => owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequest.java (64%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequestOrBuilder.java rename {proto-google-cloud-bigqueryconnection-v1 => owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequestOrBuilder.java rename {proto-google-cloud-bigqueryconnection-v1 => owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequest.java (67%) rename {proto-google-cloud-bigqueryconnection-v1 => owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequestOrBuilder.java (52%) rename {proto-google-cloud-bigqueryconnection-v1 => owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponse.java (72%) rename {proto-google-cloud-bigqueryconnection-v1 => owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponseOrBuilder.java (67%) rename {proto-google-cloud-bigqueryconnection-v1 => owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/LocationName.java (100%) rename {proto-google-cloud-bigqueryconnection-v1 => owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequest.java (63%) rename {proto-google-cloud-bigqueryconnection-v1 => owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequestOrBuilder.java (56%) rename {proto-google-cloud-bigqueryconnection-v1 => owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1}/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto (100%) rename {google-cloud-bigqueryconnection => owl-bot-staging/v1beta1/google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java (98%) rename {google-cloud-bigqueryconnection => owl-bot-staging/v1beta1/google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java (91%) rename {google-cloud-bigqueryconnection => owl-bot-staging/v1beta1/google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigquery/connection/v1beta1/gapic_metadata.json (100%) rename {google-cloud-bigqueryconnection => owl-bot-staging/v1beta1/google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigquery/connection/v1beta1/package-info.java (100%) rename {google-cloud-bigqueryconnection => owl-bot-staging/v1beta1/google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStub.java (100%) rename {google-cloud-bigqueryconnection => owl-bot-staging/v1beta1/google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java (89%) rename {google-cloud-bigqueryconnection => owl-bot-staging/v1beta1/google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceCallableFactory.java (100%) rename {google-cloud-bigqueryconnection => owl-bot-staging/v1beta1/google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java (99%) create mode 100644 owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceCallableFactory.java create mode 100644 owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceStub.java create mode 100644 owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientHttpJsonTest.java rename {google-cloud-bigqueryconnection => owl-bot-staging/v1beta1/google-cloud-bigqueryconnection}/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientTest.java (100%) rename {google-cloud-bigqueryconnection => owl-bot-staging/v1beta1/google-cloud-bigqueryconnection}/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionService.java (100%) rename {google-cloud-bigqueryconnection => owl-bot-staging/v1beta1/google-cloud-bigqueryconnection}/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionServiceImpl.java (100%) create mode 100644 owl-bot-staging/v1beta1/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java rename {proto-google-cloud-bigqueryconnection-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1}/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionName.java (100%) rename {proto-google-cloud-bigqueryconnection-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1}/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java (59%) rename {proto-google-cloud-bigqueryconnection-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1}/src/main/java/com/google/cloud/bigquery/connection/v1beta1/LocationName.java (100%) rename {proto-google-cloud-bigqueryconnection-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1}/src/main/proto/google/cloud/bigquery/connection/v1beta1/connection.proto (100%) delete mode 100644 proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java delete mode 100644 proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequestOrBuilder.java delete mode 100644 proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequestOrBuilder.java diff --git a/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java b/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java deleted file mode 100644 index 3c517226..00000000 --- a/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java +++ /dev/null @@ -1,1216 +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.bigquery.connection.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Manages external data source connections and credentials.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/connection/v1/connection.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ConnectionServiceGrpc { - - private ConnectionServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.bigquery.connection.v1.ConnectionService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection> - getCreateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateConnection", - requestType = com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.class, - responseType = com.google.cloud.bigquery.connection.v1.Connection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection> - getCreateConnectionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection> - getCreateConnectionMethod; - if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { - ConnectionServiceGrpc.getCreateConnectionMethod = - getCreateConnectionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.Connection - .getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("CreateConnection")) - .build(); - } - } - } - return getCreateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.GetConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection> - getGetConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetConnection", - requestType = com.google.cloud.bigquery.connection.v1.GetConnectionRequest.class, - responseType = com.google.cloud.bigquery.connection.v1.Connection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.GetConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection> - getGetConnectionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.GetConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection> - getGetConnectionMethod; - if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { - ConnectionServiceGrpc.getGetConnectionMethod = - getGetConnectionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.GetConnectionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.Connection - .getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("GetConnection")) - .build(); - } - } - } - return getGetConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest, - com.google.cloud.bigquery.connection.v1.ListConnectionsResponse> - getListConnectionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListConnections", - requestType = com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.class, - responseType = com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest, - com.google.cloud.bigquery.connection.v1.ListConnectionsResponse> - getListConnectionsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest, - com.google.cloud.bigquery.connection.v1.ListConnectionsResponse> - getListConnectionsMethod; - if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { - ConnectionServiceGrpc.getListConnectionsMethod = - getListConnectionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnections")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.ListConnectionsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("ListConnections")) - .build(); - } - } - } - return getListConnectionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection> - getUpdateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateConnection", - requestType = com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.class, - responseType = com.google.cloud.bigquery.connection.v1.Connection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection> - getUpdateConnectionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection> - getUpdateConnectionMethod; - if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { - ConnectionServiceGrpc.getUpdateConnectionMethod = - getUpdateConnectionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.Connection - .getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("UpdateConnection")) - .build(); - } - } - } - return getUpdateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest, - com.google.protobuf.Empty> - getDeleteConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteConnection", - requestType = com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest, - com.google.protobuf.Empty> - getDeleteConnectionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest, - com.google.protobuf.Empty> - getDeleteConnectionMethod; - if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { - ConnectionServiceGrpc.getDeleteConnectionMethod = - getDeleteConnectionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("DeleteConnection")) - .build(); - } - } - } - return getDeleteConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", - requestType = com.google.iam.v1.GetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod() { - io.grpc.MethodDescriptor - getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { - ConnectionServiceGrpc.getGetIamPolicyMethod = - getGetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", - requestType = com.google.iam.v1.SetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod() { - io.grpc.MethodDescriptor - getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { - ConnectionServiceGrpc.getSetIamPolicyMethod = - getSetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", - requestType = com.google.iam.v1.TestIamPermissionsRequest.class, - responseType = com.google.iam.v1.TestIamPermissionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) - == null) { - ConnectionServiceGrpc.getTestIamPermissionsMethod = - getTestIamPermissionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ConnectionServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceStub(channel, callOptions); - } - }; - return ConnectionServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ConnectionServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceBlockingStub(channel, callOptions); - } - }; - return ConnectionServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ConnectionServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceFutureStub(channel, callOptions); - } - }; - return ConnectionServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Manages external data source connections and credentials.
-   * 
- */ - public abstract static class ConnectionServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a new connection.
-     * 
- */ - public void createConnection( - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateConnectionMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns specified connection.
-     * 
- */ - public void getConnection( - com.google.cloud.bigquery.connection.v1.GetConnectionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetConnectionMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a list of connections in the given project.
-     * 
- */ - public void listConnections( - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListConnectionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the specified connection. For security reasons, also resets
-     * credential if connection properties are in the update field mask.
-     * 
- */ - public void updateConnection( - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateConnectionMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes connection and associated credential.
-     * 
- */ - public void deleteConnection( - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteConnectionMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
-     * 
- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a `NOT_FOUND` error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTestIamPermissionsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection>( - this, METHODID_CREATE_CONNECTION))) - .addMethod( - getGetConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1.GetConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection>( - this, METHODID_GET_CONNECTION))) - .addMethod( - getListConnectionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest, - com.google.cloud.bigquery.connection.v1.ListConnectionsResponse>( - this, METHODID_LIST_CONNECTIONS))) - .addMethod( - getUpdateConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection>( - this, METHODID_UPDATE_CONNECTION))) - .addMethod( - getDeleteConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_CONNECTION))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_GET_IAM_POLICY))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_SET_IAM_POLICY))) - .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - this, METHODID_TEST_IAM_PERMISSIONS))) - .build(); - } - } - - /** - * - * - *
-   * Manages external data source connections and credentials.
-   * 
- */ - public static final class ConnectionServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private ConnectionServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConnectionServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new connection.
-     * 
- */ - public void createConnection( - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateConnectionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns specified connection.
-     * 
- */ - public void getConnection( - com.google.cloud.bigquery.connection.v1.GetConnectionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConnectionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a list of connections in the given project.
-     * 
- */ - public void listConnections( - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListConnectionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the specified connection. For security reasons, also resets
-     * credential if connection properties are in the update field mask.
-     * 
- */ - public void updateConnection( - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateConnectionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes connection and associated credential.
-     * 
- */ - public void deleteConnection( - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteConnectionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
-     * 
- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a `NOT_FOUND` error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Manages external data source connections and credentials.
-   * 
- */ - public static final class ConnectionServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ConnectionServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConnectionServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new connection.
-     * 
- */ - public com.google.cloud.bigquery.connection.v1.Connection createConnection( - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateConnectionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns specified connection.
-     * 
- */ - public com.google.cloud.bigquery.connection.v1.Connection getConnection( - com.google.cloud.bigquery.connection.v1.GetConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConnectionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a list of connections in the given project.
-     * 
- */ - public com.google.cloud.bigquery.connection.v1.ListConnectionsResponse listConnections( - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListConnectionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the specified connection. For security reasons, also resets
-     * credential if connection properties are in the update field mask.
-     * 
- */ - public com.google.cloud.bigquery.connection.v1.Connection updateConnection( - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateConnectionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes connection and associated credential.
-     * 
- */ - public com.google.protobuf.Empty deleteConnection( - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteConnectionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
-     * 
- */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a `NOT_FOUND` error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Manages external data source connections and credentials.
-   * 
- */ - public static final class ConnectionServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ConnectionServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConnectionServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new connection.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.connection.v1.Connection> - createConnection(com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateConnectionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns specified connection.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.connection.v1.Connection> - getConnection(com.google.cloud.bigquery.connection.v1.GetConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetConnectionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns a list of connections in the given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.connection.v1.ListConnectionsResponse> - listConnections(com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListConnectionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the specified connection. For security reasons, also resets
-     * credential if connection properties are in the update field mask.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.connection.v1.Connection> - updateConnection(com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateConnectionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes connection and associated credential.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteConnection(com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteConnectionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a `NOT_FOUND` error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v1.TestIamPermissionsResponse> - testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_CONNECTION = 0; - private static final int METHODID_GET_CONNECTION = 1; - private static final int METHODID_LIST_CONNECTIONS = 2; - private static final int METHODID_UPDATE_CONNECTION = 3; - private static final int METHODID_DELETE_CONNECTION = 4; - private static final int METHODID_GET_IAM_POLICY = 5; - private static final int METHODID_SET_IAM_POLICY = 6; - private static final int METHODID_TEST_IAM_PERMISSIONS = 7; - - 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 ConnectionServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ConnectionServiceImplBase 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_CONNECTION: - serviceImpl.createConnection( - (com.google.cloud.bigquery.connection.v1.CreateConnectionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_CONNECTION: - serviceImpl.getConnection( - (com.google.cloud.bigquery.connection.v1.GetConnectionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_CONNECTIONS: - serviceImpl.listConnections( - (com.google.cloud.bigquery.connection.v1.ListConnectionsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.connection.v1.ListConnectionsResponse>) - responseObserver); - break; - case METHODID_UPDATE_CONNECTION: - serviceImpl.updateConnection( - (com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_CONNECTION: - serviceImpl.deleteConnection( - (com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy( - (com.google.iam.v1.GetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy( - (com.google.iam.v1.SetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions( - (com.google.iam.v1.TestIamPermissionsRequest) 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 ConnectionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ConnectionServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ConnectionService"); - } - } - - private static final class ConnectionServiceFileDescriptorSupplier - extends ConnectionServiceBaseDescriptorSupplier { - ConnectionServiceFileDescriptorSupplier() {} - } - - private static final class ConnectionServiceMethodDescriptorSupplier - extends ConnectionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ConnectionServiceMethodDescriptorSupplier(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 (ConnectionServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ConnectionServiceFileDescriptorSupplier()) - .addMethod(getCreateConnectionMethod()) - .addMethod(getGetConnectionMethod()) - .addMethod(getListConnectionsMethod()) - .addMethod(getUpdateConnectionMethod()) - .addMethod(getDeleteConnectionMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java b/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java deleted file mode 100644 index fed7c438..00000000 --- a/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java +++ /dev/null @@ -1,1417 +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.bigquery.connection.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Manages external data source connections and credentials.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/connection/v1beta1/connection.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ConnectionServiceGrpc { - - private ConnectionServiceGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.bigquery.connection.v1beta1.ConnectionService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - getCreateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateConnection", - requestType = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest - .class, - responseType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - getCreateConnectionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - getCreateConnectionMethod; - if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { - ConnectionServiceGrpc.getCreateConnectionMethod = - getCreateConnectionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CreateConnectionRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .Connection.getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("CreateConnection")) - .build(); - } - } - } - return getCreateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - getGetConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetConnection", - requestType = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.class, - responseType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - getGetConnectionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - getGetConnectionMethod; - if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { - ConnectionServiceGrpc.getGetConnectionMethod = - getGetConnectionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .GetConnectionRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .Connection.getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("GetConnection")) - .build(); - } - } - } - return getGetConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse> - getListConnectionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListConnections", - requestType = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.class, - responseType = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse - .class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse> - getListConnectionsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse> - getListConnectionsMethod; - if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { - ConnectionServiceGrpc.getListConnectionsMethod = - getListConnectionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnections")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("ListConnections")) - .build(); - } - } - } - return getListConnectionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - getUpdateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateConnection", - requestType = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest - .class, - responseType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - getUpdateConnectionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - getUpdateConnectionMethod; - if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { - ConnectionServiceGrpc.getUpdateConnectionMethod = - getUpdateConnectionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .Connection.getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("UpdateConnection")) - .build(); - } - } - } - return getUpdateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest, - com.google.protobuf.Empty> - getUpdateConnectionCredentialMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateConnectionCredential", - requestType = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest, - com.google.protobuf.Empty> - getUpdateConnectionCredentialMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest, - com.google.protobuf.Empty> - getUpdateConnectionCredentialMethod; - if ((getUpdateConnectionCredentialMethod = - ConnectionServiceGrpc.getUpdateConnectionCredentialMethod) - == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getUpdateConnectionCredentialMethod = - ConnectionServiceGrpc.getUpdateConnectionCredentialMethod) - == null) { - ConnectionServiceGrpc.getUpdateConnectionCredentialMethod = - getUpdateConnectionCredentialMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateConnectionCredential")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier( - "UpdateConnectionCredential")) - .build(); - } - } - } - return getUpdateConnectionCredentialMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest, - com.google.protobuf.Empty> - getDeleteConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteConnection", - requestType = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest - .class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest, - com.google.protobuf.Empty> - getDeleteConnectionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest, - com.google.protobuf.Empty> - getDeleteConnectionMethod; - if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { - ConnectionServiceGrpc.getDeleteConnectionMethod = - getDeleteConnectionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .DeleteConnectionRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("DeleteConnection")) - .build(); - } - } - } - return getDeleteConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", - requestType = com.google.iam.v1.GetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod() { - io.grpc.MethodDescriptor - getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { - ConnectionServiceGrpc.getGetIamPolicyMethod = - getGetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", - requestType = com.google.iam.v1.SetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod() { - io.grpc.MethodDescriptor - getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { - ConnectionServiceGrpc.getSetIamPolicyMethod = - getSetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", - requestType = com.google.iam.v1.TestIamPermissionsRequest.class, - responseType = com.google.iam.v1.TestIamPermissionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) - == null) { - ConnectionServiceGrpc.getTestIamPermissionsMethod = - getTestIamPermissionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ConnectionServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceStub(channel, callOptions); - } - }; - return ConnectionServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ConnectionServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceBlockingStub(channel, callOptions); - } - }; - return ConnectionServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ConnectionServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceFutureStub(channel, callOptions); - } - }; - return ConnectionServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Manages external data source connections and credentials.
-   * 
- */ - public abstract static class ConnectionServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a new connection.
-     * 
- */ - public void createConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateConnectionMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns specified connection.
-     * 
- */ - public void getConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetConnectionMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a list of connections in the given project.
-     * 
- */ - public void listConnections( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListConnectionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the specified connection. For security reasons, also resets
-     * credential if connection properties are in the update field mask.
-     * 
- */ - public void updateConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateConnectionMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the credential for the specified connection.
-     * 
- */ - public void updateConnectionCredential( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest - request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateConnectionCredentialMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes connection and associated credential.
-     * 
- */ - public void deleteConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest - request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteConnectionMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
-     * 
- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a NOT_FOUND error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTestIamPermissionsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CreateConnectionRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection>( - this, METHODID_CREATE_CONNECTION))) - .addMethod( - getGetConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .GetConnectionRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection>( - this, METHODID_GET_CONNECTION))) - .addMethod( - getListConnectionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsResponse>(this, METHODID_LIST_CONNECTIONS))) - .addMethod( - getUpdateConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection>( - this, METHODID_UPDATE_CONNECTION))) - .addMethod( - getUpdateConnectionCredentialMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest, - com.google.protobuf.Empty>(this, METHODID_UPDATE_CONNECTION_CREDENTIAL))) - .addMethod( - getDeleteConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .DeleteConnectionRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_CONNECTION))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_GET_IAM_POLICY))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_SET_IAM_POLICY))) - .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - this, METHODID_TEST_IAM_PERMISSIONS))) - .build(); - } - } - - /** - * - * - *
-   * Manages external data source connections and credentials.
-   * 
- */ - public static final class ConnectionServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private ConnectionServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConnectionServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new connection.
-     * 
- */ - public void createConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateConnectionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns specified connection.
-     * 
- */ - public void getConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConnectionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a list of connections in the given project.
-     * 
- */ - public void listConnections( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListConnectionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the specified connection. For security reasons, also resets
-     * credential if connection properties are in the update field mask.
-     * 
- */ - public void updateConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateConnectionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Sets the credential for the specified connection.
-     * 
- */ - public void updateConnectionCredential( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest - request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateConnectionCredentialMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes connection and associated credential.
-     * 
- */ - public void deleteConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest - request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteConnectionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
-     * 
- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a NOT_FOUND error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Manages external data source connections and credentials.
-   * 
- */ - public static final class ConnectionServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ConnectionServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConnectionServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new connection.
-     * 
- */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection createConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateConnectionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns specified connection.
-     * 
- */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConnectionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a list of connections in the given project.
-     * 
- */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse - listConnections( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListConnectionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the specified connection. For security reasons, also resets
-     * credential if connection properties are in the update field mask.
-     * 
- */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection updateConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateConnectionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the credential for the specified connection.
-     * 
- */ - public com.google.protobuf.Empty updateConnectionCredential( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateConnectionCredentialMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes connection and associated credential.
-     * 
- */ - public com.google.protobuf.Empty deleteConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest - request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteConnectionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
-     * 
- */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a NOT_FOUND error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Manages external data source connections and credentials.
-   * 
- */ - public static final class ConnectionServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ConnectionServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConnectionServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new connection.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - createConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateConnectionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns specified connection.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - getConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetConnectionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns a list of connections in the given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse> - listConnections( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListConnectionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the specified connection. For security reasons, also resets
-     * credential if connection properties are in the update field mask.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - updateConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateConnectionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets the credential for the specified connection.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateConnectionCredential( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateConnectionCredentialMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes connection and associated credential.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest - request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteConnectionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a NOT_FOUND error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v1.TestIamPermissionsResponse> - testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_CONNECTION = 0; - private static final int METHODID_GET_CONNECTION = 1; - private static final int METHODID_LIST_CONNECTIONS = 2; - private static final int METHODID_UPDATE_CONNECTION = 3; - private static final int METHODID_UPDATE_CONNECTION_CREDENTIAL = 4; - private static final int METHODID_DELETE_CONNECTION = 5; - private static final int METHODID_GET_IAM_POLICY = 6; - private static final int METHODID_SET_IAM_POLICY = 7; - private static final int METHODID_TEST_IAM_PERMISSIONS = 8; - - 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 ConnectionServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ConnectionServiceImplBase 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_CONNECTION: - serviceImpl.createConnection( - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection>) - responseObserver); - break; - case METHODID_GET_CONNECTION: - serviceImpl.getConnection( - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection>) - responseObserver); - break; - case METHODID_LIST_CONNECTIONS: - serviceImpl.listConnections( - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsResponse>) - responseObserver); - break; - case METHODID_UPDATE_CONNECTION: - serviceImpl.updateConnection( - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection>) - responseObserver); - break; - case METHODID_UPDATE_CONNECTION_CREDENTIAL: - serviceImpl.updateConnectionCredential( - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest) - request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CONNECTION: - serviceImpl.deleteConnection( - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest) - request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy( - (com.google.iam.v1.GetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy( - (com.google.iam.v1.SetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions( - (com.google.iam.v1.TestIamPermissionsRequest) 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 ConnectionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ConnectionServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ConnectionService"); - } - } - - private static final class ConnectionServiceFileDescriptorSupplier - extends ConnectionServiceBaseDescriptorSupplier { - ConnectionServiceFileDescriptorSupplier() {} - } - - private static final class ConnectionServiceMethodDescriptorSupplier - extends ConnectionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ConnectionServiceMethodDescriptorSupplier(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 (ConnectionServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ConnectionServiceFileDescriptorSupplier()) - .addMethod(getCreateConnectionMethod()) - .addMethod(getGetConnectionMethod()) - .addMethod(getListConnectionsMethod()) - .addMethod(getUpdateConnectionMethod()) - .addMethod(getUpdateConnectionCredentialMethod()) - .addMethod(getDeleteConnectionMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java b/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java similarity index 97% rename from google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java rename to owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java index 11ed8aca..97910241 100644 --- a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java +++ b/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java @@ -77,13 +77,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. *
* @@ -120,6 +120,21 @@ * ConnectionServiceClient.create(connectionServiceSettings); * } * + *

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.
+ * ConnectionServiceSettings connectionServiceSettings =
+ *     ConnectionServiceSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             ConnectionServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * ConnectionServiceClient connectionServiceClient =
+ *     ConnectionServiceClient.create(connectionServiceSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") @@ -1178,10 +1193,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListConnectionsPagedResponse extends AbstractPagedListResponse< - ListConnectionsRequest, - ListConnectionsResponse, - Connection, - ListConnectionsPage, + ListConnectionsRequest, ListConnectionsResponse, Connection, ListConnectionsPage, ListConnectionsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1231,10 +1243,7 @@ public ApiFuture createPageAsync( public static class ListConnectionsFixedSizeCollection extends AbstractFixedSizeCollection< - ListConnectionsRequest, - ListConnectionsResponse, - Connection, - ListConnectionsPage, + ListConnectionsRequest, ListConnectionsResponse, Connection, ListConnectionsPage, ListConnectionsFixedSizeCollection> { private ListConnectionsFixedSizeCollection( diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java b/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java similarity index 91% rename from google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java rename to owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java index 580c8d6c..c1dda4a8 100644 --- a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java +++ b/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java @@ -23,10 +23,12 @@ 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.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.bigquery.connection.v1.Connection; @@ -54,10 +56,10 @@ *

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

    - *
  • The default service address (bigqueryconnection.googleapis.com) and default port (443) are + *
  • The default service address (bigqueryconnection.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. + *
  • 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 @@ -153,11 +155,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return ConnectionServiceStubSettings.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 ConnectionServiceStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return ConnectionServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return ConnectionServiceStubSettings.defaultTransportChannelProvider(); } @@ -167,11 +176,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return ConnectionServiceStubSettings.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); @@ -209,6 +224,11 @@ private static Builder createDefault() { return new Builder(ConnectionServiceStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(ConnectionServiceStubSettings.newHttpJsonBuilder()); + } + public ConnectionServiceStubSettings.Builder getStubSettingsBuilder() { return ((ConnectionServiceStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/gapic_metadata.json similarity index 100% rename from google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/gapic_metadata.json diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/package-info.java b/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/package-info.java similarity index 100% rename from google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/package-info.java diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStub.java b/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStub.java similarity index 100% rename from google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStub.java rename to owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStub.java diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java b/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java similarity index 90% rename from google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java rename to owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java index 9e3b416e..0a845838 100644 --- a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java @@ -27,6 +27,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +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.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; @@ -69,10 +72,10 @@ *

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

    - *
  • The default service address (bigqueryconnection.googleapis.com) and default port (443) are + *
  • The default service address (bigqueryconnection.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. + *
  • 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 @@ -224,6 +227,11 @@ public ConnectionServiceStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcConnectionServiceStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonConnectionServiceStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -256,18 +264,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(ConnectionServiceStubSettings.class)) @@ -275,11 +290,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(ConnectionServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ConnectionServiceStubSettings.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); @@ -429,6 +463,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 .createConnectionSettings() diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceCallableFactory.java similarity index 100% rename from google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceCallableFactory.java diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java b/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java similarity index 99% rename from google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java rename to owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java index 31b7ac5d..08551b68 100644 --- a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java +++ b/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java @@ -42,6 +42,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceCallableFactory.java new file mode 100644 index 00000000..2b168839 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceCallableFactory.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.bigqueryconnection.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 ConnectionService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonConnectionServiceCallableFactory + 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-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceStub.java b/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceStub.java new file mode 100644 index 00000000..341d08f3 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceStub.java @@ -0,0 +1,586 @@ +/* + * 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.bigqueryconnection.v1.stub; + +import static com.google.cloud.bigqueryconnection.v1.ConnectionServiceClient.ListConnectionsPagedResponse; + +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.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.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.bigquery.connection.v1.Connection; +import com.google.cloud.bigquery.connection.v1.CreateConnectionRequest; +import com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest; +import com.google.cloud.bigquery.connection.v1.GetConnectionRequest; +import com.google.cloud.bigquery.connection.v1.ListConnectionsRequest; +import com.google.cloud.bigquery.connection.v1.ListConnectionsResponse; +import com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +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 ConnectionService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonConnectionServiceStub extends ConnectionServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + createConnectionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.connection.v1.ConnectionService/CreateConnection") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/connections", + 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, "connectionId", request.getConnectionId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("connection", request.getConnection())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Connection.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getConnectionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.connection.v1.ConnectionService/GetConnection") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/connections/*}", + 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(Connection.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listConnectionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.connection.v1.ConnectionService/ListConnections") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/connections", + 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(ListConnectionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateConnectionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.connection.v1.ConnectionService/UpdateConnection") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/connections/*}", + 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(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("connection", request.getConnection())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Connection.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteConnectionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.connection.v1.ConnectionService/DeleteConnection") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/connections/*}", + 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(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.connection.v1.ConnectionService/GetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/connections/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.connection.v1.ConnectionService/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/connections/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.connection.v1.ConnectionService/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/connections/*}:testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createConnectionCallable; + private final UnaryCallable getConnectionCallable; + private final UnaryCallable + listConnectionsCallable; + private final UnaryCallable + listConnectionsPagedCallable; + private final UnaryCallable updateConnectionCallable; + private final UnaryCallable deleteConnectionCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonConnectionServiceStub create(ConnectionServiceStubSettings settings) + throws IOException { + return new HttpJsonConnectionServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonConnectionServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonConnectionServiceStub( + ConnectionServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonConnectionServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonConnectionServiceStub( + ConnectionServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonConnectionServiceStub, 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 HttpJsonConnectionServiceStub( + ConnectionServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonConnectionServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonConnectionServiceStub, 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 HttpJsonConnectionServiceStub( + ConnectionServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings createConnectionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createConnectionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getConnectionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getConnectionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listConnectionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listConnectionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateConnectionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateConnectionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteConnectionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteConnectionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createConnectionCallable = + callableFactory.createUnaryCallable( + createConnectionTransportSettings, settings.createConnectionSettings(), clientContext); + this.getConnectionCallable = + callableFactory.createUnaryCallable( + getConnectionTransportSettings, settings.getConnectionSettings(), clientContext); + this.listConnectionsCallable = + callableFactory.createUnaryCallable( + listConnectionsTransportSettings, settings.listConnectionsSettings(), clientContext); + this.listConnectionsPagedCallable = + callableFactory.createPagedCallable( + listConnectionsTransportSettings, settings.listConnectionsSettings(), clientContext); + this.updateConnectionCallable = + callableFactory.createUnaryCallable( + updateConnectionTransportSettings, settings.updateConnectionSettings(), clientContext); + this.deleteConnectionCallable = + callableFactory.createUnaryCallable( + deleteConnectionTransportSettings, settings.deleteConnectionSettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createConnectionMethodDescriptor); + methodDescriptors.add(getConnectionMethodDescriptor); + methodDescriptors.add(listConnectionsMethodDescriptor); + methodDescriptors.add(updateConnectionMethodDescriptor); + methodDescriptors.add(deleteConnectionMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable createConnectionCallable() { + return createConnectionCallable; + } + + @Override + public UnaryCallable getConnectionCallable() { + return getConnectionCallable; + } + + @Override + public UnaryCallable listConnectionsCallable() { + return listConnectionsCallable; + } + + @Override + public UnaryCallable + listConnectionsPagedCallable() { + return listConnectionsPagedCallable; + } + + @Override + public UnaryCallable updateConnectionCallable() { + return updateConnectionCallable; + } + + @Override + public UnaryCallable deleteConnectionCallable() { + return deleteConnectionCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @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/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientHttpJsonTest.java new file mode 100644 index 00000000..04724f4d --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientHttpJsonTest.java @@ -0,0 +1,865 @@ +/* + * 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.bigqueryconnection.v1; + +import static com.google.cloud.bigqueryconnection.v1.ConnectionServiceClient.ListConnectionsPagedResponse; + +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.api.resourcenames.ResourceName; +import com.google.cloud.bigquery.connection.v1.Connection; +import com.google.cloud.bigquery.connection.v1.ConnectionName; +import com.google.cloud.bigquery.connection.v1.ListConnectionsResponse; +import com.google.cloud.bigquery.connection.v1.LocationName; +import com.google.cloud.bigqueryconnection.v1.stub.HttpJsonConnectionServiceStub; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +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 ConnectionServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static ConnectionServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonConnectionServiceStub.getMethodDescriptors(), + ConnectionServiceSettings.getDefaultEndpoint()); + ConnectionServiceSettings settings = + ConnectionServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + ConnectionServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ConnectionServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createConnectionTest() throws Exception { + Connection expectedResponse = + Connection.newBuilder() + .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setFriendlyName("friendlyName461933014") + .setDescription("description-1724546052") + .setCreationTime(1932333101) + .setLastModifiedTime(-671513446) + .setHasCredential(true) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Connection connection = Connection.newBuilder().build(); + String connectionId = "connectionId1923106969"; + + Connection actualResponse = client.createConnection(parent, connection, connectionId); + 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 createConnectionExceptionTest() 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]"); + Connection connection = Connection.newBuilder().build(); + String connectionId = "connectionId1923106969"; + client.createConnection(parent, connection, connectionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createConnectionTest2() throws Exception { + Connection expectedResponse = + Connection.newBuilder() + .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setFriendlyName("friendlyName461933014") + .setDescription("description-1724546052") + .setCreationTime(1932333101) + .setLastModifiedTime(-671513446) + .setHasCredential(true) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + Connection connection = Connection.newBuilder().build(); + String connectionId = "connectionId1923106969"; + + Connection actualResponse = client.createConnection(parent, connection, connectionId); + 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 createConnectionExceptionTest2() 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"; + Connection connection = Connection.newBuilder().build(); + String connectionId = "connectionId1923106969"; + client.createConnection(parent, connection, connectionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConnectionTest() throws Exception { + Connection expectedResponse = + Connection.newBuilder() + .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setFriendlyName("friendlyName461933014") + .setDescription("description-1724546052") + .setCreationTime(1932333101) + .setLastModifiedTime(-671513446) + .setHasCredential(true) + .build(); + mockService.addResponse(expectedResponse); + + ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + + Connection actualResponse = client.getConnection(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 getConnectionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + client.getConnection(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConnectionTest2() throws Exception { + Connection expectedResponse = + Connection.newBuilder() + .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setFriendlyName("friendlyName461933014") + .setDescription("description-1724546052") + .setCreationTime(1932333101) + .setLastModifiedTime(-671513446) + .setHasCredential(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-7851/locations/location-7851/connections/connection-7851"; + + Connection actualResponse = client.getConnection(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 getConnectionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7851/locations/location-7851/connections/connection-7851"; + client.getConnection(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConnectionsTest() throws Exception { + Connection responsesElement = Connection.newBuilder().build(); + ListConnectionsResponse expectedResponse = + ListConnectionsResponse.newBuilder() + .setNextPageToken("") + .addAllConnections(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListConnectionsPagedResponse pagedListResponse = client.listConnections(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConnectionsList().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 listConnectionsExceptionTest() 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.listConnections(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConnectionsTest2() throws Exception { + Connection responsesElement = Connection.newBuilder().build(); + ListConnectionsResponse expectedResponse = + ListConnectionsResponse.newBuilder() + .setNextPageToken("") + .addAllConnections(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListConnectionsPagedResponse pagedListResponse = client.listConnections(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConnectionsList().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 listConnectionsExceptionTest2() 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.listConnections(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateConnectionTest() throws Exception { + Connection expectedResponse = + Connection.newBuilder() + .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setFriendlyName("friendlyName461933014") + .setDescription("description-1724546052") + .setCreationTime(1932333101) + .setLastModifiedTime(-671513446) + .setHasCredential(true) + .build(); + mockService.addResponse(expectedResponse); + + ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + Connection connection = Connection.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Connection actualResponse = client.updateConnection(name, connection, updateMask); + 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 updateConnectionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + Connection connection = Connection.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateConnection(name, connection, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateConnectionTest2() throws Exception { + Connection expectedResponse = + Connection.newBuilder() + .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setFriendlyName("friendlyName461933014") + .setDescription("description-1724546052") + .setCreationTime(1932333101) + .setLastModifiedTime(-671513446) + .setHasCredential(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-7851/locations/location-7851/connections/connection-7851"; + Connection connection = Connection.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Connection actualResponse = client.updateConnection(name, connection, updateMask); + 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 updateConnectionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7851/locations/location-7851/connections/connection-7851"; + Connection connection = Connection.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateConnection(name, connection, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteConnectionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + + client.deleteConnection(name); + + 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 deleteConnectionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + client.deleteConnection(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteConnectionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-7851/locations/location-7851/connections/connection-7851"; + + client.deleteConnection(name); + + 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 deleteConnectionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7851/locations/location-7851/connections/connection-7851"; + client.deleteConnection(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + GetPolicyOptions options = GetPolicyOptions.newBuilder().build(); + + Policy actualResponse = client.getIamPolicy(resource, options); + 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 getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + GetPolicyOptions options = GetPolicyOptions.newBuilder().build(); + client.getIamPolicy(resource, options); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = "projects/project-9698/locations/location-9698/connections/connection-9698"; + GetPolicyOptions options = GetPolicyOptions.newBuilder().build(); + + Policy actualResponse = client.getIamPolicy(resource, options); + 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 getIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "projects/project-9698/locations/location-9698/connections/connection-9698"; + GetPolicyOptions options = GetPolicyOptions.newBuilder().build(); + client.getIamPolicy(resource, options); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + 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 setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = "projects/project-9698/locations/location-9698/connections/connection-9698"; + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + 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 setIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "projects/project-9698/locations/location-9698/connections/connection-9698"; + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + List permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + 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 testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + List permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest2() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String resource = "projects/project-9698/locations/location-9698/connections/connection-9698"; + List permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + 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 testIamPermissionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "projects/project-9698/locations/location-9698/connections/connection-9698"; + List permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientTest.java b/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientTest.java similarity index 100% rename from google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientTest.java rename to owl-bot-staging/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientTest.java diff --git a/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionService.java b/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionService.java similarity index 100% rename from google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionService.java rename to owl-bot-staging/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionService.java diff --git a/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionServiceImpl.java b/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionServiceImpl.java similarity index 100% rename from google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionServiceImpl.java rename to owl-bot-staging/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionServiceImpl.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java new file mode 100644 index 00000000..f9bfa808 --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java @@ -0,0 +1,945 @@ +package com.google.cloud.bigquery.connection.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Manages external data source connections and credentials.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/bigquery/connection/v1/connection.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ConnectionServiceGrpc { + + private ConnectionServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.bigquery.connection.v1.ConnectionService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateConnection", + requestType = com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.class, + responseType = com.google.cloud.bigquery.connection.v1.Connection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateConnectionMethod() { + io.grpc.MethodDescriptor getCreateConnectionMethod; + if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { + ConnectionServiceGrpc.getCreateConnectionMethod = getCreateConnectionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("CreateConnection")) + .build(); + } + } + } + return getCreateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConnection", + requestType = com.google.cloud.bigquery.connection.v1.GetConnectionRequest.class, + responseType = com.google.cloud.bigquery.connection.v1.Connection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetConnectionMethod() { + io.grpc.MethodDescriptor getGetConnectionMethod; + if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { + ConnectionServiceGrpc.getGetConnectionMethod = getGetConnectionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.GetConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("GetConnection")) + .build(); + } + } + } + return getGetConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor getListConnectionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConnections", + requestType = com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.class, + responseType = com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListConnectionsMethod() { + io.grpc.MethodDescriptor getListConnectionsMethod; + if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { + ConnectionServiceGrpc.getListConnectionsMethod = getListConnectionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnections")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("ListConnections")) + .build(); + } + } + } + return getListConnectionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConnection", + requestType = com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.class, + responseType = com.google.cloud.bigquery.connection.v1.Connection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateConnectionMethod() { + io.grpc.MethodDescriptor getUpdateConnectionMethod; + if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { + ConnectionServiceGrpc.getUpdateConnectionMethod = getUpdateConnectionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("UpdateConnection")) + .build(); + } + } + } + return getUpdateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConnection", + requestType = com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteConnectionMethod() { + io.grpc.MethodDescriptor getDeleteConnectionMethod; + if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { + ConnectionServiceGrpc.getDeleteConnectionMethod = getDeleteConnectionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("DeleteConnection")) + .build(); + } + } + } + return getDeleteConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", + requestType = com.google.iam.v1.GetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetIamPolicyMethod() { + io.grpc.MethodDescriptor getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { + ConnectionServiceGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", + requestType = com.google.iam.v1.SetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetIamPolicyMethod() { + io.grpc.MethodDescriptor getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { + ConnectionServiceGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", + requestType = com.google.iam.v1.TestIamPermissionsRequest.class, + responseType = com.google.iam.v1.TestIamPermissionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor getTestIamPermissionsMethod; + if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) == null) { + ConnectionServiceGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static ConnectionServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceStub(channel, callOptions); + } + }; + return ConnectionServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ConnectionServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceBlockingStub(channel, callOptions); + } + }; + return ConnectionServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static ConnectionServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceFutureStub(channel, callOptions); + } + }; + return ConnectionServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Manages external data source connections and credentials.
+   * 
+ */ + public static abstract class ConnectionServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a new connection.
+     * 
+ */ + public void createConnection(com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateConnectionMethod(), responseObserver); + } + + /** + *
+     * Returns specified connection.
+     * 
+ */ + public void getConnection(com.google.cloud.bigquery.connection.v1.GetConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConnectionMethod(), responseObserver); + } + + /** + *
+     * Returns a list of connections in the given project.
+     * 
+ */ + public void listConnections(com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListConnectionsMethod(), responseObserver); + } + + /** + *
+     * Updates the specified connection. For security reasons, also resets
+     * credential if connection properties are in the update field mask.
+     * 
+ */ + public void updateConnection(com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConnectionMethod(), responseObserver); + } + + /** + *
+     * Deletes connection and associated credential.
+     * 
+ */ + public void deleteConnection(com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteConnectionMethod(), responseObserver); + } + + /** + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); + } + + /** + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
+     * 
+ */ + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); + } + + /** + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a `NOT_FOUND` error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection>( + this, METHODID_CREATE_CONNECTION))) + .addMethod( + getGetConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1.GetConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection>( + this, METHODID_GET_CONNECTION))) + .addMethod( + getListConnectionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest, + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse>( + this, METHODID_LIST_CONNECTIONS))) + .addMethod( + getUpdateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection>( + this, METHODID_UPDATE_CONNECTION))) + .addMethod( + getDeleteConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_CONNECTION))) + .addMethod( + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, + com.google.iam.v1.Policy>( + this, METHODID_GET_IAM_POLICY))) + .addMethod( + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, + com.google.iam.v1.Policy>( + this, METHODID_SET_IAM_POLICY))) + .addMethod( + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + this, METHODID_TEST_IAM_PERMISSIONS))) + .build(); + } + } + + /** + *
+   * Manages external data source connections and credentials.
+   * 
+ */ + public static final class ConnectionServiceStub extends io.grpc.stub.AbstractAsyncStub { + private ConnectionServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConnectionServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceStub(channel, callOptions); + } + + /** + *
+     * Creates a new connection.
+     * 
+ */ + public void createConnection(com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateConnectionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns specified connection.
+     * 
+ */ + public void getConnection(com.google.cloud.bigquery.connection.v1.GetConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConnectionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns a list of connections in the given project.
+     * 
+ */ + public void listConnections(com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListConnectionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the specified connection. For security reasons, also resets
+     * credential if connection properties are in the update field mask.
+     * 
+ */ + public void updateConnection(com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConnectionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes connection and associated credential.
+     * 
+ */ + public void deleteConnection(com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteConnectionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
+     * 
+ */ + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a `NOT_FOUND` error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Manages external data source connections and credentials.
+   * 
+ */ + public static final class ConnectionServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private ConnectionServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConnectionServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a new connection.
+     * 
+ */ + public com.google.cloud.bigquery.connection.v1.Connection createConnection(com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateConnectionMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns specified connection.
+     * 
+ */ + public com.google.cloud.bigquery.connection.v1.Connection getConnection(com.google.cloud.bigquery.connection.v1.GetConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConnectionMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns a list of connections in the given project.
+     * 
+ */ + public com.google.cloud.bigquery.connection.v1.ListConnectionsResponse listConnections(com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListConnectionsMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the specified connection. For security reasons, also resets
+     * credential if connection properties are in the update field mask.
+     * 
+ */ + public com.google.cloud.bigquery.connection.v1.Connection updateConnection(com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConnectionMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes connection and associated credential.
+     * 
+ */ + public com.google.protobuf.Empty deleteConnection(com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteConnectionMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a `NOT_FOUND` error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Manages external data source connections and credentials.
+   * 
+ */ + public static final class ConnectionServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private ConnectionServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConnectionServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a new connection.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createConnection( + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateConnectionMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns specified connection.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getConnection( + com.google.cloud.bigquery.connection.v1.GetConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConnectionMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns a list of connections in the given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listConnections( + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListConnectionsMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the specified connection. For security reasons, also resets
+     * credential if connection properties are in the update field mask.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateConnection( + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateConnectionMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes connection and associated credential.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteConnection( + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteConnectionMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a `NOT_FOUND` error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_CONNECTION = 0; + private static final int METHODID_GET_CONNECTION = 1; + private static final int METHODID_LIST_CONNECTIONS = 2; + private static final int METHODID_UPDATE_CONNECTION = 3; + private static final int METHODID_DELETE_CONNECTION = 4; + private static final int METHODID_GET_IAM_POLICY = 5; + private static final int METHODID_SET_IAM_POLICY = 6; + private static final int METHODID_TEST_IAM_PERMISSIONS = 7; + + 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 ConnectionServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ConnectionServiceImplBase 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_CONNECTION: + serviceImpl.createConnection((com.google.cloud.bigquery.connection.v1.CreateConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CONNECTION: + serviceImpl.getConnection((com.google.cloud.bigquery.connection.v1.GetConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CONNECTIONS: + serviceImpl.listConnections((com.google.cloud.bigquery.connection.v1.ListConnectionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CONNECTION: + serviceImpl.updateConnection((com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CONNECTION: + serviceImpl.deleteConnection((com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TEST_IAM_PERMISSIONS: + serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) 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 ConnectionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ConnectionServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ConnectionService"); + } + } + + private static final class ConnectionServiceFileDescriptorSupplier + extends ConnectionServiceBaseDescriptorSupplier { + ConnectionServiceFileDescriptorSupplier() {} + } + + private static final class ConnectionServiceMethodDescriptorSupplier + extends ConnectionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ConnectionServiceMethodDescriptorSupplier(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 (ConnectionServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ConnectionServiceFileDescriptorSupplier()) + .addMethod(getCreateConnectionMethod()) + .addMethod(getGetConnectionMethod()) + .addMethod(getListConnectionsMethod()) + .addMethod(getUpdateConnectionMethod()) + .addMethod(getDeleteConnectionMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java similarity index 71% rename from proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java rename to owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java index ee352f9a..ab9ba014 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** - * - * *
  * Authentication method for Amazon Web Services (AWS) that uses Google owned
  * Google service account to assume into customer's AWS IAM Role.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.bigquery.connection.v1.AwsAccessRole}
  */
-public final class AwsAccessRole extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AwsAccessRole extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.AwsAccessRole)
     AwsAccessRoleOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AwsAccessRole.newBuilder() to construct.
   private AwsAccessRole(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AwsAccessRole() {
     iamRoleId_ = "";
     identity_ = "";
@@ -45,15 +27,16 @@ private AwsAccessRole() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AwsAccessRole();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private AwsAccessRole(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,27 +55,25 @@ private AwsAccessRole(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              iamRoleId_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            iamRoleId_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              identity_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            identity_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -100,40 +81,35 @@ private AwsAccessRole(
     } 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.bigquery.connection.v1.ConnectionOuterClass
-        .internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
-        .internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_fieldAccessorTable
+    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.connection.v1.AwsAccessRole.class,
-            com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder.class);
+            com.google.cloud.bigquery.connection.v1.AwsAccessRole.class, com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder.class);
   }
 
   public static final int IAM_ROLE_ID_FIELD_NUMBER = 1;
   private volatile java.lang.Object iamRoleId_;
   /**
-   *
-   *
    * 
    * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
    * Connection.
    * 
* * string iam_role_id = 1; - * * @return The iamRoleId. */ @java.lang.Override @@ -142,30 +118,30 @@ public java.lang.String getIamRoleId() { 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(); iamRoleId_ = s; return s; } } /** - * - * *
    * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
    * Connection.
    * 
* * string iam_role_id = 1; - * * @return The bytes for iamRoleId. */ @java.lang.Override - public com.google.protobuf.ByteString getIamRoleIdBytes() { + public com.google.protobuf.ByteString + getIamRoleIdBytes() { java.lang.Object ref = iamRoleId_; 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); iamRoleId_ = b; return b; } else { @@ -176,15 +152,12 @@ public com.google.protobuf.ByteString getIamRoleIdBytes() { public static final int IDENTITY_FIELD_NUMBER = 2; private volatile java.lang.Object identity_; /** - * - * *
    * A unique Google-owned and Google-generated identity for the Connection.
    * This identity will be used to access the user's AWS IAM Role.
    * 
* * string identity = 2; - * * @return The identity. */ @java.lang.Override @@ -193,30 +166,30 @@ public java.lang.String getIdentity() { 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(); identity_ = s; return s; } } /** - * - * *
    * A unique Google-owned and Google-generated identity for the Connection.
    * This identity will be used to access the user's AWS IAM Role.
    * 
* * string identity = 2; - * * @return The bytes for identity. */ @java.lang.Override - public com.google.protobuf.ByteString getIdentityBytes() { + public com.google.protobuf.ByteString + getIdentityBytes() { java.lang.Object ref = identity_; 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); identity_ = b; return b; } else { @@ -225,7 +198,6 @@ public com.google.protobuf.ByteString getIdentityBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -237,7 +209,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(iamRoleId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, iamRoleId_); } @@ -267,16 +240,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.bigquery.connection.v1.AwsAccessRole)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.AwsAccessRole other = - (com.google.cloud.bigquery.connection.v1.AwsAccessRole) obj; + com.google.cloud.bigquery.connection.v1.AwsAccessRole other = (com.google.cloud.bigquery.connection.v1.AwsAccessRole) obj; - if (!getIamRoleId().equals(other.getIamRoleId())) return false; - if (!getIdentity().equals(other.getIdentity())) return false; + if (!getIamRoleId() + .equals(other.getIamRoleId())) return false; + if (!getIdentity() + .equals(other.getIdentity())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -298,104 +272,96 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.AwsAccessRole 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.bigquery.connection.v1.AwsAccessRole 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.bigquery.connection.v1.AwsAccessRole parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.AwsAccessRole 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.bigquery.connection.v1.AwsAccessRole parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.AwsAccessRole 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.bigquery.connection.v1.AwsAccessRole parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.AwsAccessRole parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.AwsAccessRole 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.bigquery.connection.v1.AwsAccessRole parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.AwsAccessRole parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.AwsAccessRole 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.bigquery.connection.v1.AwsAccessRole 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.bigquery.connection.v1.AwsAccessRole 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.bigquery.connection.v1.AwsAccessRole prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.connection.v1.AwsAccessRole 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; } /** - * - * *
    * Authentication method for Amazon Web Services (AWS) that uses Google owned
    * Google service account to assume into customer's AWS IAM Role.
@@ -403,23 +369,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.bigquery.connection.v1.AwsAccessRole}
    */
-  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.bigquery.connection.v1.AwsAccessRole)
       com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
-          .internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
-          .internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_fieldAccessorTable
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.connection.v1.AwsAccessRole.class,
-              com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder.class);
+              com.google.cloud.bigquery.connection.v1.AwsAccessRole.class, com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.connection.v1.AwsAccessRole.newBuilder()
@@ -427,15 +391,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();
@@ -447,9 +412,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
-          .internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor;
     }
 
     @java.lang.Override
@@ -468,8 +433,7 @@ public com.google.cloud.bigquery.connection.v1.AwsAccessRole build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.connection.v1.AwsAccessRole buildPartial() {
-      com.google.cloud.bigquery.connection.v1.AwsAccessRole result =
-          new com.google.cloud.bigquery.connection.v1.AwsAccessRole(this);
+      com.google.cloud.bigquery.connection.v1.AwsAccessRole result = new com.google.cloud.bigquery.connection.v1.AwsAccessRole(this);
       result.iamRoleId_ = iamRoleId_;
       result.identity_ = identity_;
       onBuilt();
@@ -480,39 +444,38 @@ public com.google.cloud.bigquery.connection.v1.AwsAccessRole 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.bigquery.connection.v1.AwsAccessRole) {
-        return mergeFrom((com.google.cloud.bigquery.connection.v1.AwsAccessRole) other);
+        return mergeFrom((com.google.cloud.bigquery.connection.v1.AwsAccessRole)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -520,8 +483,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.AwsAccessRole other) {
-      if (other == com.google.cloud.bigquery.connection.v1.AwsAccessRole.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.bigquery.connection.v1.AwsAccessRole.getDefaultInstance()) return this;
       if (!other.getIamRoleId().isEmpty()) {
         iamRoleId_ = other.iamRoleId_;
         onChanged();
@@ -549,8 +511,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.bigquery.connection.v1.AwsAccessRole) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.bigquery.connection.v1.AwsAccessRole) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -562,21 +523,19 @@ public Builder mergeFrom(
 
     private java.lang.Object iamRoleId_ = "";
     /**
-     *
-     *
      * 
      * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
      * Connection.
      * 
* * string iam_role_id = 1; - * * @return The iamRoleId. */ public java.lang.String getIamRoleId() { java.lang.Object ref = iamRoleId_; 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(); iamRoleId_ = s; return s; @@ -585,22 +544,21 @@ public java.lang.String getIamRoleId() { } } /** - * - * *
      * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
      * Connection.
      * 
* * string iam_role_id = 1; - * * @return The bytes for iamRoleId. */ - public com.google.protobuf.ByteString getIamRoleIdBytes() { + public com.google.protobuf.ByteString + getIamRoleIdBytes() { java.lang.Object ref = iamRoleId_; 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); iamRoleId_ = b; return b; } else { @@ -608,64 +566,57 @@ public com.google.protobuf.ByteString getIamRoleIdBytes() { } } /** - * - * *
      * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
      * Connection.
      * 
* * string iam_role_id = 1; - * * @param value The iamRoleId to set. * @return This builder for chaining. */ - public Builder setIamRoleId(java.lang.String value) { + public Builder setIamRoleId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + iamRoleId_ = value; onChanged(); return this; } /** - * - * *
      * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
      * Connection.
      * 
* * string iam_role_id = 1; - * * @return This builder for chaining. */ public Builder clearIamRoleId() { - + iamRoleId_ = getDefaultInstance().getIamRoleId(); onChanged(); return this; } /** - * - * *
      * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
      * Connection.
      * 
* * string iam_role_id = 1; - * * @param value The bytes for iamRoleId to set. * @return This builder for chaining. */ - public Builder setIamRoleIdBytes(com.google.protobuf.ByteString value) { + public Builder setIamRoleIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + iamRoleId_ = value; onChanged(); return this; @@ -673,21 +624,19 @@ public Builder setIamRoleIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object identity_ = ""; /** - * - * *
      * A unique Google-owned and Google-generated identity for the Connection.
      * This identity will be used to access the user's AWS IAM Role.
      * 
* * string identity = 2; - * * @return The identity. */ public java.lang.String getIdentity() { java.lang.Object ref = identity_; 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(); identity_ = s; return s; @@ -696,22 +645,21 @@ public java.lang.String getIdentity() { } } /** - * - * *
      * A unique Google-owned and Google-generated identity for the Connection.
      * This identity will be used to access the user's AWS IAM Role.
      * 
* * string identity = 2; - * * @return The bytes for identity. */ - public com.google.protobuf.ByteString getIdentityBytes() { + public com.google.protobuf.ByteString + getIdentityBytes() { java.lang.Object ref = identity_; 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); identity_ = b; return b; } else { @@ -719,71 +667,64 @@ public com.google.protobuf.ByteString getIdentityBytes() { } } /** - * - * *
      * A unique Google-owned and Google-generated identity for the Connection.
      * This identity will be used to access the user's AWS IAM Role.
      * 
* * string identity = 2; - * * @param value The identity to set. * @return This builder for chaining. */ - public Builder setIdentity(java.lang.String value) { + public Builder setIdentity( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + identity_ = value; onChanged(); return this; } /** - * - * *
      * A unique Google-owned and Google-generated identity for the Connection.
      * This identity will be used to access the user's AWS IAM Role.
      * 
* * string identity = 2; - * * @return This builder for chaining. */ public Builder clearIdentity() { - + identity_ = getDefaultInstance().getIdentity(); onChanged(); return this; } /** - * - * *
      * A unique Google-owned and Google-generated identity for the Connection.
      * This identity will be used to access the user's AWS IAM Role.
      * 
* * string identity = 2; - * * @param value The bytes for identity to set. * @return This builder for chaining. */ - public Builder setIdentityBytes(com.google.protobuf.ByteString value) { + public Builder setIdentityBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + identity_ = 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); } @@ -793,12 +734,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.AwsAccessRole) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.AwsAccessRole) private static final com.google.cloud.bigquery.connection.v1.AwsAccessRole DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.AwsAccessRole(); } @@ -807,16 +748,16 @@ public static com.google.cloud.bigquery.connection.v1.AwsAccessRole getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AwsAccessRole parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AwsAccessRole(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AwsAccessRole parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AwsAccessRole(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -831,4 +772,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.connection.v1.AwsAccessRole getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.java similarity index 61% rename from proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.java index 0c06ce43..192c1165 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.java @@ -1,79 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; -public interface AwsAccessRoleOrBuilder - extends +public interface AwsAccessRoleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.AwsAccessRole) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
    * Connection.
    * 
* * string iam_role_id = 1; - * * @return The iamRoleId. */ java.lang.String getIamRoleId(); /** - * - * *
    * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
    * Connection.
    * 
* * string iam_role_id = 1; - * * @return The bytes for iamRoleId. */ - com.google.protobuf.ByteString getIamRoleIdBytes(); + com.google.protobuf.ByteString + getIamRoleIdBytes(); /** - * - * *
    * A unique Google-owned and Google-generated identity for the Connection.
    * This identity will be used to access the user's AWS IAM Role.
    * 
* * string identity = 2; - * * @return The identity. */ java.lang.String getIdentity(); /** - * - * *
    * A unique Google-owned and Google-generated identity for the Connection.
    * This identity will be used to access the user's AWS IAM Role.
    * 
* * string identity = 2; - * * @return The bytes for identity. */ - com.google.protobuf.ByteString getIdentityBytes(); + com.google.protobuf.ByteString + getIdentityBytes(); } diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRole.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRole.java similarity index 73% rename from proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRole.java rename to owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRole.java index 47eff443..6feca24a 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRole.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRole.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** - * - * *
  * Authentication method for Amazon Web Services (AWS) that uses Google owned
  * AWS IAM user's access key to assume into customer's AWS IAM Role.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.bigquery.connection.v1.AwsCrossAccountRole}
  */
-public final class AwsCrossAccountRole extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AwsCrossAccountRole extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.AwsCrossAccountRole)
     AwsCrossAccountRoleOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AwsCrossAccountRole.newBuilder() to construct.
   private AwsCrossAccountRole(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AwsCrossAccountRole() {
     iamRoleId_ = "";
     iamUserId_ = "";
@@ -46,15 +28,16 @@ private AwsCrossAccountRole() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AwsCrossAccountRole();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private AwsCrossAccountRole(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,34 +56,31 @@ private AwsCrossAccountRole(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              iamRoleId_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            iamRoleId_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              iamUserId_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            iamUserId_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              externalId_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            externalId_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -108,40 +88,35 @@ private AwsCrossAccountRole(
     } 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.bigquery.connection.v1.ConnectionOuterClass
-        .internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
-        .internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_fieldAccessorTable
+    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.class,
-            com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder.class);
+            com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.class, com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder.class);
   }
 
   public static final int IAM_ROLE_ID_FIELD_NUMBER = 1;
   private volatile java.lang.Object iamRoleId_;
   /**
-   *
-   *
    * 
    * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
    * Connection.
    * 
* * string iam_role_id = 1; - * * @return The iamRoleId. */ @java.lang.Override @@ -150,30 +125,30 @@ public java.lang.String getIamRoleId() { 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(); iamRoleId_ = s; return s; } } /** - * - * *
    * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
    * Connection.
    * 
* * string iam_role_id = 1; - * * @return The bytes for iamRoleId. */ @java.lang.Override - public com.google.protobuf.ByteString getIamRoleIdBytes() { + public com.google.protobuf.ByteString + getIamRoleIdBytes() { java.lang.Object ref = iamRoleId_; 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); iamRoleId_ = b; return b; } else { @@ -184,14 +159,11 @@ public com.google.protobuf.ByteString getIamRoleIdBytes() { public static final int IAM_USER_ID_FIELD_NUMBER = 2; private volatile java.lang.Object iamUserId_; /** - * - * *
    * Output only. Google-owned AWS IAM User for a Connection.
    * 
* * string iam_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The iamUserId. */ @java.lang.Override @@ -200,29 +172,29 @@ public java.lang.String getIamUserId() { 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(); iamUserId_ = s; return s; } } /** - * - * *
    * Output only. Google-owned AWS IAM User for a Connection.
    * 
* * string iam_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for iamUserId. */ @java.lang.Override - public com.google.protobuf.ByteString getIamUserIdBytes() { + public com.google.protobuf.ByteString + getIamUserIdBytes() { java.lang.Object ref = iamUserId_; 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); iamUserId_ = b; return b; } else { @@ -233,8 +205,6 @@ public com.google.protobuf.ByteString getIamUserIdBytes() { public static final int EXTERNAL_ID_FIELD_NUMBER = 3; private volatile java.lang.Object externalId_; /** - * - * *
    * Output only. A Google-generated id for representing Connection’s identity in AWS.
    * External Id is also used for preventing the Confused Deputy Problem. See
@@ -242,7 +212,6 @@ public com.google.protobuf.ByteString getIamUserIdBytes() {
    * 
* * string external_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The externalId. */ @java.lang.Override @@ -251,15 +220,14 @@ public java.lang.String getExternalId() { 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(); externalId_ = s; return s; } } /** - * - * *
    * Output only. A Google-generated id for representing Connection’s identity in AWS.
    * External Id is also used for preventing the Confused Deputy Problem. See
@@ -267,15 +235,16 @@ public java.lang.String getExternalId() {
    * 
* * string external_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for externalId. */ @java.lang.Override - public com.google.protobuf.ByteString getExternalIdBytes() { + public com.google.protobuf.ByteString + getExternalIdBytes() { java.lang.Object ref = externalId_; 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); externalId_ = b; return b; } else { @@ -284,7 +253,6 @@ public com.google.protobuf.ByteString getExternalIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -296,7 +264,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(iamRoleId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, iamRoleId_); } @@ -332,17 +301,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.bigquery.connection.v1.AwsCrossAccountRole)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole other = - (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) obj; + com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole other = (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) obj; - if (!getIamRoleId().equals(other.getIamRoleId())) return false; - if (!getIamUserId().equals(other.getIamUserId())) return false; - if (!getExternalId().equals(other.getExternalId())) return false; + if (!getIamRoleId() + .equals(other.getIamRoleId())) return false; + if (!getIamUserId() + .equals(other.getIamUserId())) return false; + if (!getExternalId() + .equals(other.getExternalId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -366,104 +337,96 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole 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.bigquery.connection.v1.AwsCrossAccountRole 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.bigquery.connection.v1.AwsCrossAccountRole parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole 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.bigquery.connection.v1.AwsCrossAccountRole parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole 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.bigquery.connection.v1.AwsCrossAccountRole parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole 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.bigquery.connection.v1.AwsCrossAccountRole parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole 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.bigquery.connection.v1.AwsCrossAccountRole 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.bigquery.connection.v1.AwsCrossAccountRole 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.bigquery.connection.v1.AwsCrossAccountRole prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole 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; } /** - * - * *
    * Authentication method for Amazon Web Services (AWS) that uses Google owned
    * AWS IAM user's access key to assume into customer's AWS IAM Role.
@@ -471,23 +434,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.bigquery.connection.v1.AwsCrossAccountRole}
    */
-  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.bigquery.connection.v1.AwsCrossAccountRole)
       com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
-          .internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
-          .internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_fieldAccessorTable
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.class,
-              com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder.class);
+              com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.class, com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.newBuilder()
@@ -495,15 +456,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();
@@ -517,9 +479,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
-          .internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor;
     }
 
     @java.lang.Override
@@ -538,8 +500,7 @@ public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole buildPartial() {
-      com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole result =
-          new com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole(this);
+      com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole result = new com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole(this);
       result.iamRoleId_ = iamRoleId_;
       result.iamUserId_ = iamUserId_;
       result.externalId_ = externalId_;
@@ -551,39 +512,38 @@ public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole 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.bigquery.connection.v1.AwsCrossAccountRole) {
-        return mergeFrom((com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) other);
+        return mergeFrom((com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -591,8 +551,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole other) {
-      if (other == com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.getDefaultInstance()) return this;
       if (!other.getIamRoleId().isEmpty()) {
         iamRoleId_ = other.iamRoleId_;
         onChanged();
@@ -624,8 +583,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -637,21 +595,19 @@ public Builder mergeFrom(
 
     private java.lang.Object iamRoleId_ = "";
     /**
-     *
-     *
      * 
      * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
      * Connection.
      * 
* * string iam_role_id = 1; - * * @return The iamRoleId. */ public java.lang.String getIamRoleId() { java.lang.Object ref = iamRoleId_; 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(); iamRoleId_ = s; return s; @@ -660,22 +616,21 @@ public java.lang.String getIamRoleId() { } } /** - * - * *
      * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
      * Connection.
      * 
* * string iam_role_id = 1; - * * @return The bytes for iamRoleId. */ - public com.google.protobuf.ByteString getIamRoleIdBytes() { + public com.google.protobuf.ByteString + getIamRoleIdBytes() { java.lang.Object ref = iamRoleId_; 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); iamRoleId_ = b; return b; } else { @@ -683,64 +638,57 @@ public com.google.protobuf.ByteString getIamRoleIdBytes() { } } /** - * - * *
      * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
      * Connection.
      * 
* * string iam_role_id = 1; - * * @param value The iamRoleId to set. * @return This builder for chaining. */ - public Builder setIamRoleId(java.lang.String value) { + public Builder setIamRoleId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + iamRoleId_ = value; onChanged(); return this; } /** - * - * *
      * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
      * Connection.
      * 
* * string iam_role_id = 1; - * * @return This builder for chaining. */ public Builder clearIamRoleId() { - + iamRoleId_ = getDefaultInstance().getIamRoleId(); onChanged(); return this; } /** - * - * *
      * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
      * Connection.
      * 
* * string iam_role_id = 1; - * * @param value The bytes for iamRoleId to set. * @return This builder for chaining. */ - public Builder setIamRoleIdBytes(com.google.protobuf.ByteString value) { + public Builder setIamRoleIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + iamRoleId_ = value; onChanged(); return this; @@ -748,20 +696,18 @@ public Builder setIamRoleIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object iamUserId_ = ""; /** - * - * *
      * Output only. Google-owned AWS IAM User for a Connection.
      * 
* * string iam_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The iamUserId. */ public java.lang.String getIamUserId() { java.lang.Object ref = iamUserId_; 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(); iamUserId_ = s; return s; @@ -770,21 +716,20 @@ public java.lang.String getIamUserId() { } } /** - * - * *
      * Output only. Google-owned AWS IAM User for a Connection.
      * 
* * string iam_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for iamUserId. */ - public com.google.protobuf.ByteString getIamUserIdBytes() { + public com.google.protobuf.ByteString + getIamUserIdBytes() { java.lang.Object ref = iamUserId_; 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); iamUserId_ = b; return b; } else { @@ -792,61 +737,54 @@ public com.google.protobuf.ByteString getIamUserIdBytes() { } } /** - * - * *
      * Output only. Google-owned AWS IAM User for a Connection.
      * 
* * string iam_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The iamUserId to set. * @return This builder for chaining. */ - public Builder setIamUserId(java.lang.String value) { + public Builder setIamUserId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + iamUserId_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Google-owned AWS IAM User for a Connection.
      * 
* * string iam_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearIamUserId() { - + iamUserId_ = getDefaultInstance().getIamUserId(); onChanged(); return this; } /** - * - * *
      * Output only. Google-owned AWS IAM User for a Connection.
      * 
* * string iam_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for iamUserId to set. * @return This builder for chaining. */ - public Builder setIamUserIdBytes(com.google.protobuf.ByteString value) { + public Builder setIamUserIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + iamUserId_ = value; onChanged(); return this; @@ -854,8 +792,6 @@ public Builder setIamUserIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object externalId_ = ""; /** - * - * *
      * Output only. A Google-generated id for representing Connection’s identity in AWS.
      * External Id is also used for preventing the Confused Deputy Problem. See
@@ -863,13 +799,13 @@ public Builder setIamUserIdBytes(com.google.protobuf.ByteString value) {
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The externalId. */ public java.lang.String getExternalId() { java.lang.Object ref = externalId_; 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(); externalId_ = s; return s; @@ -878,8 +814,6 @@ public java.lang.String getExternalId() { } } /** - * - * *
      * Output only. A Google-generated id for representing Connection’s identity in AWS.
      * External Id is also used for preventing the Confused Deputy Problem. See
@@ -887,14 +821,15 @@ public java.lang.String getExternalId() {
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for externalId. */ - public com.google.protobuf.ByteString getExternalIdBytes() { + public com.google.protobuf.ByteString + getExternalIdBytes() { java.lang.Object ref = externalId_; 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); externalId_ = b; return b; } else { @@ -902,8 +837,6 @@ public com.google.protobuf.ByteString getExternalIdBytes() { } } /** - * - * *
      * Output only. A Google-generated id for representing Connection’s identity in AWS.
      * External Id is also used for preventing the Confused Deputy Problem. See
@@ -911,22 +844,20 @@ public com.google.protobuf.ByteString getExternalIdBytes() {
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The externalId to set. * @return This builder for chaining. */ - public Builder setExternalId(java.lang.String value) { + public Builder setExternalId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + externalId_ = value; onChanged(); return this; } /** - * - * *
      * Output only. A Google-generated id for representing Connection’s identity in AWS.
      * External Id is also used for preventing the Confused Deputy Problem. See
@@ -934,18 +865,15 @@ public Builder setExternalId(java.lang.String value) {
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearExternalId() { - + externalId_ = getDefaultInstance().getExternalId(); onChanged(); return this; } /** - * - * *
      * Output only. A Google-generated id for representing Connection’s identity in AWS.
      * External Id is also used for preventing the Confused Deputy Problem. See
@@ -953,23 +881,23 @@ public Builder clearExternalId() {
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for externalId to set. * @return This builder for chaining. */ - public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { + public Builder setExternalIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + externalId_ = 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); } @@ -979,12 +907,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.AwsCrossAccountRole) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.AwsCrossAccountRole) private static final com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole(); } @@ -993,16 +921,16 @@ public static com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AwsCrossAccountRole parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AwsCrossAccountRole(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AwsCrossAccountRole parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AwsCrossAccountRole(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1017,4 +945,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRoleOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRoleOrBuilder.java similarity index 70% rename from proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRoleOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRoleOrBuilder.java index b25dd1e0..32003639 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRoleOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRoleOrBuilder.java @@ -1,83 +1,55 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; -public interface AwsCrossAccountRoleOrBuilder - extends +public interface AwsCrossAccountRoleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.AwsCrossAccountRole) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
    * Connection.
    * 
* * string iam_role_id = 1; - * * @return The iamRoleId. */ java.lang.String getIamRoleId(); /** - * - * *
    * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
    * Connection.
    * 
* * string iam_role_id = 1; - * * @return The bytes for iamRoleId. */ - com.google.protobuf.ByteString getIamRoleIdBytes(); + com.google.protobuf.ByteString + getIamRoleIdBytes(); /** - * - * *
    * Output only. Google-owned AWS IAM User for a Connection.
    * 
* * string iam_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The iamUserId. */ java.lang.String getIamUserId(); /** - * - * *
    * Output only. Google-owned AWS IAM User for a Connection.
    * 
* * string iam_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for iamUserId. */ - com.google.protobuf.ByteString getIamUserIdBytes(); + com.google.protobuf.ByteString + getIamUserIdBytes(); /** - * - * *
    * Output only. A Google-generated id for representing Connection’s identity in AWS.
    * External Id is also used for preventing the Confused Deputy Problem. See
@@ -85,13 +57,10 @@ public interface AwsCrossAccountRoleOrBuilder
    * 
* * string external_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The externalId. */ java.lang.String getExternalId(); /** - * - * *
    * Output only. A Google-generated id for representing Connection’s identity in AWS.
    * External Id is also used for preventing the Confused Deputy Problem. See
@@ -99,8 +68,8 @@ public interface AwsCrossAccountRoleOrBuilder
    * 
* * string external_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for externalId. */ - com.google.protobuf.ByteString getExternalIdBytes(); + com.google.protobuf.ByteString + getExternalIdBytes(); } diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java similarity index 69% rename from proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java rename to owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java index 19dd4ee9..acc4c595 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** - * - * *
  * Connection properties specific to Amazon Web Services (AWS).
  * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.AwsProperties} */ -public final class AwsProperties extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AwsProperties extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.AwsProperties) AwsPropertiesOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AwsProperties.newBuilder() to construct. private AwsProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private AwsProperties() {} + private AwsProperties() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AwsProperties(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AwsProperties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,55 +52,41 @@ private AwsProperties( case 0: done = true; break; - case 18: - { - com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder subBuilder = null; - if (authenticationMethodCase_ == 2) { - subBuilder = - ((com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) - authenticationMethod_) - .toBuilder(); - } - authenticationMethod_ = - input.readMessage( - com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) - authenticationMethod_); - authenticationMethod_ = subBuilder.buildPartial(); - } - authenticationMethodCase_ = 2; - break; + case 18: { + com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder subBuilder = null; + if (authenticationMethodCase_ == 2) { + subBuilder = ((com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_).toBuilder(); } - case 26: - { - com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder subBuilder = null; - if (authenticationMethodCase_ == 3) { - subBuilder = - ((com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_) - .toBuilder(); - } - authenticationMethod_ = - input.readMessage( - com.google.cloud.bigquery.connection.v1.AwsAccessRole.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_); - authenticationMethod_ = subBuilder.buildPartial(); - } - authenticationMethodCase_ = 3; - break; + authenticationMethod_ = + input.readMessage(com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_); + authenticationMethod_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + authenticationMethodCase_ = 2; + break; + } + case 26: { + com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder subBuilder = null; + if (authenticationMethodCase_ == 3) { + subBuilder = ((com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_).toBuilder(); + } + authenticationMethod_ = + input.readMessage(com.google.cloud.bigquery.connection.v1.AwsAccessRole.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_); + authenticationMethod_ = subBuilder.buildPartial(); } + authenticationMethodCase_ = 3; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -124,40 +94,35 @@ private AwsProperties( } 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.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_AwsProperties_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.AwsProperties.class, - com.google.cloud.bigquery.connection.v1.AwsProperties.Builder.class); + com.google.cloud.bigquery.connection.v1.AwsProperties.class, com.google.cloud.bigquery.connection.v1.AwsProperties.Builder.class); } private int authenticationMethodCase_ = 0; private java.lang.Object authenticationMethod_; - public enum AuthenticationMethodCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CROSS_ACCOUNT_ROLE(2), ACCESS_ROLE(3), AUTHENTICATIONMETHOD_NOT_SET(0); private final int value; - private AuthenticationMethodCase(int value) { this.value = value; } @@ -173,37 +138,31 @@ public static AuthenticationMethodCase valueOf(int value) { public static AuthenticationMethodCase forNumber(int value) { switch (value) { - case 2: - return CROSS_ACCOUNT_ROLE; - case 3: - return ACCESS_ROLE; - case 0: - return AUTHENTICATIONMETHOD_NOT_SET; - default: - return null; + case 2: return CROSS_ACCOUNT_ROLE; + case 3: return ACCESS_ROLE; + case 0: return AUTHENTICATIONMETHOD_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public AuthenticationMethodCase getAuthenticationMethodCase() { - return AuthenticationMethodCase.forNumber(authenticationMethodCase_); + public AuthenticationMethodCase + getAuthenticationMethodCase() { + return AuthenticationMethodCase.forNumber( + authenticationMethodCase_); } public static final int CROSS_ACCOUNT_ROLE_FIELD_NUMBER = 2; /** - * - * *
    * Authentication using Google owned AWS IAM user's access key to assume
    * into customer's AWS IAM Role.
    * 
* * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2; - * * @return Whether the crossAccountRole field is set. */ @java.lang.Override @@ -211,27 +170,22 @@ public boolean hasCrossAccountRole() { return authenticationMethodCase_ == 2; } /** - * - * *
    * Authentication using Google owned AWS IAM user's access key to assume
    * into customer's AWS IAM Role.
    * 
* * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2; - * * @return The crossAccountRole. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole getCrossAccountRole() { if (authenticationMethodCase_ == 2) { - return (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_; + return (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_; } return com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.getDefaultInstance(); } /** - * - * *
    * Authentication using Google owned AWS IAM user's access key to assume
    * into customer's AWS IAM Role.
@@ -240,25 +194,21 @@ public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole getCrossAccou
    * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2;
    */
   @java.lang.Override
-  public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder
-      getCrossAccountRoleOrBuilder() {
+  public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder getCrossAccountRoleOrBuilder() {
     if (authenticationMethodCase_ == 2) {
-      return (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_;
+       return (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_;
     }
     return com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.getDefaultInstance();
   }
 
   public static final int ACCESS_ROLE_FIELD_NUMBER = 3;
   /**
-   *
-   *
    * 
    * Authentication using Google owned service account to assume into
    * customer's AWS IAM Role.
    * 
* * .google.cloud.bigquery.connection.v1.AwsAccessRole access_role = 3; - * * @return Whether the accessRole field is set. */ @java.lang.Override @@ -266,27 +216,22 @@ public boolean hasAccessRole() { return authenticationMethodCase_ == 3; } /** - * - * *
    * Authentication using Google owned service account to assume into
    * customer's AWS IAM Role.
    * 
* * .google.cloud.bigquery.connection.v1.AwsAccessRole access_role = 3; - * * @return The accessRole. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.AwsAccessRole getAccessRole() { if (authenticationMethodCase_ == 3) { - return (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_; + return (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_; } return com.google.cloud.bigquery.connection.v1.AwsAccessRole.getDefaultInstance(); } /** - * - * *
    * Authentication using Google owned service account to assume into
    * customer's AWS IAM Role.
@@ -297,13 +242,12 @@ public com.google.cloud.bigquery.connection.v1.AwsAccessRole getAccessRole() {
   @java.lang.Override
   public com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder getAccessRoleOrBuilder() {
     if (authenticationMethodCase_ == 3) {
-      return (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_;
+       return (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_;
     }
     return com.google.cloud.bigquery.connection.v1.AwsAccessRole.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -315,14 +259,13 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (authenticationMethodCase_ == 2) {
-      output.writeMessage(
-          2, (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_);
+      output.writeMessage(2, (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_);
     }
     if (authenticationMethodCase_ == 3) {
-      output.writeMessage(
-          3, (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_);
+      output.writeMessage(3, (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_);
     }
     unknownFields.writeTo(output);
   }
@@ -334,15 +277,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (authenticationMethodCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2,
-              (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_);
     }
     if (authenticationMethodCase_ == 3) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              3, (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -352,21 +292,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.bigquery.connection.v1.AwsProperties)) {
       return super.equals(obj);
     }
-    com.google.cloud.bigquery.connection.v1.AwsProperties other =
-        (com.google.cloud.bigquery.connection.v1.AwsProperties) obj;
+    com.google.cloud.bigquery.connection.v1.AwsProperties other = (com.google.cloud.bigquery.connection.v1.AwsProperties) obj;
 
     if (!getAuthenticationMethodCase().equals(other.getAuthenticationMethodCase())) return false;
     switch (authenticationMethodCase_) {
       case 2:
-        if (!getCrossAccountRole().equals(other.getCrossAccountRole())) return false;
+        if (!getCrossAccountRole()
+            .equals(other.getCrossAccountRole())) return false;
         break;
       case 3:
-        if (!getAccessRole().equals(other.getAccessRole())) return false;
+        if (!getAccessRole()
+            .equals(other.getAccessRole())) return false;
         break;
       case 0:
       default:
@@ -400,127 +341,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.bigquery.connection.v1.AwsProperties 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.bigquery.connection.v1.AwsProperties 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.bigquery.connection.v1.AwsProperties parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.connection.v1.AwsProperties 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.bigquery.connection.v1.AwsProperties parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.connection.v1.AwsProperties 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.bigquery.connection.v1.AwsProperties parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.bigquery.connection.v1.AwsProperties parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.connection.v1.AwsProperties 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.bigquery.connection.v1.AwsProperties parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.bigquery.connection.v1.AwsProperties parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.connection.v1.AwsProperties 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.bigquery.connection.v1.AwsProperties 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.bigquery.connection.v1.AwsProperties 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.bigquery.connection.v1.AwsProperties prototype) {
+  public static Builder newBuilder(com.google.cloud.bigquery.connection.v1.AwsProperties 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;
   }
   /**
-   *
-   *
    * 
    * Connection properties specific to Amazon Web Services (AWS).
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.AwsProperties} */ - 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.bigquery.connection.v1.AwsProperties) com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_AwsProperties_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.AwsProperties.class, - com.google.cloud.bigquery.connection.v1.AwsProperties.Builder.class); + com.google.cloud.bigquery.connection.v1.AwsProperties.class, com.google.cloud.bigquery.connection.v1.AwsProperties.Builder.class); } // Construct using com.google.cloud.bigquery.connection.v1.AwsProperties.newBuilder() @@ -528,15 +459,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(); @@ -546,9 +478,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor; } @java.lang.Override @@ -567,8 +499,7 @@ public com.google.cloud.bigquery.connection.v1.AwsProperties build() { @java.lang.Override public com.google.cloud.bigquery.connection.v1.AwsProperties buildPartial() { - com.google.cloud.bigquery.connection.v1.AwsProperties result = - new com.google.cloud.bigquery.connection.v1.AwsProperties(this); + com.google.cloud.bigquery.connection.v1.AwsProperties result = new com.google.cloud.bigquery.connection.v1.AwsProperties(this); if (authenticationMethodCase_ == 2) { if (crossAccountRoleBuilder_ == null) { result.authenticationMethod_ = authenticationMethod_; @@ -592,39 +523,38 @@ public com.google.cloud.bigquery.connection.v1.AwsProperties 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.bigquery.connection.v1.AwsProperties) { - return mergeFrom((com.google.cloud.bigquery.connection.v1.AwsProperties) other); + return mergeFrom((com.google.cloud.bigquery.connection.v1.AwsProperties)other); } else { super.mergeFrom(other); return this; @@ -632,23 +562,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.AwsProperties other) { - if (other == com.google.cloud.bigquery.connection.v1.AwsProperties.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.connection.v1.AwsProperties.getDefaultInstance()) return this; switch (other.getAuthenticationMethodCase()) { - case CROSS_ACCOUNT_ROLE: - { - mergeCrossAccountRole(other.getCrossAccountRole()); - break; - } - case ACCESS_ROLE: - { - mergeAccessRole(other.getAccessRole()); - break; - } - case AUTHENTICATIONMETHOD_NOT_SET: - { - break; - } + case CROSS_ACCOUNT_ROLE: { + mergeCrossAccountRole(other.getCrossAccountRole()); + break; + } + case ACCESS_ROLE: { + mergeAccessRole(other.getAccessRole()); + break; + } + case AUTHENTICATIONMETHOD_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -669,8 +595,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.connection.v1.AwsProperties) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.connection.v1.AwsProperties) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -679,12 +604,12 @@ public Builder mergeFrom( } return this; } - private int authenticationMethodCase_ = 0; private java.lang.Object authenticationMethod_; - - public AuthenticationMethodCase getAuthenticationMethodCase() { - return AuthenticationMethodCase.forNumber(authenticationMethodCase_); + public AuthenticationMethodCase + getAuthenticationMethodCase() { + return AuthenticationMethodCase.forNumber( + authenticationMethodCase_); } public Builder clearAuthenticationMethod() { @@ -694,21 +619,16 @@ public Builder clearAuthenticationMethod() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole, - com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder, - com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder> - crossAccountRoleBuilder_; + com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole, com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder, com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder> crossAccountRoleBuilder_; /** - * - * *
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
      * 
* * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2; - * * @return Whether the crossAccountRole field is set. */ @java.lang.Override @@ -716,23 +636,19 @@ public boolean hasCrossAccountRole() { return authenticationMethodCase_ == 2; } /** - * - * *
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
      * 
* * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2; - * * @return The crossAccountRole. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole getCrossAccountRole() { if (crossAccountRoleBuilder_ == null) { if (authenticationMethodCase_ == 2) { - return (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) - authenticationMethod_; + return (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_; } return com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.getDefaultInstance(); } else { @@ -743,8 +659,6 @@ public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole getCrossAccou } } /** - * - * *
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
@@ -752,8 +666,7 @@ public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole getCrossAccou
      *
      * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2;
      */
-    public Builder setCrossAccountRole(
-        com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole value) {
+    public Builder setCrossAccountRole(com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole value) {
       if (crossAccountRoleBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -767,8 +680,6 @@ public Builder setCrossAccountRole(
       return this;
     }
     /**
-     *
-     *
      * 
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
@@ -788,8 +699,6 @@ public Builder setCrossAccountRole(
       return this;
     }
     /**
-     *
-     *
      * 
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
@@ -797,19 +706,12 @@ public Builder setCrossAccountRole(
      *
      * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2;
      */
-    public Builder mergeCrossAccountRole(
-        com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole value) {
+    public Builder mergeCrossAccountRole(com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole value) {
       if (crossAccountRoleBuilder_ == null) {
-        if (authenticationMethodCase_ == 2
-            && authenticationMethod_
-                != com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole
-                    .getDefaultInstance()) {
-          authenticationMethod_ =
-              com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.newBuilder(
-                      (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole)
-                          authenticationMethod_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (authenticationMethodCase_ == 2 &&
+            authenticationMethod_ != com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.getDefaultInstance()) {
+          authenticationMethod_ = com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.newBuilder((com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_)
+              .mergeFrom(value).buildPartial();
         } else {
           authenticationMethod_ = value;
         }
@@ -825,8 +727,6 @@ public Builder mergeCrossAccountRole(
       return this;
     }
     /**
-     *
-     *
      * 
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
@@ -851,8 +751,6 @@ public Builder clearCrossAccountRole() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
@@ -860,13 +758,10 @@ public Builder clearCrossAccountRole() {
      *
      * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2;
      */
-    public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder
-        getCrossAccountRoleBuilder() {
+    public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder getCrossAccountRoleBuilder() {
       return getCrossAccountRoleFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
@@ -875,21 +770,17 @@ public Builder clearCrossAccountRole() {
      * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2;
      */
     @java.lang.Override
-    public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder
-        getCrossAccountRoleOrBuilder() {
+    public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder getCrossAccountRoleOrBuilder() {
       if ((authenticationMethodCase_ == 2) && (crossAccountRoleBuilder_ != null)) {
         return crossAccountRoleBuilder_.getMessageOrBuilder();
       } else {
         if (authenticationMethodCase_ == 2) {
-          return (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole)
-              authenticationMethod_;
+          return (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_;
         }
         return com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.getDefaultInstance();
       }
     }
     /**
-     *
-     *
      * 
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
@@ -898,46 +789,33 @@ public Builder clearCrossAccountRole() {
      * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole,
-            com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder,
-            com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder>
+        com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole, com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder, com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder> 
         getCrossAccountRoleFieldBuilder() {
       if (crossAccountRoleBuilder_ == null) {
         if (!(authenticationMethodCase_ == 2)) {
-          authenticationMethod_ =
-              com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.getDefaultInstance();
+          authenticationMethod_ = com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.getDefaultInstance();
         }
-        crossAccountRoleBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole,
-                com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder,
-                com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder>(
+        crossAccountRoleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole, com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder, com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder>(
                 (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_,
                 getParentForChildren(),
                 isClean());
         authenticationMethod_ = null;
       }
       authenticationMethodCase_ = 2;
-      onChanged();
-      ;
+      onChanged();;
       return crossAccountRoleBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.connection.v1.AwsAccessRole,
-            com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder,
-            com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder>
-        accessRoleBuilder_;
+        com.google.cloud.bigquery.connection.v1.AwsAccessRole, com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder, com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder> accessRoleBuilder_;
     /**
-     *
-     *
      * 
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
      * 
* * .google.cloud.bigquery.connection.v1.AwsAccessRole access_role = 3; - * * @return Whether the accessRole field is set. */ @java.lang.Override @@ -945,15 +823,12 @@ public boolean hasAccessRole() { return authenticationMethodCase_ == 3; } /** - * - * *
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
      * 
* * .google.cloud.bigquery.connection.v1.AwsAccessRole access_role = 3; - * * @return The accessRole. */ @java.lang.Override @@ -971,8 +846,6 @@ public com.google.cloud.bigquery.connection.v1.AwsAccessRole getAccessRole() { } } /** - * - * *
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
@@ -994,8 +867,6 @@ public Builder setAccessRole(com.google.cloud.bigquery.connection.v1.AwsAccessRo
       return this;
     }
     /**
-     *
-     *
      * 
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
@@ -1015,8 +886,6 @@ public Builder setAccessRole(
       return this;
     }
     /**
-     *
-     *
      * 
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
@@ -1026,14 +895,10 @@ public Builder setAccessRole(
      */
     public Builder mergeAccessRole(com.google.cloud.bigquery.connection.v1.AwsAccessRole value) {
       if (accessRoleBuilder_ == null) {
-        if (authenticationMethodCase_ == 3
-            && authenticationMethod_
-                != com.google.cloud.bigquery.connection.v1.AwsAccessRole.getDefaultInstance()) {
-          authenticationMethod_ =
-              com.google.cloud.bigquery.connection.v1.AwsAccessRole.newBuilder(
-                      (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (authenticationMethodCase_ == 3 &&
+            authenticationMethod_ != com.google.cloud.bigquery.connection.v1.AwsAccessRole.getDefaultInstance()) {
+          authenticationMethod_ = com.google.cloud.bigquery.connection.v1.AwsAccessRole.newBuilder((com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_)
+              .mergeFrom(value).buildPartial();
         } else {
           authenticationMethod_ = value;
         }
@@ -1049,8 +914,6 @@ public Builder mergeAccessRole(com.google.cloud.bigquery.connection.v1.AwsAccess
       return this;
     }
     /**
-     *
-     *
      * 
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
@@ -1075,8 +938,6 @@ public Builder clearAccessRole() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
@@ -1088,8 +949,6 @@ public com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder getAccessRo
       return getAccessRoleFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
@@ -1109,8 +968,6 @@ public com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder getAccessR
       }
     }
     /**
-     *
-     *
      * 
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
@@ -1119,33 +976,26 @@ public com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder getAccessR
      * .google.cloud.bigquery.connection.v1.AwsAccessRole access_role = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.connection.v1.AwsAccessRole,
-            com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder,
-            com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder>
+        com.google.cloud.bigquery.connection.v1.AwsAccessRole, com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder, com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder> 
         getAccessRoleFieldBuilder() {
       if (accessRoleBuilder_ == null) {
         if (!(authenticationMethodCase_ == 3)) {
-          authenticationMethod_ =
-              com.google.cloud.bigquery.connection.v1.AwsAccessRole.getDefaultInstance();
+          authenticationMethod_ = com.google.cloud.bigquery.connection.v1.AwsAccessRole.getDefaultInstance();
         }
-        accessRoleBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.bigquery.connection.v1.AwsAccessRole,
-                com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder,
-                com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder>(
+        accessRoleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.bigquery.connection.v1.AwsAccessRole, com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder, com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder>(
                 (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_,
                 getParentForChildren(),
                 isClean());
         authenticationMethod_ = null;
       }
       authenticationMethodCase_ = 3;
-      onChanged();
-      ;
+      onChanged();;
       return accessRoleBuilder_;
     }
-
     @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);
     }
 
@@ -1155,12 +1005,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.AwsProperties)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.AwsProperties)
   private static final com.google.cloud.bigquery.connection.v1.AwsProperties DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.AwsProperties();
   }
@@ -1169,16 +1019,16 @@ public static com.google.cloud.bigquery.connection.v1.AwsProperties getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public AwsProperties parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new AwsProperties(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public AwsProperties parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new AwsProperties(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1193,4 +1043,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.bigquery.connection.v1.AwsProperties getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java
similarity index 73%
rename from proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java
index 41ed383b..a057fd62 100644
--- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java
@@ -1,57 +1,33 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/connection/v1/connection.proto
 
 package com.google.cloud.bigquery.connection.v1;
 
-public interface AwsPropertiesOrBuilder
-    extends
+public interface AwsPropertiesOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.AwsProperties)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Authentication using Google owned AWS IAM user's access key to assume
    * into customer's AWS IAM Role.
    * 
* * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2; - * * @return Whether the crossAccountRole field is set. */ boolean hasCrossAccountRole(); /** - * - * *
    * Authentication using Google owned AWS IAM user's access key to assume
    * into customer's AWS IAM Role.
    * 
* * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2; - * * @return The crossAccountRole. */ com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole getCrossAccountRole(); /** - * - * *
    * Authentication using Google owned AWS IAM user's access key to assume
    * into customer's AWS IAM Role.
@@ -59,38 +35,29 @@ public interface AwsPropertiesOrBuilder
    *
    * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2;
    */
-  com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder
-      getCrossAccountRoleOrBuilder();
+  com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder getCrossAccountRoleOrBuilder();
 
   /**
-   *
-   *
    * 
    * Authentication using Google owned service account to assume into
    * customer's AWS IAM Role.
    * 
* * .google.cloud.bigquery.connection.v1.AwsAccessRole access_role = 3; - * * @return Whether the accessRole field is set. */ boolean hasAccessRole(); /** - * - * *
    * Authentication using Google owned service account to assume into
    * customer's AWS IAM Role.
    * 
* * .google.cloud.bigquery.connection.v1.AwsAccessRole access_role = 3; - * * @return The accessRole. */ com.google.cloud.bigquery.connection.v1.AwsAccessRole getAccessRole(); /** - * - * *
    * Authentication using Google owned service account to assume into
    * customer's AWS IAM Role.
@@ -100,6 +67,5 @@ public interface AwsPropertiesOrBuilder
    */
   com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder getAccessRoleOrBuilder();
 
-  public com.google.cloud.bigquery.connection.v1.AwsProperties.AuthenticationMethodCase
-      getAuthenticationMethodCase();
+  public com.google.cloud.bigquery.connection.v1.AwsProperties.AuthenticationMethodCase getAuthenticationMethodCase();
 }
diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourceProperties.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourceProperties.java
similarity index 72%
rename from proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourceProperties.java
rename to owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourceProperties.java
index 7f8bcf53..5036ec76 100644
--- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourceProperties.java
+++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourceProperties.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/connection/v1/connection.proto
 
 package com.google.cloud.bigquery.connection.v1;
 
 /**
- *
- *
  * 
  * Container for connection properties for delegation of access to GCP
  * resources.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.bigquery.connection.v1.CloudResourceProperties}
  */
-public final class CloudResourceProperties extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CloudResourceProperties extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.CloudResourceProperties)
     CloudResourcePropertiesOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CloudResourceProperties.newBuilder() to construct.
   private CloudResourceProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CloudResourceProperties() {
     serviceAccountId_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CloudResourceProperties();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CloudResourceProperties(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,20 +54,19 @@ private CloudResourceProperties(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              serviceAccountId_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            serviceAccountId_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -92,33 +74,29 @@ private CloudResourceProperties(
     } 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.bigquery.connection.v1.ConnectionOuterClass
-        .internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
-        .internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable
+    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.connection.v1.CloudResourceProperties.class,
-            com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder.class);
+            com.google.cloud.bigquery.connection.v1.CloudResourceProperties.class, com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder.class);
   }
 
   public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 1;
   private volatile java.lang.Object serviceAccountId_;
   /**
-   *
-   *
    * 
    * Output only. The account ID of the service created for the purpose of this connection.
    * The service account does not have any permissions associated with it
@@ -131,7 +109,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAccountId. */ @java.lang.Override @@ -140,15 +117,14 @@ public java.lang.String getServiceAccountId() { 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(); serviceAccountId_ = s; return s; } } /** - * - * *
    * Output only. The account ID of the service created for the purpose of this connection.
    * The service account does not have any permissions associated with it
@@ -161,15 +137,16 @@ public java.lang.String getServiceAccountId() {
    * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAccountId. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountIdBytes() { + public com.google.protobuf.ByteString + getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; 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); serviceAccountId_ = b; return b; } else { @@ -178,7 +155,6 @@ public com.google.protobuf.ByteString getServiceAccountIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -190,7 +166,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(serviceAccountId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAccountId_); } @@ -214,15 +191,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.bigquery.connection.v1.CloudResourceProperties)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.CloudResourceProperties other = - (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) obj; + com.google.cloud.bigquery.connection.v1.CloudResourceProperties other = (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) obj; - if (!getServiceAccountId().equals(other.getServiceAccountId())) return false; + if (!getServiceAccountId() + .equals(other.getServiceAccountId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -242,104 +219,96 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties 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.bigquery.connection.v1.CloudResourceProperties 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.bigquery.connection.v1.CloudResourceProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties 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.bigquery.connection.v1.CloudResourceProperties parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties 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.bigquery.connection.v1.CloudResourceProperties parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties 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.bigquery.connection.v1.CloudResourceProperties parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties 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.bigquery.connection.v1.CloudResourceProperties 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.bigquery.connection.v1.CloudResourceProperties 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.bigquery.connection.v1.CloudResourceProperties prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.connection.v1.CloudResourceProperties 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; } /** - * - * *
    * Container for connection properties for delegation of access to GCP
    * resources.
@@ -347,23 +316,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.bigquery.connection.v1.CloudResourceProperties}
    */
-  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.bigquery.connection.v1.CloudResourceProperties)
       com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
-          .internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
-          .internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.connection.v1.CloudResourceProperties.class,
-              com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder.class);
+              com.google.cloud.bigquery.connection.v1.CloudResourceProperties.class, com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.connection.v1.CloudResourceProperties.newBuilder()
@@ -371,15 +338,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();
@@ -389,14 +357,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
-          .internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.connection.v1.CloudResourceProperties
-        getDefaultInstanceForType() {
+    public com.google.cloud.bigquery.connection.v1.CloudResourceProperties getDefaultInstanceForType() {
       return com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance();
     }
 
@@ -411,8 +378,7 @@ public com.google.cloud.bigquery.connection.v1.CloudResourceProperties build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.connection.v1.CloudResourceProperties buildPartial() {
-      com.google.cloud.bigquery.connection.v1.CloudResourceProperties result =
-          new com.google.cloud.bigquery.connection.v1.CloudResourceProperties(this);
+      com.google.cloud.bigquery.connection.v1.CloudResourceProperties result = new com.google.cloud.bigquery.connection.v1.CloudResourceProperties(this);
       result.serviceAccountId_ = serviceAccountId_;
       onBuilt();
       return result;
@@ -422,50 +388,46 @@ public com.google.cloud.bigquery.connection.v1.CloudResourceProperties buildPart
     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.bigquery.connection.v1.CloudResourceProperties) {
-        return mergeFrom((com.google.cloud.bigquery.connection.v1.CloudResourceProperties) other);
+        return mergeFrom((com.google.cloud.bigquery.connection.v1.CloudResourceProperties)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.bigquery.connection.v1.CloudResourceProperties other) {
-      if (other
-          == com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.CloudResourceProperties other) {
+      if (other == com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance()) return this;
       if (!other.getServiceAccountId().isEmpty()) {
         serviceAccountId_ = other.serviceAccountId_;
         onChanged();
@@ -489,9 +451,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.bigquery.connection.v1.CloudResourceProperties)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -503,8 +463,6 @@ public Builder mergeFrom(
 
     private java.lang.Object serviceAccountId_ = "";
     /**
-     *
-     *
      * 
      * Output only. The account ID of the service created for the purpose of this connection.
      * The service account does not have any permissions associated with it
@@ -517,13 +475,13 @@ public Builder mergeFrom(
      * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAccountId. */ public java.lang.String getServiceAccountId() { java.lang.Object ref = serviceAccountId_; 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(); serviceAccountId_ = s; return s; @@ -532,8 +490,6 @@ public java.lang.String getServiceAccountId() { } } /** - * - * *
      * Output only. The account ID of the service created for the purpose of this connection.
      * The service account does not have any permissions associated with it
@@ -546,14 +502,15 @@ public java.lang.String getServiceAccountId() {
      * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAccountId. */ - public com.google.protobuf.ByteString getServiceAccountIdBytes() { + public com.google.protobuf.ByteString + getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; 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); serviceAccountId_ = b; return b; } else { @@ -561,8 +518,6 @@ public com.google.protobuf.ByteString getServiceAccountIdBytes() { } } /** - * - * *
      * Output only. The account ID of the service created for the purpose of this connection.
      * The service account does not have any permissions associated with it
@@ -575,22 +530,20 @@ public com.google.protobuf.ByteString getServiceAccountIdBytes() {
      * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The serviceAccountId to set. * @return This builder for chaining. */ - public Builder setServiceAccountId(java.lang.String value) { + public Builder setServiceAccountId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccountId_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The account ID of the service created for the purpose of this connection.
      * The service account does not have any permissions associated with it
@@ -603,18 +556,15 @@ public Builder setServiceAccountId(java.lang.String value) {
      * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearServiceAccountId() { - + serviceAccountId_ = getDefaultInstance().getServiceAccountId(); onChanged(); return this; } /** - * - * *
      * Output only. The account ID of the service created for the purpose of this connection.
      * The service account does not have any permissions associated with it
@@ -627,23 +577,23 @@ public Builder clearServiceAccountId() {
      * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for serviceAccountId to set. * @return This builder for chaining. */ - public Builder setServiceAccountIdBytes(com.google.protobuf.ByteString value) { + public Builder setServiceAccountIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountId_ = 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); } @@ -653,32 +603,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.CloudResourceProperties) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.CloudResourceProperties) - private static final com.google.cloud.bigquery.connection.v1.CloudResourceProperties - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.connection.v1.CloudResourceProperties DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.CloudResourceProperties(); } - public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties - getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudResourceProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudResourceProperties(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudResourceProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CloudResourceProperties(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -690,8 +638,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudResourceProperties - getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.CloudResourceProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourcePropertiesOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourcePropertiesOrBuilder.java similarity index 70% rename from proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourcePropertiesOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourcePropertiesOrBuilder.java index 54df72fe..c47cefaf 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourcePropertiesOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourcePropertiesOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; -public interface CloudResourcePropertiesOrBuilder - extends +public interface CloudResourcePropertiesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.CloudResourceProperties) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The account ID of the service created for the purpose of this connection.
    * The service account does not have any permissions associated with it
@@ -38,13 +20,10 @@ public interface CloudResourcePropertiesOrBuilder
    * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAccountId. */ java.lang.String getServiceAccountId(); /** - * - * *
    * Output only. The account ID of the service created for the purpose of this connection.
    * The service account does not have any permissions associated with it
@@ -57,8 +36,8 @@ public interface CloudResourcePropertiesOrBuilder
    * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAccountId. */ - com.google.protobuf.ByteString getServiceAccountIdBytes(); + com.google.protobuf.ByteString + getServiceAccountIdBytes(); } diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.java similarity index 68% rename from proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.java rename to owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.java index d2d0dbf1..d07548d2 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.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/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** - * - * *
  * Connection properties specific to Cloud Spanner.
  * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.CloudSpannerProperties} */ -public final class CloudSpannerProperties extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CloudSpannerProperties extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.CloudSpannerProperties) CloudSpannerPropertiesOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CloudSpannerProperties.newBuilder() to construct. private CloudSpannerProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CloudSpannerProperties() { database_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CloudSpannerProperties(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CloudSpannerProperties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,25 +53,24 @@ private CloudSpannerProperties( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - database_ = s; - break; - } - case 16: - { - useParallelism_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + database_ = s; + break; + } + case 16: { + + useParallelism_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,39 +78,34 @@ private CloudSpannerProperties( } 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.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.class, - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder.class); + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.class, com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder.class); } public static final int DATABASE_FIELD_NUMBER = 1; private volatile java.lang.Object database_; /** - * - * *
    * Cloud Spanner database in the form `project/instance/database'
    * 
* * string database = 1; - * * @return The database. */ @java.lang.Override @@ -137,29 +114,29 @@ public java.lang.String getDatabase() { 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(); database_ = s; return s; } } /** - * - * *
    * Cloud Spanner database in the form `project/instance/database'
    * 
* * string database = 1; - * * @return The bytes for database. */ @java.lang.Override - public com.google.protobuf.ByteString getDatabaseBytes() { + public com.google.protobuf.ByteString + getDatabaseBytes() { java.lang.Object ref = database_; 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); database_ = b; return b; } else { @@ -170,14 +147,11 @@ public com.google.protobuf.ByteString getDatabaseBytes() { public static final int USE_PARALLELISM_FIELD_NUMBER = 2; private boolean useParallelism_; /** - * - * *
    * If parallelism should be used when reading from Cloud Spanner
    * 
* * bool use_parallelism = 2; - * * @return The useParallelism. */ @java.lang.Override @@ -186,7 +160,6 @@ public boolean getUseParallelism() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,7 +171,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(database_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_); } @@ -218,7 +192,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, database_); } if (useParallelism_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, useParallelism_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, useParallelism_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -228,16 +203,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.bigquery.connection.v1.CloudSpannerProperties)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties other = - (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) obj; + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties other = (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) obj; - if (!getDatabase().equals(other.getDatabase())) return false; - if (getUseParallelism() != other.getUseParallelism()) return false; + if (!getDatabase() + .equals(other.getDatabase())) return false; + if (getUseParallelism() + != other.getUseParallelism()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -252,134 +228,125 @@ public int hashCode() { hash = (37 * hash) + DATABASE_FIELD_NUMBER; hash = (53 * hash) + getDatabase().hashCode(); hash = (37 * hash) + USE_PARALLELISM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseParallelism()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUseParallelism()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.connection.v1.CloudSpannerProperties 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.bigquery.connection.v1.CloudSpannerProperties 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.bigquery.connection.v1.CloudSpannerProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.CloudSpannerProperties 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.bigquery.connection.v1.CloudSpannerProperties parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1.CloudSpannerProperties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.CloudSpannerProperties 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.bigquery.connection.v1.CloudSpannerProperties parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.CloudSpannerProperties parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.CloudSpannerProperties 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.bigquery.connection.v1.CloudSpannerProperties parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.CloudSpannerProperties parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.CloudSpannerProperties 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.bigquery.connection.v1.CloudSpannerProperties 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.bigquery.connection.v1.CloudSpannerProperties 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.bigquery.connection.v1.CloudSpannerProperties prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.connection.v1.CloudSpannerProperties 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; } /** - * - * *
    * Connection properties specific to Cloud Spanner.
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.CloudSpannerProperties} */ - 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.bigquery.connection.v1.CloudSpannerProperties) com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.class, - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder.class); + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.class, com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder.class); } // Construct using com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.newBuilder() @@ -387,15 +354,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(); @@ -407,14 +375,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties - getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties getDefaultInstanceForType() { return com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.getDefaultInstance(); } @@ -429,8 +396,7 @@ public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties build() { @java.lang.Override public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties buildPartial() { - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties result = - new com.google.cloud.bigquery.connection.v1.CloudSpannerProperties(this); + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties result = new com.google.cloud.bigquery.connection.v1.CloudSpannerProperties(this); result.database_ = database_; result.useParallelism_ = useParallelism_; onBuilt(); @@ -441,39 +407,38 @@ public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties buildParti 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.bigquery.connection.v1.CloudSpannerProperties) { - return mergeFrom((com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) other); + return mergeFrom((com.google.cloud.bigquery.connection.v1.CloudSpannerProperties)other); } else { super.mergeFrom(other); return this; @@ -481,9 +446,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.CloudSpannerProperties other) { - if (other - == com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.getDefaultInstance()) return this; if (!other.getDatabase().isEmpty()) { database_ = other.database_; onChanged(); @@ -510,9 +473,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -524,20 +485,18 @@ public Builder mergeFrom( private java.lang.Object database_ = ""; /** - * - * *
      * Cloud Spanner database in the form `project/instance/database'
      * 
* * string database = 1; - * * @return The database. */ public java.lang.String getDatabase() { java.lang.Object ref = database_; 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(); database_ = s; return s; @@ -546,21 +505,20 @@ public java.lang.String getDatabase() { } } /** - * - * *
      * Cloud Spanner database in the form `project/instance/database'
      * 
* * string database = 1; - * * @return The bytes for database. */ - public com.google.protobuf.ByteString getDatabaseBytes() { + public com.google.protobuf.ByteString + getDatabaseBytes() { java.lang.Object ref = database_; 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); database_ = b; return b; } else { @@ -568,76 +526,66 @@ public com.google.protobuf.ByteString getDatabaseBytes() { } } /** - * - * *
      * Cloud Spanner database in the form `project/instance/database'
      * 
* * string database = 1; - * * @param value The database to set. * @return This builder for chaining. */ - public Builder setDatabase(java.lang.String value) { + public Builder setDatabase( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + database_ = value; onChanged(); return this; } /** - * - * *
      * Cloud Spanner database in the form `project/instance/database'
      * 
* * string database = 1; - * * @return This builder for chaining. */ public Builder clearDatabase() { - + database_ = getDefaultInstance().getDatabase(); onChanged(); return this; } /** - * - * *
      * Cloud Spanner database in the form `project/instance/database'
      * 
* * string database = 1; - * * @param value The bytes for database to set. * @return This builder for chaining. */ - public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { + public Builder setDatabaseBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + database_ = value; onChanged(); return this; } - private boolean useParallelism_; + private boolean useParallelism_ ; /** - * - * *
      * If parallelism should be used when reading from Cloud Spanner
      * 
* * bool use_parallelism = 2; - * * @return The useParallelism. */ @java.lang.Override @@ -645,43 +593,37 @@ public boolean getUseParallelism() { return useParallelism_; } /** - * - * *
      * If parallelism should be used when reading from Cloud Spanner
      * 
* * bool use_parallelism = 2; - * * @param value The useParallelism to set. * @return This builder for chaining. */ public Builder setUseParallelism(boolean value) { - + useParallelism_ = value; onChanged(); return this; } /** - * - * *
      * If parallelism should be used when reading from Cloud Spanner
      * 
* * bool use_parallelism = 2; - * * @return This builder for chaining. */ public Builder clearUseParallelism() { - + useParallelism_ = false; 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); } @@ -691,32 +633,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.CloudSpannerProperties) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.CloudSpannerProperties) - private static final com.google.cloud.bigquery.connection.v1.CloudSpannerProperties - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.connection.v1.CloudSpannerProperties DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.CloudSpannerProperties(); } - public static com.google.cloud.bigquery.connection.v1.CloudSpannerProperties - getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1.CloudSpannerProperties getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudSpannerProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudSpannerProperties(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudSpannerProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CloudSpannerProperties(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -728,8 +668,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties - getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java similarity index 55% rename from proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java index 4e33efa2..3bd75fd0 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java @@ -1,62 +1,38 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; -public interface CloudSpannerPropertiesOrBuilder - extends +public interface CloudSpannerPropertiesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.CloudSpannerProperties) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Cloud Spanner database in the form `project/instance/database'
    * 
* * string database = 1; - * * @return The database. */ java.lang.String getDatabase(); /** - * - * *
    * Cloud Spanner database in the form `project/instance/database'
    * 
* * string database = 1; - * * @return The bytes for database. */ - com.google.protobuf.ByteString getDatabaseBytes(); + com.google.protobuf.ByteString + getDatabaseBytes(); /** - * - * *
    * If parallelism should be used when reading from Cloud Spanner
    * 
* * bool use_parallelism = 2; - * * @return The useParallelism. */ boolean getUseParallelism(); diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredential.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredential.java similarity index 70% rename from proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredential.java rename to owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredential.java index a499010f..f96bd762 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredential.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredential.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/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** - * - * *
  * Credential info for the Cloud SQL.
  * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.CloudSqlCredential} */ -public final class CloudSqlCredential extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CloudSqlCredential extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.CloudSqlCredential) CloudSqlCredentialOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CloudSqlCredential.newBuilder() to construct. private CloudSqlCredential(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CloudSqlCredential() { username_ = ""; password_ = ""; @@ -44,15 +26,16 @@ private CloudSqlCredential() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CloudSqlCredential(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CloudSqlCredential( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private CloudSqlCredential( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - username_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + username_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + password_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,39 +80,34 @@ private CloudSqlCredential( } 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.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.CloudSqlCredential.class, - com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder.class); + com.google.cloud.bigquery.connection.v1.CloudSqlCredential.class, com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder.class); } public static final int USERNAME_FIELD_NUMBER = 1; private volatile java.lang.Object username_; /** - * - * *
    * The username for the credential.
    * 
* * string username = 1; - * * @return The username. */ @java.lang.Override @@ -140,29 +116,29 @@ public java.lang.String getUsername() { 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(); username_ = s; return s; } } /** - * - * *
    * The username for the credential.
    * 
* * string username = 1; - * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; 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); username_ = b; return b; } else { @@ -173,14 +149,11 @@ public com.google.protobuf.ByteString getUsernameBytes() { public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** - * - * *
    * The password for the credential.
    * 
* * string password = 2; - * * @return The password. */ @java.lang.Override @@ -189,29 +162,29 @@ public java.lang.String getPassword() { 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(); password_ = s; return s; } } /** - * - * *
    * The password for the credential.
    * 
* * string password = 2; - * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; 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); password_ = b; return b; } else { @@ -220,7 +193,6 @@ public com.google.protobuf.ByteString getPasswordBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,7 +204,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(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -262,16 +235,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.bigquery.connection.v1.CloudSqlCredential)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.CloudSqlCredential other = - (com.google.cloud.bigquery.connection.v1.CloudSqlCredential) obj; + com.google.cloud.bigquery.connection.v1.CloudSqlCredential other = (com.google.cloud.bigquery.connection.v1.CloudSqlCredential) obj; - if (!getUsername().equals(other.getUsername())) return false; - if (!getPassword().equals(other.getPassword())) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,127 +267,117 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.CloudSqlCredential 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.bigquery.connection.v1.CloudSqlCredential 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.bigquery.connection.v1.CloudSqlCredential parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.CloudSqlCredential 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.bigquery.connection.v1.CloudSqlCredential parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.CloudSqlCredential 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.bigquery.connection.v1.CloudSqlCredential parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.CloudSqlCredential parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.CloudSqlCredential 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.bigquery.connection.v1.CloudSqlCredential parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.CloudSqlCredential parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.CloudSqlCredential 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.bigquery.connection.v1.CloudSqlCredential 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.bigquery.connection.v1.CloudSqlCredential 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.bigquery.connection.v1.CloudSqlCredential prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.connection.v1.CloudSqlCredential 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; } /** - * - * *
    * Credential info for the Cloud SQL.
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.CloudSqlCredential} */ - 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.bigquery.connection.v1.CloudSqlCredential) com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.CloudSqlCredential.class, - com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder.class); + com.google.cloud.bigquery.connection.v1.CloudSqlCredential.class, com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder.class); } // Construct using com.google.cloud.bigquery.connection.v1.CloudSqlCredential.newBuilder() @@ -421,15 +385,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(); @@ -441,9 +406,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_descriptor; } @java.lang.Override @@ -462,8 +427,7 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlCredential build() { @java.lang.Override public com.google.cloud.bigquery.connection.v1.CloudSqlCredential buildPartial() { - com.google.cloud.bigquery.connection.v1.CloudSqlCredential result = - new com.google.cloud.bigquery.connection.v1.CloudSqlCredential(this); + com.google.cloud.bigquery.connection.v1.CloudSqlCredential result = new com.google.cloud.bigquery.connection.v1.CloudSqlCredential(this); result.username_ = username_; result.password_ = password_; onBuilt(); @@ -474,39 +438,38 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlCredential 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.bigquery.connection.v1.CloudSqlCredential) { - return mergeFrom((com.google.cloud.bigquery.connection.v1.CloudSqlCredential) other); + return mergeFrom((com.google.cloud.bigquery.connection.v1.CloudSqlCredential)other); } else { super.mergeFrom(other); return this; @@ -514,8 +477,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.CloudSqlCredential other) { - if (other == com.google.cloud.bigquery.connection.v1.CloudSqlCredential.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.connection.v1.CloudSqlCredential.getDefaultInstance()) return this; if (!other.getUsername().isEmpty()) { username_ = other.username_; onChanged(); @@ -543,8 +505,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.connection.v1.CloudSqlCredential) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.connection.v1.CloudSqlCredential) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -556,20 +517,18 @@ public Builder mergeFrom( private java.lang.Object username_ = ""; /** - * - * *
      * The username for the credential.
      * 
* * string username = 1; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; 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(); username_ = s; return s; @@ -578,21 +537,20 @@ public java.lang.String getUsername() { } } /** - * - * *
      * The username for the credential.
      * 
* * string username = 1; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; 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); username_ = b; return b; } else { @@ -600,61 +558,54 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
      * The username for the credential.
      * 
* * string username = 1; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { + public Builder setUsername( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; onChanged(); return this; } /** - * - * *
      * The username for the credential.
      * 
* * string username = 1; - * * @return This builder for chaining. */ public Builder clearUsername() { - + username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** - * - * *
      * The username for the credential.
      * 
* * string username = 1; - * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -662,20 +613,18 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { private java.lang.Object password_ = ""; /** - * - * *
      * The password for the credential.
      * 
* * string password = 2; - * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; 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(); password_ = s; return s; @@ -684,21 +633,20 @@ public java.lang.String getPassword() { } } /** - * - * *
      * The password for the credential.
      * 
* * string password = 2; - * * @return The bytes for password. */ - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; 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); password_ = b; return b; } else { @@ -706,68 +654,61 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** - * - * *
      * The password for the credential.
      * 
* * string password = 2; - * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { + public Builder setPassword( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; onChanged(); return this; } /** - * - * *
      * The password for the credential.
      * 
* * string password = 2; - * * @return This builder for chaining. */ public Builder clearPassword() { - + password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** - * - * *
      * The password for the credential.
      * 
* * string password = 2; - * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = 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); } @@ -777,12 +718,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.CloudSqlCredential) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.CloudSqlCredential) private static final com.google.cloud.bigquery.connection.v1.CloudSqlCredential DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.CloudSqlCredential(); } @@ -791,16 +732,16 @@ public static com.google.cloud.bigquery.connection.v1.CloudSqlCredential getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudSqlCredential parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudSqlCredential(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudSqlCredential parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CloudSqlCredential(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -815,4 +756,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.connection.v1.CloudSqlCredential getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredentialOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredentialOrBuilder.java similarity index 54% rename from proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredentialOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredentialOrBuilder.java index 4ffc1de6..2285698d 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredentialOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredentialOrBuilder.java @@ -1,75 +1,49 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; -public interface CloudSqlCredentialOrBuilder - extends +public interface CloudSqlCredentialOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.CloudSqlCredential) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The username for the credential.
    * 
* * string username = 1; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
    * The username for the credential.
    * 
* * string username = 1; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
    * The password for the credential.
    * 
* * string password = 2; - * * @return The password. */ java.lang.String getPassword(); /** - * - * *
    * The password for the credential.
    * 
* * string password = 2; - * * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); } diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.java similarity index 66% rename from proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.java rename to owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.java index bf090cba..50b4159d 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.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/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** - * - * *
  * Connection properties specific to the Cloud SQL.
  * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.CloudSqlProperties} */ -public final class CloudSqlProperties extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CloudSqlProperties extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.CloudSqlProperties) CloudSqlPropertiesOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CloudSqlProperties.newBuilder() to construct. private CloudSqlProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CloudSqlProperties() { instanceId_ = ""; database_ = ""; @@ -45,15 +27,16 @@ private CloudSqlProperties() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CloudSqlProperties(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CloudSqlProperties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,51 +55,44 @@ private CloudSqlProperties( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - instanceId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + instanceId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - database_ = s; - break; - } - case 24: - { - int rawValue = input.readEnum(); + database_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); - type_ = rawValue; - break; + type_ = rawValue; + break; + } + case 34: { + com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder subBuilder = null; + if (credential_ != null) { + subBuilder = credential_.toBuilder(); } - case 34: - { - com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder subBuilder = null; - if (credential_ != null) { - subBuilder = credential_.toBuilder(); - } - credential_ = - input.readMessage( - com.google.cloud.bigquery.connection.v1.CloudSqlCredential.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(credential_); - credential_ = subBuilder.buildPartial(); - } - - break; + credential_ = input.readMessage(com.google.cloud.bigquery.connection.v1.CloudSqlCredential.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(credential_); + credential_ = 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) { @@ -124,41 +100,36 @@ private CloudSqlProperties( } 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.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.CloudSqlProperties.class, - com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder.class); + com.google.cloud.bigquery.connection.v1.CloudSqlProperties.class, com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder.class); } /** - * - * *
    * Supported Cloud SQL database types.
    * 
* * Protobuf enum {@code google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType} */ - public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { + public enum DatabaseType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified database type.
      * 
@@ -167,8 +138,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ DATABASE_TYPE_UNSPECIFIED(0), /** - * - * *
      * Cloud SQL for PostgreSQL.
      * 
@@ -177,8 +146,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ POSTGRES(1), /** - * - * *
      * Cloud SQL for MySQL.
      * 
@@ -190,8 +157,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified database type.
      * 
@@ -200,8 +165,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DATABASE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Cloud SQL for PostgreSQL.
      * 
@@ -210,8 +173,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int POSTGRES_VALUE = 1; /** - * - * *
      * Cloud SQL for MySQL.
      * 
@@ -220,6 +181,7 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MYSQL_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -244,51 +206,49 @@ public static DatabaseType valueOf(int value) { */ public static DatabaseType forNumber(int value) { switch (value) { - case 0: - return DATABASE_TYPE_UNSPECIFIED; - case 1: - return POSTGRES; - case 2: - return MYSQL; - default: - return null; + case 0: return DATABASE_TYPE_UNSPECIFIED; + case 1: return POSTGRES; + case 2: return MYSQL; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + DatabaseType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DatabaseType findValueByNumber(int number) { + return DatabaseType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DatabaseType findValueByNumber(int number) { - return DatabaseType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.bigquery.connection.v1.CloudSqlProperties.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1.CloudSqlProperties.getDescriptor().getEnumTypes().get(0); } private static final DatabaseType[] VALUES = values(); - public static DatabaseType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static DatabaseType 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; @@ -308,14 +268,11 @@ private DatabaseType(int value) { public static final int INSTANCE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceId_; /** - * - * *
    * Cloud SQL instance ID in the form `project:location:instance`.
    * 
* * string instance_id = 1; - * * @return The instanceId. */ @java.lang.Override @@ -324,29 +281,29 @@ public java.lang.String getInstanceId() { 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(); instanceId_ = s; return s; } } /** - * - * *
    * Cloud SQL instance ID in the form `project:location:instance`.
    * 
* * string instance_id = 1; - * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { + public com.google.protobuf.ByteString + getInstanceIdBytes() { java.lang.Object ref = instanceId_; 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); instanceId_ = b; return b; } else { @@ -357,14 +314,11 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { public static final int DATABASE_FIELD_NUMBER = 2; private volatile java.lang.Object database_; /** - * - * *
    * Database name.
    * 
* * string database = 2; - * * @return The database. */ @java.lang.Override @@ -373,29 +327,29 @@ public java.lang.String getDatabase() { 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(); database_ = s; return s; } } /** - * - * *
    * Database name.
    * 
* * string database = 2; - * * @return The bytes for database. */ @java.lang.Override - public com.google.protobuf.ByteString getDatabaseBytes() { + public com.google.protobuf.ByteString + getDatabaseBytes() { java.lang.Object ref = database_; 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); database_ = b; return b; } else { @@ -406,54 +360,38 @@ public com.google.protobuf.ByteString getDatabaseBytes() { public static final int TYPE_FIELD_NUMBER = 3; private int type_; /** - * - * *
    * Type of the Cloud SQL database.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType type = 3; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
    * Type of the Cloud SQL database.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType type = 3; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType getType() { + @java.lang.Override public com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType getType() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType result = - com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.valueOf(type_); - return result == null - ? com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.UNRECOGNIZED - : result; + com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType result = com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.valueOf(type_); + return result == null ? com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.UNRECOGNIZED : result; } public static final int CREDENTIAL_FIELD_NUMBER = 4; private com.google.cloud.bigquery.connection.v1.CloudSqlCredential credential_; /** - * - * *
    * Input only. Cloud SQL credential.
    * 
* - * - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; * @return Whether the credential field is set. */ @java.lang.Override @@ -461,43 +399,30 @@ public boolean hasCredential() { return credential_ != null; } /** - * - * *
    * Input only. Cloud SQL credential.
    * 
* - * - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The credential. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.CloudSqlCredential getCredential() { - return credential_ == null - ? com.google.cloud.bigquery.connection.v1.CloudSqlCredential.getDefaultInstance() - : credential_; + return credential_ == null ? com.google.cloud.bigquery.connection.v1.CloudSqlCredential.getDefaultInstance() : credential_; } /** - * - * *
    * Input only. Cloud SQL credential.
    * 
* - * - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder - getCredentialOrBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder getCredentialOrBuilder() { return getCredential(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -509,17 +434,15 @@ 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(instanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, database_); } - if (type_ - != com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType - .DATABASE_TYPE_UNSPECIFIED - .getNumber()) { + if (type_ != com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.DATABASE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(3, type_); } if (credential_ != null) { @@ -540,14 +463,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, database_); } - if (type_ - != com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType - .DATABASE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_); + if (type_ != com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.DATABASE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, type_); } if (credential_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCredential()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCredential()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -557,20 +479,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.connection.v1.CloudSqlProperties)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.CloudSqlProperties other = - (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) obj; + com.google.cloud.bigquery.connection.v1.CloudSqlProperties other = (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) obj; - if (!getInstanceId().equals(other.getInstanceId())) return false; - if (!getDatabase().equals(other.getDatabase())) return false; + if (!getInstanceId() + .equals(other.getInstanceId())) return false; + if (!getDatabase() + .equals(other.getDatabase())) return false; if (type_ != other.type_) return false; if (hasCredential() != other.hasCredential()) return false; if (hasCredential()) { - if (!getCredential().equals(other.getCredential())) return false; + if (!getCredential() + .equals(other.getCredential())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -599,127 +523,117 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.CloudSqlProperties 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.bigquery.connection.v1.CloudSqlProperties 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.bigquery.connection.v1.CloudSqlProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.CloudSqlProperties 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.bigquery.connection.v1.CloudSqlProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.CloudSqlProperties 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.bigquery.connection.v1.CloudSqlProperties parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.CloudSqlProperties parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.CloudSqlProperties 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.bigquery.connection.v1.CloudSqlProperties parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.CloudSqlProperties parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.CloudSqlProperties 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.bigquery.connection.v1.CloudSqlProperties 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.bigquery.connection.v1.CloudSqlProperties 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.bigquery.connection.v1.CloudSqlProperties prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.connection.v1.CloudSqlProperties 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; } /** - * - * *
    * Connection properties specific to the Cloud SQL.
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.CloudSqlProperties} */ - 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.bigquery.connection.v1.CloudSqlProperties) com.google.cloud.bigquery.connection.v1.CloudSqlPropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.CloudSqlProperties.class, - com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder.class); + com.google.cloud.bigquery.connection.v1.CloudSqlProperties.class, com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder.class); } // Construct using com.google.cloud.bigquery.connection.v1.CloudSqlProperties.newBuilder() @@ -727,15 +641,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(); @@ -755,9 +670,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor; } @java.lang.Override @@ -776,8 +691,7 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlProperties build() { @java.lang.Override public com.google.cloud.bigquery.connection.v1.CloudSqlProperties buildPartial() { - com.google.cloud.bigquery.connection.v1.CloudSqlProperties result = - new com.google.cloud.bigquery.connection.v1.CloudSqlProperties(this); + com.google.cloud.bigquery.connection.v1.CloudSqlProperties result = new com.google.cloud.bigquery.connection.v1.CloudSqlProperties(this); result.instanceId_ = instanceId_; result.database_ = database_; result.type_ = type_; @@ -794,39 +708,38 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlProperties 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.bigquery.connection.v1.CloudSqlProperties) { - return mergeFrom((com.google.cloud.bigquery.connection.v1.CloudSqlProperties) other); + return mergeFrom((com.google.cloud.bigquery.connection.v1.CloudSqlProperties)other); } else { super.mergeFrom(other); return this; @@ -834,8 +747,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.CloudSqlProperties other) { - if (other == com.google.cloud.bigquery.connection.v1.CloudSqlProperties.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.connection.v1.CloudSqlProperties.getDefaultInstance()) return this; if (!other.getInstanceId().isEmpty()) { instanceId_ = other.instanceId_; onChanged(); @@ -869,8 +781,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -882,20 +793,18 @@ public Builder mergeFrom( private java.lang.Object instanceId_ = ""; /** - * - * *
      * Cloud SQL instance ID in the form `project:location:instance`.
      * 
* * string instance_id = 1; - * * @return The instanceId. */ public java.lang.String getInstanceId() { java.lang.Object ref = instanceId_; 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(); instanceId_ = s; return s; @@ -904,21 +813,20 @@ public java.lang.String getInstanceId() { } } /** - * - * *
      * Cloud SQL instance ID in the form `project:location:instance`.
      * 
* * string instance_id = 1; - * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString getInstanceIdBytes() { + public com.google.protobuf.ByteString + getInstanceIdBytes() { java.lang.Object ref = instanceId_; 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); instanceId_ = b; return b; } else { @@ -926,61 +834,54 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } } /** - * - * *
      * Cloud SQL instance ID in the form `project:location:instance`.
      * 
* * string instance_id = 1; - * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId(java.lang.String value) { + public Builder setInstanceId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instanceId_ = value; onChanged(); return this; } /** - * - * *
      * Cloud SQL instance ID in the form `project:location:instance`.
      * 
* * string instance_id = 1; - * * @return This builder for chaining. */ public Builder clearInstanceId() { - + instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /** - * - * *
      * Cloud SQL instance ID in the form `project:location:instance`.
      * 
* * string instance_id = 1; - * * @param value The bytes for instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceId_ = value; onChanged(); return this; @@ -988,20 +889,18 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object database_ = ""; /** - * - * *
      * Database name.
      * 
* * string database = 2; - * * @return The database. */ public java.lang.String getDatabase() { java.lang.Object ref = database_; 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(); database_ = s; return s; @@ -1010,21 +909,20 @@ public java.lang.String getDatabase() { } } /** - * - * *
      * Database name.
      * 
* * string database = 2; - * * @return The bytes for database. */ - public com.google.protobuf.ByteString getDatabaseBytes() { + public com.google.protobuf.ByteString + getDatabaseBytes() { java.lang.Object ref = database_; 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); database_ = b; return b; } else { @@ -1032,61 +930,54 @@ public com.google.protobuf.ByteString getDatabaseBytes() { } } /** - * - * *
      * Database name.
      * 
* * string database = 2; - * * @param value The database to set. * @return This builder for chaining. */ - public Builder setDatabase(java.lang.String value) { + public Builder setDatabase( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + database_ = value; onChanged(); return this; } /** - * - * *
      * Database name.
      * 
* * string database = 2; - * * @return This builder for chaining. */ public Builder clearDatabase() { - + database_ = getDefaultInstance().getDatabase(); onChanged(); return this; } /** - * - * *
      * Database name.
      * 
* * string database = 2; - * * @param value The bytes for database to set. * @return This builder for chaining. */ - public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { + public Builder setDatabaseBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + database_ = value; onChanged(); return this; @@ -1094,93 +985,73 @@ public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { private int type_ = 0; /** - * - * *
      * Type of the Cloud SQL database.
      * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType type = 3; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * Type of the Cloud SQL database.
      * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType type = 3; - * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
      * Type of the Cloud SQL database.
      * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType type = 3; - * * @return The type. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType getType() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType result = - com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.valueOf(type_); - return result == null - ? com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.UNRECOGNIZED - : result; + com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType result = com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.valueOf(type_); + return result == null ? com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.UNRECOGNIZED : result; } /** - * - * *
      * Type of the Cloud SQL database.
      * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType type = 3; - * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType value) { + public Builder setType(com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Type of the Cloud SQL database.
      * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType type = 3; - * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -1188,58 +1059,39 @@ public Builder clearType() { private com.google.cloud.bigquery.connection.v1.CloudSqlCredential credential_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudSqlCredential, - com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder, - com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder> - credentialBuilder_; + com.google.cloud.bigquery.connection.v1.CloudSqlCredential, com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder, com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder> credentialBuilder_; /** - * - * *
      * Input only. Cloud SQL credential.
      * 
* - * - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; * @return Whether the credential field is set. */ public boolean hasCredential() { return credentialBuilder_ != null || credential_ != null; } /** - * - * *
      * Input only. Cloud SQL credential.
      * 
* - * - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The credential. */ public com.google.cloud.bigquery.connection.v1.CloudSqlCredential getCredential() { if (credentialBuilder_ == null) { - return credential_ == null - ? com.google.cloud.bigquery.connection.v1.CloudSqlCredential.getDefaultInstance() - : credential_; + return credential_ == null ? com.google.cloud.bigquery.connection.v1.CloudSqlCredential.getDefaultInstance() : credential_; } else { return credentialBuilder_.getMessage(); } } /** - * - * *
      * Input only. Cloud SQL credential.
      * 
* - * - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder setCredential(com.google.cloud.bigquery.connection.v1.CloudSqlCredential value) { if (credentialBuilder_ == null) { @@ -1255,15 +1107,11 @@ public Builder setCredential(com.google.cloud.bigquery.connection.v1.CloudSqlCre return this; } /** - * - * *
      * Input only. Cloud SQL credential.
      * 
* - * - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder setCredential( com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder builderForValue) { @@ -1277,24 +1125,17 @@ public Builder setCredential( return this; } /** - * - * *
      * Input only. Cloud SQL credential.
      * 
* - * - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public Builder mergeCredential( - com.google.cloud.bigquery.connection.v1.CloudSqlCredential value) { + public Builder mergeCredential(com.google.cloud.bigquery.connection.v1.CloudSqlCredential value) { if (credentialBuilder_ == null) { if (credential_ != null) { credential_ = - com.google.cloud.bigquery.connection.v1.CloudSqlCredential.newBuilder(credential_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.bigquery.connection.v1.CloudSqlCredential.newBuilder(credential_).mergeFrom(value).buildPartial(); } else { credential_ = value; } @@ -1306,15 +1147,11 @@ public Builder mergeCredential( return this; } /** - * - * *
      * Input only. Cloud SQL credential.
      * 
* - * - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder clearCredential() { if (credentialBuilder_ == null) { @@ -1328,73 +1165,55 @@ public Builder clearCredential() { return this; } /** - * - * *
      * Input only. Cloud SQL credential.
      * 
* - * - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder - getCredentialBuilder() { - + public com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder getCredentialBuilder() { + onChanged(); return getCredentialFieldBuilder().getBuilder(); } /** - * - * *
      * Input only. Cloud SQL credential.
      * 
* - * - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder - getCredentialOrBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder getCredentialOrBuilder() { if (credentialBuilder_ != null) { return credentialBuilder_.getMessageOrBuilder(); } else { - return credential_ == null - ? com.google.cloud.bigquery.connection.v1.CloudSqlCredential.getDefaultInstance() - : credential_; + return credential_ == null ? + com.google.cloud.bigquery.connection.v1.CloudSqlCredential.getDefaultInstance() : credential_; } } /** - * - * *
      * Input only. Cloud SQL credential.
      * 
* - * - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudSqlCredential, - com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder, - com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder> + com.google.cloud.bigquery.connection.v1.CloudSqlCredential, com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder, com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder> getCredentialFieldBuilder() { if (credentialBuilder_ == null) { - credentialBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudSqlCredential, - com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder, - com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder>( - getCredential(), getParentForChildren(), isClean()); + credentialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.CloudSqlCredential, com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder, com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder>( + getCredential(), + getParentForChildren(), + isClean()); credential_ = null; } return credentialBuilder_; } - @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); } @@ -1404,12 +1223,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.CloudSqlProperties) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.CloudSqlProperties) private static final com.google.cloud.bigquery.connection.v1.CloudSqlProperties DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.CloudSqlProperties(); } @@ -1418,16 +1237,16 @@ public static com.google.cloud.bigquery.connection.v1.CloudSqlProperties getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudSqlProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudSqlProperties(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudSqlProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CloudSqlProperties(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1442,4 +1261,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.connection.v1.CloudSqlProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java similarity index 61% rename from proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java index 8c82ed6a..e7365035 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java @@ -1,141 +1,95 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; -public interface CloudSqlPropertiesOrBuilder - extends +public interface CloudSqlPropertiesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.CloudSqlProperties) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Cloud SQL instance ID in the form `project:location:instance`.
    * 
* * string instance_id = 1; - * * @return The instanceId. */ java.lang.String getInstanceId(); /** - * - * *
    * Cloud SQL instance ID in the form `project:location:instance`.
    * 
* * string instance_id = 1; - * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString getInstanceIdBytes(); + com.google.protobuf.ByteString + getInstanceIdBytes(); /** - * - * *
    * Database name.
    * 
* * string database = 2; - * * @return The database. */ java.lang.String getDatabase(); /** - * - * *
    * Database name.
    * 
* * string database = 2; - * * @return The bytes for database. */ - com.google.protobuf.ByteString getDatabaseBytes(); + com.google.protobuf.ByteString + getDatabaseBytes(); /** - * - * *
    * Type of the Cloud SQL database.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType type = 3; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
    * Type of the Cloud SQL database.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType type = 3; - * * @return The type. */ com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType getType(); /** - * - * *
    * Input only. Cloud SQL credential.
    * 
* - * - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; * @return Whether the credential field is set. */ boolean hasCredential(); /** - * - * *
    * Input only. Cloud SQL credential.
    * 
* - * - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The credential. */ com.google.cloud.bigquery.connection.v1.CloudSqlCredential getCredential(); /** - * - * *
    * Input only. Cloud SQL credential.
    * 
* - * - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; */ com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder getCredentialOrBuilder(); } diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java similarity index 70% rename from proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java rename to owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java index 98644480..b6fdbd78 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** - * - * *
  * Configuration parameters to establish connection with an external data
  * source, except the credential attributes.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.bigquery.connection.v1.Connection}
  */
-public final class Connection extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Connection extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.Connection)
     ConnectionOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Connection.newBuilder() to construct.
   private Connection(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Connection() {
     name_ = "";
     friendlyName_ = "";
@@ -46,15 +28,16 @@ private Connection() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Connection();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Connection(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,131 +56,102 @@ private Connection(
           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();
 
-              friendlyName_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            friendlyName_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
+            description_ = s;
+            break;
+          }
+          case 34: {
+            com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder subBuilder = null;
+            if (propertiesCase_ == 4) {
+              subBuilder = ((com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_).toBuilder();
             }
-          case 34:
-            {
-              com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder subBuilder = null;
-              if (propertiesCase_ == 4) {
-                subBuilder =
-                    ((com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_)
-                        .toBuilder();
-              }
-              properties_ =
-                  input.readMessage(
-                      com.google.cloud.bigquery.connection.v1.CloudSqlProperties.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_);
-                properties_ = subBuilder.buildPartial();
-              }
-              propertiesCase_ = 4;
-              break;
+            properties_ =
+                input.readMessage(com.google.cloud.bigquery.connection.v1.CloudSqlProperties.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_);
+              properties_ = subBuilder.buildPartial();
             }
-          case 40:
-            {
-              creationTime_ = input.readInt64();
-              break;
+            propertiesCase_ = 4;
+            break;
+          }
+          case 40: {
+
+            creationTime_ = input.readInt64();
+            break;
+          }
+          case 48: {
+
+            lastModifiedTime_ = input.readInt64();
+            break;
+          }
+          case 56: {
+
+            hasCredential_ = input.readBool();
+            break;
+          }
+          case 66: {
+            com.google.cloud.bigquery.connection.v1.AwsProperties.Builder subBuilder = null;
+            if (propertiesCase_ == 8) {
+              subBuilder = ((com.google.cloud.bigquery.connection.v1.AwsProperties) properties_).toBuilder();
             }
-          case 48:
-            {
-              lastModifiedTime_ = input.readInt64();
-              break;
+            properties_ =
+                input.readMessage(com.google.cloud.bigquery.connection.v1.AwsProperties.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.bigquery.connection.v1.AwsProperties) properties_);
+              properties_ = subBuilder.buildPartial();
             }
-          case 56:
-            {
-              hasCredential_ = input.readBool();
-              break;
+            propertiesCase_ = 8;
+            break;
+          }
+          case 170: {
+            com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder subBuilder = null;
+            if (propertiesCase_ == 21) {
+              subBuilder = ((com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_).toBuilder();
             }
-          case 66:
-            {
-              com.google.cloud.bigquery.connection.v1.AwsProperties.Builder subBuilder = null;
-              if (propertiesCase_ == 8) {
-                subBuilder =
-                    ((com.google.cloud.bigquery.connection.v1.AwsProperties) properties_)
-                        .toBuilder();
-              }
-              properties_ =
-                  input.readMessage(
-                      com.google.cloud.bigquery.connection.v1.AwsProperties.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.bigquery.connection.v1.AwsProperties) properties_);
-                properties_ = subBuilder.buildPartial();
-              }
-              propertiesCase_ = 8;
-              break;
+            properties_ =
+                input.readMessage(com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_);
+              properties_ = subBuilder.buildPartial();
             }
-          case 170:
-            {
-              com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder subBuilder =
-                  null;
-              if (propertiesCase_ == 21) {
-                subBuilder =
-                    ((com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_)
-                        .toBuilder();
-              }
-              properties_ =
-                  input.readMessage(
-                      com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_);
-                properties_ = subBuilder.buildPartial();
-              }
-              propertiesCase_ = 21;
-              break;
+            propertiesCase_ = 21;
+            break;
+          }
+          case 178: {
+            com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder subBuilder = null;
+            if (propertiesCase_ == 22) {
+              subBuilder = ((com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_).toBuilder();
             }
-          case 178:
-            {
-              com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder subBuilder =
-                  null;
-              if (propertiesCase_ == 22) {
-                subBuilder =
-                    ((com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_)
-                        .toBuilder();
-              }
-              properties_ =
-                  input.readMessage(
-                      com.google.cloud.bigquery.connection.v1.CloudResourceProperties.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_);
-                properties_ = subBuilder.buildPartial();
-              }
-              propertiesCase_ = 22;
-              break;
+            properties_ =
+                input.readMessage(com.google.cloud.bigquery.connection.v1.CloudResourceProperties.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_);
+              properties_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            propertiesCase_ = 22;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -205,34 +159,30 @@ private Connection(
     } 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.bigquery.connection.v1.ConnectionOuterClass
-        .internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
-        .internal_static_google_cloud_bigquery_connection_v1_Connection_fieldAccessorTable
+    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_Connection_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.connection.v1.Connection.class,
-            com.google.cloud.bigquery.connection.v1.Connection.Builder.class);
+            com.google.cloud.bigquery.connection.v1.Connection.class, com.google.cloud.bigquery.connection.v1.Connection.Builder.class);
   }
 
   private int propertiesCase_ = 0;
   private java.lang.Object properties_;
-
   public enum PropertiesCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     CLOUD_SQL(4),
     AWS(8),
@@ -240,7 +190,6 @@ public enum PropertiesCase
     CLOUD_RESOURCE(22),
     PROPERTIES_NOT_SET(0);
     private final int value;
-
     private PropertiesCase(int value) {
       this.value = value;
     }
@@ -256,42 +205,34 @@ public static PropertiesCase valueOf(int value) {
 
     public static PropertiesCase forNumber(int value) {
       switch (value) {
-        case 4:
-          return CLOUD_SQL;
-        case 8:
-          return AWS;
-        case 21:
-          return CLOUD_SPANNER;
-        case 22:
-          return CLOUD_RESOURCE;
-        case 0:
-          return PROPERTIES_NOT_SET;
-        default:
-          return null;
+        case 4: return CLOUD_SQL;
+        case 8: return AWS;
+        case 21: return CLOUD_SPANNER;
+        case 22: return CLOUD_RESOURCE;
+        case 0: return PROPERTIES_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public PropertiesCase getPropertiesCase() {
-    return PropertiesCase.forNumber(propertiesCase_);
+  public PropertiesCase
+  getPropertiesCase() {
+    return PropertiesCase.forNumber(
+        propertiesCase_);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * The resource name of the connection in the form of:
    * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -300,30 +241,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the connection in the form of:
    * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
    * 
* * 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 { @@ -334,14 +275,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int FRIENDLY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object friendlyName_; /** - * - * *
    * User provided display name for the connection.
    * 
* * string friendly_name = 2; - * * @return The friendlyName. */ @java.lang.Override @@ -350,29 +288,29 @@ public java.lang.String getFriendlyName() { 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(); friendlyName_ = s; return s; } } /** - * - * *
    * User provided display name for the connection.
    * 
* * string friendly_name = 2; - * * @return The bytes for friendlyName. */ @java.lang.Override - public com.google.protobuf.ByteString getFriendlyNameBytes() { + public com.google.protobuf.ByteString + getFriendlyNameBytes() { java.lang.Object ref = friendlyName_; 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); friendlyName_ = b; return b; } else { @@ -383,14 +321,11 @@ public com.google.protobuf.ByteString getFriendlyNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
    * User provided description.
    * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -399,29 +334,29 @@ public java.lang.String getDescription() { 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(); description_ = s; return s; } } /** - * - * *
    * User provided description.
    * 
* * string description = 3; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; 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); description_ = b; return b; } else { @@ -431,14 +366,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int CLOUD_SQL_FIELD_NUMBER = 4; /** - * - * *
    * Cloud SQL properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties cloud_sql = 4; - * * @return Whether the cloudSql field is set. */ @java.lang.Override @@ -446,26 +378,21 @@ public boolean hasCloudSql() { return propertiesCase_ == 4; } /** - * - * *
    * Cloud SQL properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties cloud_sql = 4; - * * @return The cloudSql. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.CloudSqlProperties getCloudSql() { if (propertiesCase_ == 4) { - return (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_; } return com.google.cloud.bigquery.connection.v1.CloudSqlProperties.getDefaultInstance(); } /** - * - * *
    * Cloud SQL properties.
    * 
@@ -473,24 +400,20 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlProperties getCloudSql() * .google.cloud.bigquery.connection.v1.CloudSqlProperties cloud_sql = 4; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudSqlPropertiesOrBuilder - getCloudSqlOrBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudSqlPropertiesOrBuilder getCloudSqlOrBuilder() { if (propertiesCase_ == 4) { - return (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_; } return com.google.cloud.bigquery.connection.v1.CloudSqlProperties.getDefaultInstance(); } public static final int AWS_FIELD_NUMBER = 8; /** - * - * *
    * Amazon Web Services (AWS) properties.
    * 
* * .google.cloud.bigquery.connection.v1.AwsProperties aws = 8; - * * @return Whether the aws field is set. */ @java.lang.Override @@ -498,26 +421,21 @@ public boolean hasAws() { return propertiesCase_ == 8; } /** - * - * *
    * Amazon Web Services (AWS) properties.
    * 
* * .google.cloud.bigquery.connection.v1.AwsProperties aws = 8; - * * @return The aws. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.AwsProperties getAws() { if (propertiesCase_ == 8) { - return (com.google.cloud.bigquery.connection.v1.AwsProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.AwsProperties) properties_; } return com.google.cloud.bigquery.connection.v1.AwsProperties.getDefaultInstance(); } /** - * - * *
    * Amazon Web Services (AWS) properties.
    * 
@@ -527,21 +445,18 @@ public com.google.cloud.bigquery.connection.v1.AwsProperties getAws() { @java.lang.Override public com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder getAwsOrBuilder() { if (propertiesCase_ == 8) { - return (com.google.cloud.bigquery.connection.v1.AwsProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.AwsProperties) properties_; } return com.google.cloud.bigquery.connection.v1.AwsProperties.getDefaultInstance(); } public static final int CLOUD_SPANNER_FIELD_NUMBER = 21; /** - * - * *
    * Cloud Spanner properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; - * * @return Whether the cloudSpanner field is set. */ @java.lang.Override @@ -549,26 +464,21 @@ public boolean hasCloudSpanner() { return propertiesCase_ == 21; } /** - * - * *
    * Cloud Spanner properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; - * * @return The cloudSpanner. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties getCloudSpanner() { if (propertiesCase_ == 21) { - return (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_; } return com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.getDefaultInstance(); } /** - * - * *
    * Cloud Spanner properties.
    * 
@@ -576,24 +486,20 @@ public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties getCloudSp * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder - getCloudSpannerOrBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder getCloudSpannerOrBuilder() { if (propertiesCase_ == 21) { - return (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_; } return com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.getDefaultInstance(); } public static final int CLOUD_RESOURCE_FIELD_NUMBER = 22; /** - * - * *
    * Cloud Resource properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; - * * @return Whether the cloudResource field is set. */ @java.lang.Override @@ -601,26 +507,21 @@ public boolean hasCloudResource() { return propertiesCase_ == 22; } /** - * - * *
    * Cloud Resource properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; - * * @return The cloudResource. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.CloudResourceProperties getCloudResource() { if (propertiesCase_ == 22) { - return (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_; } return com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance(); } /** - * - * *
    * Cloud Resource properties.
    * 
@@ -628,10 +529,9 @@ public com.google.cloud.bigquery.connection.v1.CloudResourceProperties getCloudR * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder - getCloudResourceOrBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder getCloudResourceOrBuilder() { if (propertiesCase_ == 22) { - return (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_; } return com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance(); } @@ -639,14 +539,11 @@ public com.google.cloud.bigquery.connection.v1.CloudResourceProperties getCloudR public static final int CREATION_TIME_FIELD_NUMBER = 5; private long creationTime_; /** - * - * *
    * Output only. The creation timestamp of the connection.
    * 
* * int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The creationTime. */ @java.lang.Override @@ -657,14 +554,11 @@ public long getCreationTime() { public static final int LAST_MODIFIED_TIME_FIELD_NUMBER = 6; private long lastModifiedTime_; /** - * - * *
    * Output only. The last update timestamp of the connection.
    * 
* * int64 last_modified_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The lastModifiedTime. */ @java.lang.Override @@ -675,14 +569,11 @@ public long getLastModifiedTime() { public static final int HAS_CREDENTIAL_FIELD_NUMBER = 7; private boolean hasCredential_; /** - * - * *
    * Output only. True, if credential is configured for this connection.
    * 
* * bool has_credential = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The hasCredential. */ @java.lang.Override @@ -691,7 +582,6 @@ public boolean getHasCredential() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -703,7 +593,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_); } @@ -714,8 +605,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } if (propertiesCase_ == 4) { - output.writeMessage( - 4, (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_); + output.writeMessage(4, (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_); } if (creationTime_ != 0L) { output.writeInt64(5, creationTime_); @@ -730,12 +620,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(8, (com.google.cloud.bigquery.connection.v1.AwsProperties) properties_); } if (propertiesCase_ == 21) { - output.writeMessage( - 21, (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_); + output.writeMessage(21, (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_); } if (propertiesCase_ == 22) { - output.writeMessage( - 22, (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_); + output.writeMessage(22, (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_); } unknownFields.writeTo(output); } @@ -756,33 +644,32 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (propertiesCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_); } if (creationTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, creationTime_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, creationTime_); } if (lastModifiedTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, lastModifiedTime_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, lastModifiedTime_); } if (hasCredential_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, hasCredential_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, hasCredential_); } if (propertiesCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, (com.google.cloud.bigquery.connection.v1.AwsProperties) properties_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (com.google.cloud.bigquery.connection.v1.AwsProperties) properties_); } if (propertiesCase_ == 21) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 21, (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_); } if (propertiesCase_ == 22) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 22, (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -792,33 +679,42 @@ 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.bigquery.connection.v1.Connection)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.Connection other = - (com.google.cloud.bigquery.connection.v1.Connection) obj; - - if (!getName().equals(other.getName())) return false; - if (!getFriendlyName().equals(other.getFriendlyName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (getCreationTime() != other.getCreationTime()) return false; - if (getLastModifiedTime() != other.getLastModifiedTime()) return false; - if (getHasCredential() != other.getHasCredential()) return false; + com.google.cloud.bigquery.connection.v1.Connection other = (com.google.cloud.bigquery.connection.v1.Connection) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getFriendlyName() + .equals(other.getFriendlyName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (getCreationTime() + != other.getCreationTime()) return false; + if (getLastModifiedTime() + != other.getLastModifiedTime()) return false; + if (getHasCredential() + != other.getHasCredential()) return false; if (!getPropertiesCase().equals(other.getPropertiesCase())) return false; switch (propertiesCase_) { case 4: - if (!getCloudSql().equals(other.getCloudSql())) return false; + if (!getCloudSql() + .equals(other.getCloudSql())) return false; break; case 8: - if (!getAws().equals(other.getAws())) return false; + if (!getAws() + .equals(other.getAws())) return false; break; case 21: - if (!getCloudSpanner().equals(other.getCloudSpanner())) return false; + if (!getCloudSpanner() + .equals(other.getCloudSpanner())) return false; break; case 22: - if (!getCloudResource().equals(other.getCloudResource())) return false; + if (!getCloudResource() + .equals(other.getCloudResource())) return false; break; case 0: default: @@ -841,11 +737,14 @@ public int hashCode() { hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + CREATION_TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCreationTime()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCreationTime()); hash = (37 * hash) + LAST_MODIFIED_TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLastModifiedTime()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLastModifiedTime()); hash = (37 * hash) + HAS_CREDENTIAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasCredential()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasCredential()); switch (propertiesCase_) { case 4: hash = (37 * hash) + CLOUD_SQL_FIELD_NUMBER; @@ -872,103 +771,96 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.Connection 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.bigquery.connection.v1.Connection 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.bigquery.connection.v1.Connection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.Connection 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.bigquery.connection.v1.Connection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.Connection 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.bigquery.connection.v1.Connection parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.Connection parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.Connection 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.bigquery.connection.v1.Connection parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.Connection parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.Connection 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.bigquery.connection.v1.Connection 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.bigquery.connection.v1.Connection 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.bigquery.connection.v1.Connection prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Configuration parameters to establish connection with an external data
    * source, except the credential attributes.
@@ -976,23 +868,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.bigquery.connection.v1.Connection}
    */
-  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.bigquery.connection.v1.Connection)
       com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
-          .internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
-          .internal_static_google_cloud_bigquery_connection_v1_Connection_fieldAccessorTable
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_Connection_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.connection.v1.Connection.class,
-              com.google.cloud.bigquery.connection.v1.Connection.Builder.class);
+              com.google.cloud.bigquery.connection.v1.Connection.class, com.google.cloud.bigquery.connection.v1.Connection.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.connection.v1.Connection.newBuilder()
@@ -1000,15 +890,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();
@@ -1030,9 +921,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
-          .internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor;
     }
 
     @java.lang.Override
@@ -1051,8 +942,7 @@ public com.google.cloud.bigquery.connection.v1.Connection build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.connection.v1.Connection buildPartial() {
-      com.google.cloud.bigquery.connection.v1.Connection result =
-          new com.google.cloud.bigquery.connection.v1.Connection(this);
+      com.google.cloud.bigquery.connection.v1.Connection result = new com.google.cloud.bigquery.connection.v1.Connection(this);
       result.name_ = name_;
       result.friendlyName_ = friendlyName_;
       result.description_ = description_;
@@ -1096,39 +986,38 @@ public com.google.cloud.bigquery.connection.v1.Connection 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.bigquery.connection.v1.Connection) {
-        return mergeFrom((com.google.cloud.bigquery.connection.v1.Connection) other);
+        return mergeFrom((com.google.cloud.bigquery.connection.v1.Connection)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1136,8 +1025,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.Connection other) {
-      if (other == com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1160,30 +1048,25 @@ public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.Connection othe
         setHasCredential(other.getHasCredential());
       }
       switch (other.getPropertiesCase()) {
-        case CLOUD_SQL:
-          {
-            mergeCloudSql(other.getCloudSql());
-            break;
-          }
-        case AWS:
-          {
-            mergeAws(other.getAws());
-            break;
-          }
-        case CLOUD_SPANNER:
-          {
-            mergeCloudSpanner(other.getCloudSpanner());
-            break;
-          }
-        case CLOUD_RESOURCE:
-          {
-            mergeCloudResource(other.getCloudResource());
-            break;
-          }
-        case PROPERTIES_NOT_SET:
-          {
-            break;
-          }
+        case CLOUD_SQL: {
+          mergeCloudSql(other.getCloudSql());
+          break;
+        }
+        case AWS: {
+          mergeAws(other.getAws());
+          break;
+        }
+        case CLOUD_SPANNER: {
+          mergeCloudSpanner(other.getCloudSpanner());
+          break;
+        }
+        case CLOUD_RESOURCE: {
+          mergeCloudResource(other.getCloudResource());
+          break;
+        }
+        case PROPERTIES_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1204,8 +1087,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.bigquery.connection.v1.Connection) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.bigquery.connection.v1.Connection) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1214,12 +1096,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int propertiesCase_ = 0;
     private java.lang.Object properties_;
-
-    public PropertiesCase getPropertiesCase() {
-      return PropertiesCase.forNumber(propertiesCase_);
+    public PropertiesCase
+        getPropertiesCase() {
+      return PropertiesCase.forNumber(
+          propertiesCase_);
     }
 
     public Builder clearProperties() {
@@ -1229,23 +1111,22 @@ public Builder clearProperties() {
       return this;
     }
 
+
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the connection in the form of:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* * 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; @@ -1254,22 +1135,21 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the connection in the form of:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* * 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 { @@ -1277,64 +1157,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the connection in the form of:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* * 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 of the connection in the form of:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the connection in the form of:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* * 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; @@ -1342,20 +1215,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object friendlyName_ = ""; /** - * - * *
      * User provided display name for the connection.
      * 
* * string friendly_name = 2; - * * @return The friendlyName. */ public java.lang.String getFriendlyName() { java.lang.Object ref = friendlyName_; 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(); friendlyName_ = s; return s; @@ -1364,21 +1235,20 @@ public java.lang.String getFriendlyName() { } } /** - * - * *
      * User provided display name for the connection.
      * 
* * string friendly_name = 2; - * * @return The bytes for friendlyName. */ - public com.google.protobuf.ByteString getFriendlyNameBytes() { + public com.google.protobuf.ByteString + getFriendlyNameBytes() { java.lang.Object ref = friendlyName_; 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); friendlyName_ = b; return b; } else { @@ -1386,61 +1256,54 @@ public com.google.protobuf.ByteString getFriendlyNameBytes() { } } /** - * - * *
      * User provided display name for the connection.
      * 
* * string friendly_name = 2; - * * @param value The friendlyName to set. * @return This builder for chaining. */ - public Builder setFriendlyName(java.lang.String value) { + public Builder setFriendlyName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + friendlyName_ = value; onChanged(); return this; } /** - * - * *
      * User provided display name for the connection.
      * 
* * string friendly_name = 2; - * * @return This builder for chaining. */ public Builder clearFriendlyName() { - + friendlyName_ = getDefaultInstance().getFriendlyName(); onChanged(); return this; } /** - * - * *
      * User provided display name for the connection.
      * 
* * string friendly_name = 2; - * * @param value The bytes for friendlyName to set. * @return This builder for chaining. */ - public Builder setFriendlyNameBytes(com.google.protobuf.ByteString value) { + public Builder setFriendlyNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + friendlyName_ = value; onChanged(); return this; @@ -1448,20 +1311,18 @@ public Builder setFriendlyNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * User provided description.
      * 
* * string description = 3; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; @@ -1470,21 +1331,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * User provided description.
      * 
* * string description = 3; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; 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); description_ = b; return b; } else { @@ -1492,80 +1352,67 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * User provided description.
      * 
* * string description = 3; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * User provided description.
      * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * User provided description.
      * 
* * string description = 3; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudSqlProperties, - com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder, - com.google.cloud.bigquery.connection.v1.CloudSqlPropertiesOrBuilder> - cloudSqlBuilder_; + com.google.cloud.bigquery.connection.v1.CloudSqlProperties, com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder, com.google.cloud.bigquery.connection.v1.CloudSqlPropertiesOrBuilder> cloudSqlBuilder_; /** - * - * *
      * Cloud SQL properties.
      * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties cloud_sql = 4; - * * @return Whether the cloudSql field is set. */ @java.lang.Override @@ -1573,14 +1420,11 @@ public boolean hasCloudSql() { return propertiesCase_ == 4; } /** - * - * *
      * Cloud SQL properties.
      * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties cloud_sql = 4; - * * @return The cloudSql. */ @java.lang.Override @@ -1598,8 +1442,6 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlProperties getCloudSql() } } /** - * - * *
      * Cloud SQL properties.
      * 
@@ -1620,8 +1462,6 @@ public Builder setCloudSql(com.google.cloud.bigquery.connection.v1.CloudSqlPrope return this; } /** - * - * *
      * Cloud SQL properties.
      * 
@@ -1640,8 +1480,6 @@ public Builder setCloudSql( return this; } /** - * - * *
      * Cloud SQL properties.
      * 
@@ -1650,15 +1488,10 @@ public Builder setCloudSql( */ public Builder mergeCloudSql(com.google.cloud.bigquery.connection.v1.CloudSqlProperties value) { if (cloudSqlBuilder_ == null) { - if (propertiesCase_ == 4 - && properties_ - != com.google.cloud.bigquery.connection.v1.CloudSqlProperties - .getDefaultInstance()) { - properties_ = - com.google.cloud.bigquery.connection.v1.CloudSqlProperties.newBuilder( - (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_) - .mergeFrom(value) - .buildPartial(); + if (propertiesCase_ == 4 && + properties_ != com.google.cloud.bigquery.connection.v1.CloudSqlProperties.getDefaultInstance()) { + properties_ = com.google.cloud.bigquery.connection.v1.CloudSqlProperties.newBuilder((com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_) + .mergeFrom(value).buildPartial(); } else { properties_ = value; } @@ -1674,8 +1507,6 @@ public Builder mergeCloudSql(com.google.cloud.bigquery.connection.v1.CloudSqlPro return this; } /** - * - * *
      * Cloud SQL properties.
      * 
@@ -1699,8 +1530,6 @@ public Builder clearCloudSql() { return this; } /** - * - * *
      * Cloud SQL properties.
      * 
@@ -1711,8 +1540,6 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder getClo return getCloudSqlFieldBuilder().getBuilder(); } /** - * - * *
      * Cloud SQL properties.
      * 
@@ -1720,8 +1547,7 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder getClo * .google.cloud.bigquery.connection.v1.CloudSqlProperties cloud_sql = 4; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudSqlPropertiesOrBuilder - getCloudSqlOrBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudSqlPropertiesOrBuilder getCloudSqlOrBuilder() { if ((propertiesCase_ == 4) && (cloudSqlBuilder_ != null)) { return cloudSqlBuilder_.getMessageOrBuilder(); } else { @@ -1732,8 +1558,6 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder getClo } } /** - * - * *
      * Cloud SQL properties.
      * 
@@ -1741,45 +1565,32 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder getClo * .google.cloud.bigquery.connection.v1.CloudSqlProperties cloud_sql = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudSqlProperties, - com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder, - com.google.cloud.bigquery.connection.v1.CloudSqlPropertiesOrBuilder> + com.google.cloud.bigquery.connection.v1.CloudSqlProperties, com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder, com.google.cloud.bigquery.connection.v1.CloudSqlPropertiesOrBuilder> getCloudSqlFieldBuilder() { if (cloudSqlBuilder_ == null) { if (!(propertiesCase_ == 4)) { - properties_ = - com.google.cloud.bigquery.connection.v1.CloudSqlProperties.getDefaultInstance(); + properties_ = com.google.cloud.bigquery.connection.v1.CloudSqlProperties.getDefaultInstance(); } - cloudSqlBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudSqlProperties, - com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder, - com.google.cloud.bigquery.connection.v1.CloudSqlPropertiesOrBuilder>( + cloudSqlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.CloudSqlProperties, com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder, com.google.cloud.bigquery.connection.v1.CloudSqlPropertiesOrBuilder>( (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_, getParentForChildren(), isClean()); properties_ = null; } propertiesCase_ = 4; - onChanged(); - ; + onChanged();; return cloudSqlBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.AwsProperties, - com.google.cloud.bigquery.connection.v1.AwsProperties.Builder, - com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder> - awsBuilder_; + com.google.cloud.bigquery.connection.v1.AwsProperties, com.google.cloud.bigquery.connection.v1.AwsProperties.Builder, com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder> awsBuilder_; /** - * - * *
      * Amazon Web Services (AWS) properties.
      * 
* * .google.cloud.bigquery.connection.v1.AwsProperties aws = 8; - * * @return Whether the aws field is set. */ @java.lang.Override @@ -1787,14 +1598,11 @@ public boolean hasAws() { return propertiesCase_ == 8; } /** - * - * *
      * Amazon Web Services (AWS) properties.
      * 
* * .google.cloud.bigquery.connection.v1.AwsProperties aws = 8; - * * @return The aws. */ @java.lang.Override @@ -1812,8 +1620,6 @@ public com.google.cloud.bigquery.connection.v1.AwsProperties getAws() { } } /** - * - * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1834,8 +1640,6 @@ public Builder setAws(com.google.cloud.bigquery.connection.v1.AwsProperties valu return this; } /** - * - * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1854,8 +1658,6 @@ public Builder setAws( return this; } /** - * - * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1864,14 +1666,10 @@ public Builder setAws( */ public Builder mergeAws(com.google.cloud.bigquery.connection.v1.AwsProperties value) { if (awsBuilder_ == null) { - if (propertiesCase_ == 8 - && properties_ - != com.google.cloud.bigquery.connection.v1.AwsProperties.getDefaultInstance()) { - properties_ = - com.google.cloud.bigquery.connection.v1.AwsProperties.newBuilder( - (com.google.cloud.bigquery.connection.v1.AwsProperties) properties_) - .mergeFrom(value) - .buildPartial(); + if (propertiesCase_ == 8 && + properties_ != com.google.cloud.bigquery.connection.v1.AwsProperties.getDefaultInstance()) { + properties_ = com.google.cloud.bigquery.connection.v1.AwsProperties.newBuilder((com.google.cloud.bigquery.connection.v1.AwsProperties) properties_) + .mergeFrom(value).buildPartial(); } else { properties_ = value; } @@ -1887,8 +1685,6 @@ public Builder mergeAws(com.google.cloud.bigquery.connection.v1.AwsProperties va return this; } /** - * - * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1912,8 +1708,6 @@ public Builder clearAws() { return this; } /** - * - * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1924,8 +1718,6 @@ public com.google.cloud.bigquery.connection.v1.AwsProperties.Builder getAwsBuild return getAwsFieldBuilder().getBuilder(); } /** - * - * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1944,8 +1736,6 @@ public com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder getAwsOrBu } } /** - * - * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1953,44 +1743,32 @@ public com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder getAwsOrBu * .google.cloud.bigquery.connection.v1.AwsProperties aws = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.AwsProperties, - com.google.cloud.bigquery.connection.v1.AwsProperties.Builder, - com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder> + com.google.cloud.bigquery.connection.v1.AwsProperties, com.google.cloud.bigquery.connection.v1.AwsProperties.Builder, com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder> getAwsFieldBuilder() { if (awsBuilder_ == null) { if (!(propertiesCase_ == 8)) { properties_ = com.google.cloud.bigquery.connection.v1.AwsProperties.getDefaultInstance(); } - awsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.AwsProperties, - com.google.cloud.bigquery.connection.v1.AwsProperties.Builder, - com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder>( + awsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.AwsProperties, com.google.cloud.bigquery.connection.v1.AwsProperties.Builder, com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder>( (com.google.cloud.bigquery.connection.v1.AwsProperties) properties_, getParentForChildren(), isClean()); properties_ = null; } propertiesCase_ = 8; - onChanged(); - ; + onChanged();; return awsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties, - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder, - com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder> - cloudSpannerBuilder_; + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties, com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder, com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder> cloudSpannerBuilder_; /** - * - * *
      * Cloud Spanner properties.
      * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; - * * @return Whether the cloudSpanner field is set. */ @java.lang.Override @@ -1998,14 +1776,11 @@ public boolean hasCloudSpanner() { return propertiesCase_ == 21; } /** - * - * *
      * Cloud Spanner properties.
      * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; - * * @return The cloudSpanner. */ @java.lang.Override @@ -2023,16 +1798,13 @@ public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties getCloudSp } } /** - * - * *
      * Cloud Spanner properties.
      * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; */ - public Builder setCloudSpanner( - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties value) { + public Builder setCloudSpanner(com.google.cloud.bigquery.connection.v1.CloudSpannerProperties value) { if (cloudSpannerBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2046,8 +1818,6 @@ public Builder setCloudSpanner( return this; } /** - * - * *
      * Cloud Spanner properties.
      * 
@@ -2066,26 +1836,18 @@ public Builder setCloudSpanner( return this; } /** - * - * *
      * Cloud Spanner properties.
      * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; */ - public Builder mergeCloudSpanner( - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties value) { + public Builder mergeCloudSpanner(com.google.cloud.bigquery.connection.v1.CloudSpannerProperties value) { if (cloudSpannerBuilder_ == null) { - if (propertiesCase_ == 21 - && properties_ - != com.google.cloud.bigquery.connection.v1.CloudSpannerProperties - .getDefaultInstance()) { - properties_ = - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.newBuilder( - (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_) - .mergeFrom(value) - .buildPartial(); + if (propertiesCase_ == 21 && + properties_ != com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.getDefaultInstance()) { + properties_ = com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.newBuilder((com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_) + .mergeFrom(value).buildPartial(); } else { properties_ = value; } @@ -2101,8 +1863,6 @@ public Builder mergeCloudSpanner( return this; } /** - * - * *
      * Cloud Spanner properties.
      * 
@@ -2126,21 +1886,16 @@ public Builder clearCloudSpanner() { return this; } /** - * - * *
      * Cloud Spanner properties.
      * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; */ - public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder - getCloudSpannerBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder getCloudSpannerBuilder() { return getCloudSpannerFieldBuilder().getBuilder(); } /** - * - * *
      * Cloud Spanner properties.
      * 
@@ -2148,8 +1903,7 @@ public Builder clearCloudSpanner() { * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder - getCloudSpannerOrBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder getCloudSpannerOrBuilder() { if ((propertiesCase_ == 21) && (cloudSpannerBuilder_ != null)) { return cloudSpannerBuilder_.getMessageOrBuilder(); } else { @@ -2160,8 +1914,6 @@ public Builder clearCloudSpanner() { } } /** - * - * *
      * Cloud Spanner properties.
      * 
@@ -2169,46 +1921,32 @@ public Builder clearCloudSpanner() { * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties, - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder, - com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder> + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties, com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder, com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder> getCloudSpannerFieldBuilder() { if (cloudSpannerBuilder_ == null) { if (!(propertiesCase_ == 21)) { - properties_ = - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.getDefaultInstance(); + properties_ = com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.getDefaultInstance(); } - cloudSpannerBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties, - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder, - com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder>( + cloudSpannerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties, com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder, com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder>( (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_, getParentForChildren(), isClean()); properties_ = null; } propertiesCase_ = 21; - onChanged(); - ; + onChanged();; return cloudSpannerBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudResourceProperties, - com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder, - com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder> - cloudResourceBuilder_; + com.google.cloud.bigquery.connection.v1.CloudResourceProperties, com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder, com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder> cloudResourceBuilder_; /** - * - * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; - * - * + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; * @return Whether the cloudResource field is set. */ @java.lang.Override @@ -2216,15 +1954,11 @@ public boolean hasCloudResource() { return propertiesCase_ == 22; } /** - * - * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; - * - * + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; * @return The cloudResource. */ @java.lang.Override @@ -2242,17 +1976,13 @@ public com.google.cloud.bigquery.connection.v1.CloudResourceProperties getCloudR } } /** - * - * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; - * + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; */ - public Builder setCloudResource( - com.google.cloud.bigquery.connection.v1.CloudResourceProperties value) { + public Builder setCloudResource(com.google.cloud.bigquery.connection.v1.CloudResourceProperties value) { if (cloudResourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2266,14 +1996,11 @@ public Builder setCloudResource( return this; } /** - * - * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; - * + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; */ public Builder setCloudResource( com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder builderForValue) { @@ -2287,27 +2014,18 @@ public Builder setCloudResource( return this; } /** - * - * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; - * + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; */ - public Builder mergeCloudResource( - com.google.cloud.bigquery.connection.v1.CloudResourceProperties value) { + public Builder mergeCloudResource(com.google.cloud.bigquery.connection.v1.CloudResourceProperties value) { if (cloudResourceBuilder_ == null) { - if (propertiesCase_ == 22 - && properties_ - != com.google.cloud.bigquery.connection.v1.CloudResourceProperties - .getDefaultInstance()) { - properties_ = - com.google.cloud.bigquery.connection.v1.CloudResourceProperties.newBuilder( - (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_) - .mergeFrom(value) - .buildPartial(); + if (propertiesCase_ == 22 && + properties_ != com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance()) { + properties_ = com.google.cloud.bigquery.connection.v1.CloudResourceProperties.newBuilder((com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_) + .mergeFrom(value).buildPartial(); } else { properties_ = value; } @@ -2323,14 +2041,11 @@ public Builder mergeCloudResource( return this; } /** - * - * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; - * + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; */ public Builder clearCloudResource() { if (cloudResourceBuilder_ == null) { @@ -2349,32 +2064,24 @@ public Builder clearCloudResource() { return this; } /** - * - * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; - * + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; */ - public com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder - getCloudResourceBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder getCloudResourceBuilder() { return getCloudResourceFieldBuilder().getBuilder(); } /** - * - * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; - * + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder - getCloudResourceOrBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder getCloudResourceOrBuilder() { if ((propertiesCase_ == 22) && (cloudResourceBuilder_ != null)) { return cloudResourceBuilder_.getMessageOrBuilder(); } else { @@ -2385,51 +2092,38 @@ public Builder clearCloudResource() { } } /** - * - * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; - * + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudResourceProperties, - com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder, - com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder> + com.google.cloud.bigquery.connection.v1.CloudResourceProperties, com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder, com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder> getCloudResourceFieldBuilder() { if (cloudResourceBuilder_ == null) { if (!(propertiesCase_ == 22)) { - properties_ = - com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance(); + properties_ = com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance(); } - cloudResourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudResourceProperties, - com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder, - com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder>( + cloudResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.CloudResourceProperties, com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder, com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder>( (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_, getParentForChildren(), isClean()); properties_ = null; } propertiesCase_ = 22; - onChanged(); - ; + onChanged();; return cloudResourceBuilder_; } - private long creationTime_; + private long creationTime_ ; /** - * - * *
      * Output only. The creation timestamp of the connection.
      * 
* * int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The creationTime. */ @java.lang.Override @@ -2437,51 +2131,42 @@ public long getCreationTime() { return creationTime_; } /** - * - * *
      * Output only. The creation timestamp of the connection.
      * 
* * int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The creationTime to set. * @return This builder for chaining. */ public Builder setCreationTime(long value) { - + creationTime_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The creation timestamp of the connection.
      * 
* * int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearCreationTime() { - + creationTime_ = 0L; onChanged(); return this; } - private long lastModifiedTime_; + private long lastModifiedTime_ ; /** - * - * *
      * Output only. The last update timestamp of the connection.
      * 
* * int64 last_modified_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The lastModifiedTime. */ @java.lang.Override @@ -2489,51 +2174,42 @@ public long getLastModifiedTime() { return lastModifiedTime_; } /** - * - * *
      * Output only. The last update timestamp of the connection.
      * 
* * int64 last_modified_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The lastModifiedTime to set. * @return This builder for chaining. */ public Builder setLastModifiedTime(long value) { - + lastModifiedTime_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The last update timestamp of the connection.
      * 
* * int64 last_modified_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearLastModifiedTime() { - + lastModifiedTime_ = 0L; onChanged(); return this; } - private boolean hasCredential_; + private boolean hasCredential_ ; /** - * - * *
      * Output only. True, if credential is configured for this connection.
      * 
* * bool has_credential = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The hasCredential. */ @java.lang.Override @@ -2541,43 +2217,37 @@ public boolean getHasCredential() { return hasCredential_; } /** - * - * *
      * Output only. True, if credential is configured for this connection.
      * 
* * bool has_credential = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The hasCredential to set. * @return This builder for chaining. */ public Builder setHasCredential(boolean value) { - + hasCredential_ = value; onChanged(); return this; } /** - * - * *
      * Output only. True, if credential is configured for this connection.
      * 
* * bool has_credential = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearHasCredential() { - + hasCredential_ = false; 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); } @@ -2587,12 +2257,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.Connection) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.Connection) private static final com.google.cloud.bigquery.connection.v1.Connection DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.Connection(); } @@ -2601,16 +2271,16 @@ public static com.google.cloud.bigquery.connection.v1.Connection getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Connection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Connection(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Connection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Connection(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2625,4 +2295,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.connection.v1.Connection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionName.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionName.java similarity index 100% rename from proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionName.java rename to owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionName.java diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java similarity index 82% rename from proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java index 9e3e7a5b..42662f57 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java @@ -1,132 +1,93 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; -public interface ConnectionOrBuilder - extends +public interface ConnectionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.Connection) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the connection in the form of:
    * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the connection in the form of:
    * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * User provided display name for the connection.
    * 
* * string friendly_name = 2; - * * @return The friendlyName. */ java.lang.String getFriendlyName(); /** - * - * *
    * User provided display name for the connection.
    * 
* * string friendly_name = 2; - * * @return The bytes for friendlyName. */ - com.google.protobuf.ByteString getFriendlyNameBytes(); + com.google.protobuf.ByteString + getFriendlyNameBytes(); /** - * - * *
    * User provided description.
    * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * User provided description.
    * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Cloud SQL properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties cloud_sql = 4; - * * @return Whether the cloudSql field is set. */ boolean hasCloudSql(); /** - * - * *
    * Cloud SQL properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties cloud_sql = 4; - * * @return The cloudSql. */ com.google.cloud.bigquery.connection.v1.CloudSqlProperties getCloudSql(); /** - * - * *
    * Cloud SQL properties.
    * 
@@ -136,32 +97,24 @@ public interface ConnectionOrBuilder com.google.cloud.bigquery.connection.v1.CloudSqlPropertiesOrBuilder getCloudSqlOrBuilder(); /** - * - * *
    * Amazon Web Services (AWS) properties.
    * 
* * .google.cloud.bigquery.connection.v1.AwsProperties aws = 8; - * * @return Whether the aws field is set. */ boolean hasAws(); /** - * - * *
    * Amazon Web Services (AWS) properties.
    * 
* * .google.cloud.bigquery.connection.v1.AwsProperties aws = 8; - * * @return The aws. */ com.google.cloud.bigquery.connection.v1.AwsProperties getAws(); /** - * - * *
    * Amazon Web Services (AWS) properties.
    * 
@@ -171,112 +124,85 @@ public interface ConnectionOrBuilder com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder getAwsOrBuilder(); /** - * - * *
    * Cloud Spanner properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; - * * @return Whether the cloudSpanner field is set. */ boolean hasCloudSpanner(); /** - * - * *
    * Cloud Spanner properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; - * * @return The cloudSpanner. */ com.google.cloud.bigquery.connection.v1.CloudSpannerProperties getCloudSpanner(); /** - * - * *
    * Cloud Spanner properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; */ - com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder - getCloudSpannerOrBuilder(); + com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder getCloudSpannerOrBuilder(); /** - * - * *
    * Cloud Resource properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; - * * @return Whether the cloudResource field is set. */ boolean hasCloudResource(); /** - * - * *
    * Cloud Resource properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; - * * @return The cloudResource. */ com.google.cloud.bigquery.connection.v1.CloudResourceProperties getCloudResource(); /** - * - * *
    * Cloud Resource properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; */ - com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder - getCloudResourceOrBuilder(); + com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder getCloudResourceOrBuilder(); /** - * - * *
    * Output only. The creation timestamp of the connection.
    * 
* * int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The creationTime. */ long getCreationTime(); /** - * - * *
    * Output only. The last update timestamp of the connection.
    * 
* * int64 last_modified_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The lastModifiedTime. */ long getLastModifiedTime(); /** - * - * *
    * Output only. True, if credential is configured for this connection.
    * 
* * bool has_credential = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The hasCredential. */ boolean getHasCredential(); diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java new file mode 100644 index 00000000..c912265e --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java @@ -0,0 +1,330 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/connection/v1/connection.proto + +package com.google.cloud.bigquery.connection.v1; + +public final class ConnectionOuterClass { + private ConnectionOuterClass() {} + 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_bigquery_connection_v1_CreateConnectionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_Connection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_AwsProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/bigquery/connection/v1/co" + + "nnection.proto\022#google.cloud.bigquery.co" + + "nnection.v1\032\034google/api/annotations.prot" + + "o\032\027google/api/client.proto\032\037google/api/f" + + "ield_behavior.proto\032\031google/api/resource" + + ".proto\032\036google/iam/v1/iam_policy.proto\032\032" + + "google/iam/v1/policy.proto\032\033google/proto" + + "buf/empty.proto\032 google/protobuf/field_m" + + "ask.proto\"\272\001\n\027CreateConnectionRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googlea" + + "pis.com/Location\022\032\n\rconnection_id\030\002 \001(\tB" + + "\003\340A\001\022H\n\nconnection\030\003 \001(\0132/.google.cloud." + + "bigquery.connection.v1.ConnectionB\003\340A\002\"Z" + + "\n\024GetConnectionRequest\022B\n\004name\030\001 \001(\tB4\340A" + + "\002\372A.\n,bigqueryconnection.googleapis.com/" + + "Connection\"\177\n\026ListConnectionsRequest\0229\n\006" + + "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + + "is.com/Location\022\026\n\tpage_size\030\004 \001(\005B\003\340A\002\022" + + "\022\n\npage_token\030\003 \001(\t\"x\n\027ListConnectionsRe" + + "sponse\022\027\n\017next_page_token\030\001 \001(\t\022D\n\013conne" + + "ctions\030\002 \003(\0132/.google.cloud.bigquery.con" + + "nection.v1.Connection\"\335\001\n\027UpdateConnecti" + + "onRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,bigquer" + + "yconnection.googleapis.com/Connection\022H\n" + + "\nconnection\030\002 \001(\0132/.google.cloud.bigquer" + + "y.connection.v1.ConnectionB\003\340A\002\0224\n\013updat" + + "e_mask\030\003 \001(\0132\032.google.protobuf.FieldMask" + + "B\003\340A\002\"]\n\027DeleteConnectionRequest\022B\n\004name" + + "\030\001 \001(\tB4\340A\002\372A.\n,bigqueryconnection.googl" + + "eapis.com/Connection\"\342\004\n\nConnection\022\014\n\004n" + + "ame\030\001 \001(\t\022\025\n\rfriendly_name\030\002 \001(\t\022\023\n\013desc" + + "ription\030\003 \001(\t\022L\n\tcloud_sql\030\004 \001(\01327.googl" + + "e.cloud.bigquery.connection.v1.CloudSqlP" + + "ropertiesH\000\022A\n\003aws\030\010 \001(\01322.google.cloud." + + "bigquery.connection.v1.AwsPropertiesH\000\022T" + + "\n\rcloud_spanner\030\025 \001(\0132;.google.cloud.big" + + "query.connection.v1.CloudSpannerProperti" + + "esH\000\022V\n\016cloud_resource\030\026 \001(\0132<.google.cl" + + "oud.bigquery.connection.v1.CloudResource" + + "PropertiesH\000\022\032\n\rcreation_time\030\005 \001(\003B\003\340A\003" + + "\022\037\n\022last_modified_time\030\006 \001(\003B\003\340A\003\022\033\n\016has" + + "_credential\030\007 \001(\010B\003\340A\003:s\352Ap\n,bigquerycon" + + "nection.googleapis.com/Connection\022@proje" + + "cts/{project}/locations/{location}/conne" + + "ctions/{connection}B\014\n\nproperties\"\251\002\n\022Cl" + + "oudSqlProperties\022\023\n\013instance_id\030\001 \001(\t\022\020\n" + + "\010database\030\002 \001(\t\022R\n\004type\030\003 \001(\0162D.google.c" + + "loud.bigquery.connection.v1.CloudSqlProp" + + "erties.DatabaseType\022P\n\ncredential\030\004 \001(\0132" + + "7.google.cloud.bigquery.connection.v1.Cl" + + "oudSqlCredentialB\003\340A\004\"F\n\014DatabaseType\022\035\n" + + "\031DATABASE_TYPE_UNSPECIFIED\020\000\022\014\n\010POSTGRES" + + "\020\001\022\t\n\005MYSQL\020\002\"8\n\022CloudSqlCredential\022\020\n\010u" + + "sername\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"C\n\026Cloud" + + "SpannerProperties\022\020\n\010database\030\001 \001(\t\022\027\n\017u" + + "se_parallelism\030\002 \001(\010\"\313\001\n\rAwsProperties\022V" + + "\n\022cross_account_role\030\002 \001(\01328.google.clou" + + "d.bigquery.connection.v1.AwsCrossAccount" + + "RoleH\000\022I\n\013access_role\030\003 \001(\01322.google.clo" + + "ud.bigquery.connection.v1.AwsAccessRoleH" + + "\000B\027\n\025authentication_method\"^\n\023AwsCrossAc" + + "countRole\022\023\n\013iam_role_id\030\001 \001(\t\022\030\n\013iam_us" + + "er_id\030\002 \001(\tB\003\340A\003\022\030\n\013external_id\030\003 \001(\tB\003\340" + + "A\003\"6\n\rAwsAccessRole\022\023\n\013iam_role_id\030\001 \001(\t" + + "\022\020\n\010identity\030\002 \001(\t\":\n\027CloudResourcePrope" + + "rties\022\037\n\022service_account_id\030\001 \001(\tB\003\340A\0032\314" + + "\r\n\021ConnectionService\022\350\001\n\020CreateConnectio" + + "n\022<.google.cloud.bigquery.connection.v1." + + "CreateConnectionRequest\032/.google.cloud.b" + + "igquery.connection.v1.Connection\"e\202\323\344\223\002=" + + "\"//v1/{parent=projects/*/locations/*}/co" + + "nnections:\nconnection\332A\037parent,connectio" + + "n,connection_id\022\273\001\n\rGetConnection\0229.goog" + + "le.cloud.bigquery.connection.v1.GetConne" + + "ctionRequest\032/.google.cloud.bigquery.con" + + "nection.v1.Connection\">\202\323\344\223\0021\022//v1/{name" + + "=projects/*/locations/*/connections/*}\332A" + + "\004name\022\316\001\n\017ListConnections\022;.google.cloud" + + ".bigquery.connection.v1.ListConnectionsR" + + "equest\032<.google.cloud.bigquery.connectio" + + "n.v1.ListConnectionsResponse\"@\202\323\344\223\0021\022//v" + + "1/{parent=projects/*/locations/*}/connec" + + "tions\332A\006parent\022\344\001\n\020UpdateConnection\022<.go" + + "ogle.cloud.bigquery.connection.v1.Update" + + "ConnectionRequest\032/.google.cloud.bigquer" + + "y.connection.v1.Connection\"a\202\323\344\223\002=2//v1/" + + "{name=projects/*/locations/*/connections" + + "/*}:\nconnection\332A\033name,connection,update" + + "_mask\022\250\001\n\020DeleteConnection\022<.google.clou" + + "d.bigquery.connection.v1.DeleteConnectio" + + "nRequest\032\026.google.protobuf.Empty\">\202\323\344\223\0021" + + "*//v1/{name=projects/*/locations/*/conne" + + "ctions/*}\332A\004name\022\251\001\n\014GetIamPolicy\022\".goog" + + "le.iam.v1.GetIamPolicyRequest\032\025.google.i" + + "am.v1.Policy\"^\202\323\344\223\002E\"@/v1/{resource=proj" + + "ects/*/locations/*/connections/*}:getIam" + + "Policy:\001*\332A\020resource,options\022\250\001\n\014SetIamP" + + "olicy\022\".google.iam.v1.SetIamPolicyReques" + + "t\032\025.google.iam.v1.Policy\"]\202\323\344\223\002E\"@/v1/{r" + + "esource=projects/*/locations/*/connectio" + + "ns/*}:setIamPolicy:\001*\332A\017resource,policy\022" + + "\323\001\n\022TestIamPermissions\022(.google.iam.v1.T" + + "estIamPermissionsRequest\032).google.iam.v1" + + ".TestIamPermissionsResponse\"h\202\323\344\223\002K\"F/v1" + + "/{resource=projects/*/locations/*/connec" + + "tions/*}:testIamPermissions:\001*\332A\024resourc" + + "e,permissions\032~\312A!bigqueryconnection.goo" + + "gleapis.com\322AWhttps://www.googleapis.com" + + "/auth/bigquery,https://www.googleapis.co" + + "m/auth/cloud-platformB\306\001\n\'com.google.clo" + + "ud.bigquery.connection.v1P\001ZMgoogle.gola" + + "ng.org/genproto/googleapis/cloud/bigquer" + + "y/connection/v1;connection\252\002#Google.Clou" + + "d.BigQuery.Connection.V1\312\002#Google\\Cloud\\" + + "BigQuery\\Connection\\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.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor, + new java.lang.String[] { "Parent", "ConnectionId", "Connection", }); + internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor, + new java.lang.String[] { "NextPageToken", "Connections", }); + internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor, + new java.lang.String[] { "Name", "Connection", "UpdateMask", }); + internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_bigquery_connection_v1_Connection_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor, + new java.lang.String[] { "Name", "FriendlyName", "Description", "CloudSql", "Aws", "CloudSpanner", "CloudResource", "CreationTime", "LastModifiedTime", "HasCredential", "Properties", }); + internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor, + new java.lang.String[] { "InstanceId", "Database", "Type", "Credential", }); + internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_descriptor, + new java.lang.String[] { "Username", "Password", }); + internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor, + new java.lang.String[] { "Database", "UseParallelism", }); + internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_bigquery_connection_v1_AwsProperties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor, + new java.lang.String[] { "CrossAccountRole", "AccessRole", "AuthenticationMethod", }); + internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor, + new java.lang.String[] { "IamRoleId", "IamUserId", "ExternalId", }); + internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor, + new java.lang.String[] { "IamRoleId", "Identity", }); + internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor, + new java.lang.String[] { "ServiceAccountId", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequest.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequest.java similarity index 64% rename from proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequest.java index b05e912d..bb68725a 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequest.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/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** - * - * *
  * The request for [ConnectionService.CreateConnection][google.cloud.bigquery.connection.v1.ConnectionService.CreateConnection].
  * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.CreateConnectionRequest} */ -public final class CreateConnectionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateConnectionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.CreateConnectionRequest) CreateConnectionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateConnectionRequest.newBuilder() to construct. private CreateConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateConnectionRequest() { parent_ = ""; connectionId_ = ""; @@ -44,15 +26,16 @@ private CreateConnectionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateConnectionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateConnectionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,44 +54,38 @@ private CreateConnectionRequest( 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(); - connectionId_ = s; - break; + connectionId_ = s; + break; + } + case 26: { + com.google.cloud.bigquery.connection.v1.Connection.Builder subBuilder = null; + if (connection_ != null) { + subBuilder = connection_.toBuilder(); } - case 26: - { - com.google.cloud.bigquery.connection.v1.Connection.Builder subBuilder = null; - if (connection_ != null) { - subBuilder = connection_.toBuilder(); - } - connection_ = - input.readMessage( - com.google.cloud.bigquery.connection.v1.Connection.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(connection_); - connection_ = subBuilder.buildPartial(); - } - - break; + connection_ = input.readMessage(com.google.cloud.bigquery.connection.v1.Connection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(connection_); + connection_ = 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) { @@ -116,42 +93,35 @@ private CreateConnectionRequest( } 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.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.class, - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.Builder.class); + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.class, com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Parent resource name.
    * Must be in the format `projects/{project_id}/locations/{location_id}`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -160,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. Parent resource name.
    * Must be in the format `projects/{project_id}/locations/{location_id}`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -196,14 +164,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CONNECTION_ID_FIELD_NUMBER = 2; private volatile java.lang.Object connectionId_; /** - * - * *
    * Optional. Connection id that should be assigned to the created connection.
    * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The connectionId. */ @java.lang.Override @@ -212,29 +177,29 @@ public java.lang.String getConnectionId() { 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(); connectionId_ = s; return s; } } /** - * - * *
    * Optional. Connection id that should be assigned to the created connection.
    * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for connectionId. */ @java.lang.Override - public com.google.protobuf.ByteString getConnectionIdBytes() { + public com.google.protobuf.ByteString + getConnectionIdBytes() { java.lang.Object ref = connectionId_; 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); connectionId_ = b; return b; } else { @@ -245,16 +210,11 @@ public com.google.protobuf.ByteString getConnectionIdBytes() { public static final int CONNECTION_FIELD_NUMBER = 3; private com.google.cloud.bigquery.connection.v1.Connection connection_; /** - * - * *
    * Required. Connection to create.
    * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connection field is set. */ @java.lang.Override @@ -262,34 +222,23 @@ public boolean hasConnection() { return connection_ != null; } /** - * - * *
    * Required. Connection to create.
    * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The connection. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.Connection getConnection() { - return connection_ == null - ? com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() - : connection_; + return connection_ == null ? com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() : connection_; } /** - * - * *
    * Required. Connection to create.
    * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnectionOrBuilder() { @@ -297,7 +246,6 @@ public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnection } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,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_); } @@ -335,7 +284,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, connectionId_); } if (connection_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConnection()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getConnection()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -345,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.bigquery.connection.v1.CreateConnectionRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest other = - (com.google.cloud.bigquery.connection.v1.CreateConnectionRequest) obj; + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest other = (com.google.cloud.bigquery.connection.v1.CreateConnectionRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getConnectionId().equals(other.getConnectionId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getConnectionId() + .equals(other.getConnectionId())) return false; if (hasConnection() != other.hasConnection()) return false; if (hasConnection()) { - if (!getConnection().equals(other.getConnection())) return false; + if (!getConnection() + .equals(other.getConnection())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -384,127 +336,117 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.CreateConnectionRequest 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.bigquery.connection.v1.CreateConnectionRequest 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.bigquery.connection.v1.CreateConnectionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.CreateConnectionRequest 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.bigquery.connection.v1.CreateConnectionRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1.CreateConnectionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.CreateConnectionRequest 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.bigquery.connection.v1.CreateConnectionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.CreateConnectionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.CreateConnectionRequest 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.bigquery.connection.v1.CreateConnectionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.CreateConnectionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.CreateConnectionRequest 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.bigquery.connection.v1.CreateConnectionRequest 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.bigquery.connection.v1.CreateConnectionRequest 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.bigquery.connection.v1.CreateConnectionRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.connection.v1.CreateConnectionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request for [ConnectionService.CreateConnection][google.cloud.bigquery.connection.v1.ConnectionService.CreateConnection].
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.CreateConnectionRequest} */ - 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.bigquery.connection.v1.CreateConnectionRequest) com.google.cloud.bigquery.connection.v1.CreateConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.class, - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.Builder.class); + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.class, com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.Builder.class); } // Construct using com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.newBuilder() @@ -512,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(); @@ -538,14 +481,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CreateConnectionRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.CreateConnectionRequest getDefaultInstanceForType() { return com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.getDefaultInstance(); } @@ -560,8 +502,7 @@ public com.google.cloud.bigquery.connection.v1.CreateConnectionRequest build() { @java.lang.Override public com.google.cloud.bigquery.connection.v1.CreateConnectionRequest buildPartial() { - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest result = - new com.google.cloud.bigquery.connection.v1.CreateConnectionRequest(this); + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest result = new com.google.cloud.bigquery.connection.v1.CreateConnectionRequest(this); result.parent_ = parent_; result.connectionId_ = connectionId_; if (connectionBuilder_ == null) { @@ -577,50 +518,46 @@ public com.google.cloud.bigquery.connection.v1.CreateConnectionRequest buildPart 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.bigquery.connection.v1.CreateConnectionRequest) { - return mergeFrom((com.google.cloud.bigquery.connection.v1.CreateConnectionRequest) other); + return mergeFrom((com.google.cloud.bigquery.connection.v1.CreateConnectionRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest other) { - if (other - == com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.CreateConnectionRequest other) { + if (other == com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -651,9 +588,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.connection.v1.CreateConnectionRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.connection.v1.CreateConnectionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -665,23 +600,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource name.
      * Must be in the format `projects/{project_id}/locations/{location_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -690,24 +621,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource name.
      * Must be in the format `projects/{project_id}/locations/{location_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -715,70 +643,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource name.
      * Must be in the format `projects/{project_id}/locations/{location_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Parent resource name.
      * Must be in the format `projects/{project_id}/locations/{location_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Parent resource name.
      * Must be in the format `projects/{project_id}/locations/{location_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -786,20 +701,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object connectionId_ = ""; /** - * - * *
      * Optional. Connection id that should be assigned to the created connection.
      * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The connectionId. */ public java.lang.String getConnectionId() { java.lang.Object ref = connectionId_; 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(); connectionId_ = s; return s; @@ -808,21 +721,20 @@ public java.lang.String getConnectionId() { } } /** - * - * *
      * Optional. Connection id that should be assigned to the created connection.
      * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for connectionId. */ - public com.google.protobuf.ByteString getConnectionIdBytes() { + public com.google.protobuf.ByteString + getConnectionIdBytes() { java.lang.Object ref = connectionId_; 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); connectionId_ = b; return b; } else { @@ -830,61 +742,54 @@ public com.google.protobuf.ByteString getConnectionIdBytes() { } } /** - * - * *
      * Optional. Connection id that should be assigned to the created connection.
      * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The connectionId to set. * @return This builder for chaining. */ - public Builder setConnectionId(java.lang.String value) { + public Builder setConnectionId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + connectionId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Connection id that should be assigned to the created connection.
      * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearConnectionId() { - + connectionId_ = getDefaultInstance().getConnectionId(); onChanged(); return this; } /** - * - * *
      * Optional. Connection id that should be assigned to the created connection.
      * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for connectionId to set. * @return This builder for chaining. */ - public Builder setConnectionIdBytes(com.google.protobuf.ByteString value) { + public Builder setConnectionIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + connectionId_ = value; onChanged(); return this; @@ -892,58 +797,39 @@ public Builder setConnectionIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.bigquery.connection.v1.Connection connection_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.Connection, - com.google.cloud.bigquery.connection.v1.Connection.Builder, - com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder> - connectionBuilder_; + com.google.cloud.bigquery.connection.v1.Connection, com.google.cloud.bigquery.connection.v1.Connection.Builder, com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder> connectionBuilder_; /** - * - * *
      * Required. Connection to create.
      * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connection field is set. */ public boolean hasConnection() { return connectionBuilder_ != null || connection_ != null; } /** - * - * *
      * Required. Connection to create.
      * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The connection. */ public com.google.cloud.bigquery.connection.v1.Connection getConnection() { if (connectionBuilder_ == null) { - return connection_ == null - ? com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() - : connection_; + return connection_ == null ? com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() : connection_; } else { return connectionBuilder_.getMessage(); } } /** - * - * *
      * Required. Connection to create.
      * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConnection(com.google.cloud.bigquery.connection.v1.Connection value) { if (connectionBuilder_ == null) { @@ -959,15 +845,11 @@ public Builder setConnection(com.google.cloud.bigquery.connection.v1.Connection return this; } /** - * - * *
      * Required. Connection to create.
      * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConnection( com.google.cloud.bigquery.connection.v1.Connection.Builder builderForValue) { @@ -981,23 +863,17 @@ public Builder setConnection( return this; } /** - * - * *
      * Required. Connection to create.
      * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeConnection(com.google.cloud.bigquery.connection.v1.Connection value) { if (connectionBuilder_ == null) { if (connection_ != null) { connection_ = - com.google.cloud.bigquery.connection.v1.Connection.newBuilder(connection_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.bigquery.connection.v1.Connection.newBuilder(connection_).mergeFrom(value).buildPartial(); } else { connection_ = value; } @@ -1009,15 +885,11 @@ public Builder mergeConnection(com.google.cloud.bigquery.connection.v1.Connectio return this; } /** - * - * *
      * Required. Connection to create.
      * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConnection() { if (connectionBuilder_ == null) { @@ -1031,71 +903,55 @@ public Builder clearConnection() { return this; } /** - * - * *
      * Required. Connection to create.
      * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.bigquery.connection.v1.Connection.Builder getConnectionBuilder() { - + onChanged(); return getConnectionFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Connection to create.
      * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnectionOrBuilder() { if (connectionBuilder_ != null) { return connectionBuilder_.getMessageOrBuilder(); } else { - return connection_ == null - ? com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() - : connection_; + return connection_ == null ? + com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() : connection_; } } /** - * - * *
      * Required. Connection to create.
      * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.Connection, - com.google.cloud.bigquery.connection.v1.Connection.Builder, - com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder> + com.google.cloud.bigquery.connection.v1.Connection, com.google.cloud.bigquery.connection.v1.Connection.Builder, com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder> getConnectionFieldBuilder() { if (connectionBuilder_ == null) { - connectionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.Connection, - com.google.cloud.bigquery.connection.v1.Connection.Builder, - com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder>( - getConnection(), getParentForChildren(), isClean()); + connectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.Connection, com.google.cloud.bigquery.connection.v1.Connection.Builder, com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder>( + getConnection(), + getParentForChildren(), + isClean()); connection_ = null; } return connectionBuilder_; } - @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); } @@ -1105,32 +961,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.CreateConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.CreateConnectionRequest) - private static final com.google.cloud.bigquery.connection.v1.CreateConnectionRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.connection.v1.CreateConnectionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.CreateConnectionRequest(); } - public static com.google.cloud.bigquery.connection.v1.CreateConnectionRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1.CreateConnectionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateConnectionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateConnectionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1142,8 +996,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CreateConnectionRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.CreateConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequestOrBuilder.java similarity index 53% rename from proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequestOrBuilder.java index 850e155a..de7fb832 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequestOrBuilder.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/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; -public interface CreateConnectionRequestOrBuilder - extends +public interface CreateConnectionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.CreateConnectionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource name.
    * Must be in the format `projects/{project_id}/locations/{location_id}`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Parent resource name.
    * Must be in the format `projects/{project_id}/locations/{location_id}`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. Connection id that should be assigned to the created connection.
    * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The connectionId. */ java.lang.String getConnectionId(); /** - * - * *
    * Optional. Connection id that should be assigned to the created connection.
    * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for connectionId. */ - com.google.protobuf.ByteString getConnectionIdBytes(); + com.google.protobuf.ByteString + getConnectionIdBytes(); /** - * - * *
    * Required. Connection to create.
    * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connection field is set. */ boolean hasConnection(); /** - * - * *
    * Required. Connection to create.
    * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The connection. */ com.google.cloud.bigquery.connection.v1.Connection getConnection(); /** - * - * *
    * Required. Connection to create.
    * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnectionOrBuilder(); } diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequest.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequest.java similarity index 64% rename from proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequest.java index 20b6c652..089fb22b 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequest.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/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** - * - * *
  * The request for [ConnectionService.DeleteConnectionRequest][].
  * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.DeleteConnectionRequest} */ -public final class DeleteConnectionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteConnectionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.DeleteConnectionRequest) DeleteConnectionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteConnectionRequest.newBuilder() to construct. private DeleteConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteConnectionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteConnectionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteConnectionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteConnectionRequest( 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,42 +73,35 @@ private DeleteConnectionRequest( } 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.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.class, - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.Builder.class); + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.class, com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the deleted connection, for example:
    * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the deleted connection, for example:
    * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,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_); } @@ -205,15 +178,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.bigquery.connection.v1.DeleteConnectionRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest other = - (com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest) obj; + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest other = (com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest 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.bigquery.connection.v1.DeleteConnectionRequest 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.bigquery.connection.v1.DeleteConnectionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest 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.bigquery.connection.v1.DeleteConnectionRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest 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.bigquery.connection.v1.DeleteConnectionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest 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.bigquery.connection.v1.DeleteConnectionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest 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.bigquery.connection.v1.DeleteConnectionRequest 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.bigquery.connection.v1.DeleteConnectionRequest 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.bigquery.connection.v1.DeleteConnectionRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request for [ConnectionService.DeleteConnectionRequest][].
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.DeleteConnectionRequest} */ - 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.bigquery.connection.v1.DeleteConnectionRequest) com.google.cloud.bigquery.connection.v1.DeleteConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.class, - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.Builder.class); + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.class, com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.Builder.class); } // Construct using com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.newBuilder() @@ -361,15 +324,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(); @@ -379,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest getDefaultInstanceForType() { return com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.getDefaultInstance(); } @@ -401,8 +364,7 @@ public com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest build() { @java.lang.Override public com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest buildPartial() { - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest result = - new com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest(this); + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest result = new com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,50 +374,46 @@ public com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest buildPart 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.bigquery.connection.v1.DeleteConnectionRequest) { - return mergeFrom((com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest) other); + return mergeFrom((com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest other) { - if (other - == com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest other) { + if (other == com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -479,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -493,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the deleted connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -518,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the deleted connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -543,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the deleted connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the deleted connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the deleted connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + 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); } @@ -623,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.DeleteConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.DeleteConnectionRequest) - private static final com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest(); } - public static com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteConnectionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteConnectionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequestOrBuilder.java new file mode 100644 index 00000000..2ad16f8a --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/connection/v1/connection.proto + +package com.google.cloud.bigquery.connection.v1; + +public interface DeleteConnectionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.DeleteConnectionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the deleted connection, for example:
+   * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the deleted connection, for example:
+   * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequest.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequest.java similarity index 66% rename from proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequest.java index 9b986803..cab7ad17 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequest.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/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** - * - * *
  * The request for [ConnectionService.GetConnection][google.cloud.bigquery.connection.v1.ConnectionService.GetConnection].
  * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.GetConnectionRequest} */ -public final class GetConnectionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetConnectionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.GetConnectionRequest) GetConnectionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetConnectionRequest.newBuilder() to construct. private GetConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetConnectionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetConnectionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetConnectionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetConnectionRequest( 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,42 +73,35 @@ private GetConnectionRequest( } 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.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.GetConnectionRequest.class, - com.google.cloud.bigquery.connection.v1.GetConnectionRequest.Builder.class); + com.google.cloud.bigquery.connection.v1.GetConnectionRequest.class, com.google.cloud.bigquery.connection.v1.GetConnectionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the requested connection, for example:
    * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the requested connection, for example:
    * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,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_); } @@ -205,15 +178,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.bigquery.connection.v1.GetConnectionRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.GetConnectionRequest other = - (com.google.cloud.bigquery.connection.v1.GetConnectionRequest) obj; + com.google.cloud.bigquery.connection.v1.GetConnectionRequest other = (com.google.cloud.bigquery.connection.v1.GetConnectionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.GetConnectionRequest 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.bigquery.connection.v1.GetConnectionRequest 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.bigquery.connection.v1.GetConnectionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.GetConnectionRequest 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.bigquery.connection.v1.GetConnectionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.GetConnectionRequest 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.bigquery.connection.v1.GetConnectionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.GetConnectionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.GetConnectionRequest 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.bigquery.connection.v1.GetConnectionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.GetConnectionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.GetConnectionRequest 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.bigquery.connection.v1.GetConnectionRequest 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.bigquery.connection.v1.GetConnectionRequest 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.bigquery.connection.v1.GetConnectionRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.connection.v1.GetConnectionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request for [ConnectionService.GetConnection][google.cloud.bigquery.connection.v1.ConnectionService.GetConnection].
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.GetConnectionRequest} */ - 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.bigquery.connection.v1.GetConnectionRequest) com.google.cloud.bigquery.connection.v1.GetConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.GetConnectionRequest.class, - com.google.cloud.bigquery.connection.v1.GetConnectionRequest.Builder.class); + com.google.cloud.bigquery.connection.v1.GetConnectionRequest.class, com.google.cloud.bigquery.connection.v1.GetConnectionRequest.Builder.class); } // Construct using com.google.cloud.bigquery.connection.v1.GetConnectionRequest.newBuilder() @@ -361,15 +324,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(); @@ -379,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.GetConnectionRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.GetConnectionRequest getDefaultInstanceForType() { return com.google.cloud.bigquery.connection.v1.GetConnectionRequest.getDefaultInstance(); } @@ -401,8 +364,7 @@ public com.google.cloud.bigquery.connection.v1.GetConnectionRequest build() { @java.lang.Override public com.google.cloud.bigquery.connection.v1.GetConnectionRequest buildPartial() { - com.google.cloud.bigquery.connection.v1.GetConnectionRequest result = - new com.google.cloud.bigquery.connection.v1.GetConnectionRequest(this); + com.google.cloud.bigquery.connection.v1.GetConnectionRequest result = new com.google.cloud.bigquery.connection.v1.GetConnectionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,39 +374,38 @@ public com.google.cloud.bigquery.connection.v1.GetConnectionRequest 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.bigquery.connection.v1.GetConnectionRequest) { - return mergeFrom((com.google.cloud.bigquery.connection.v1.GetConnectionRequest) other); + return mergeFrom((com.google.cloud.bigquery.connection.v1.GetConnectionRequest)other); } else { super.mergeFrom(other); return this; @@ -452,9 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.GetConnectionRequest other) { - if (other - == com.google.cloud.bigquery.connection.v1.GetConnectionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.connection.v1.GetConnectionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -478,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.connection.v1.GetConnectionRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.connection.v1.GetConnectionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -491,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the requested connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -516,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the requested connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -541,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the requested connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the requested connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the requested connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + 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); } @@ -621,13 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.GetConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.GetConnectionRequest) - private static final com.google.cloud.bigquery.connection.v1.GetConnectionRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.connection.v1.GetConnectionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.GetConnectionRequest(); } @@ -636,16 +573,16 @@ public static com.google.cloud.bigquery.connection.v1.GetConnectionRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetConnectionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetConnectionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.connection.v1.GetConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequestOrBuilder.java new file mode 100644 index 00000000..63fae6be --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/connection/v1/connection.proto + +package com.google.cloud.bigquery.connection.v1; + +public interface GetConnectionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.GetConnectionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the requested connection, for example:
+   * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the requested connection, for example:
+   * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequest.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequest.java similarity index 67% rename from proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequest.java index 64d77ec7..72e1a4a9 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequest.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/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** - * - * *
  * The request for [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1.ConnectionService.ListConnections].
  * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.ListConnectionsRequest} */ -public final class ListConnectionsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListConnectionsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.ListConnectionsRequest) ListConnectionsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListConnectionsRequest.newBuilder() to construct. private ListConnectionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListConnectionsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListConnectionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListConnectionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListConnectionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListConnectionsRequest( 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 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 32: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 32: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private ListConnectionsRequest( } 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.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.class, - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.Builder.class); + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.class, com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Parent resource name.
    * Must be in the form: `projects/{project_id}/locations/{location_id}`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -148,32 +122,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. Parent resource name.
    * Must be in the form: `projects/{project_id}/locations/{location_id}`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -184,14 +156,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** - * - * *
    * Required. Page size.
    * 
* * int32 page_size = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The pageSize. */ @java.lang.Override @@ -202,14 +171,11 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -218,29 +184,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; } } /** - * - * *
    * Page 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 { @@ -249,7 +215,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +226,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_); } @@ -287,7 +253,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -297,17 +264,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.bigquery.connection.v1.ListConnectionsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest other = - (com.google.cloud.bigquery.connection.v1.ListConnectionsRequest) obj; + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest other = (com.google.cloud.bigquery.connection.v1.ListConnectionsRequest) 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; } @@ -331,127 +300,117 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.ListConnectionsRequest 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.bigquery.connection.v1.ListConnectionsRequest 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.bigquery.connection.v1.ListConnectionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.ListConnectionsRequest 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.bigquery.connection.v1.ListConnectionsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1.ListConnectionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.ListConnectionsRequest 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.bigquery.connection.v1.ListConnectionsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.ListConnectionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.ListConnectionsRequest 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.bigquery.connection.v1.ListConnectionsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.ListConnectionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.ListConnectionsRequest 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.bigquery.connection.v1.ListConnectionsRequest 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.bigquery.connection.v1.ListConnectionsRequest 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.bigquery.connection.v1.ListConnectionsRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.connection.v1.ListConnectionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request for [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1.ConnectionService.ListConnections].
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.ListConnectionsRequest} */ - 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.bigquery.connection.v1.ListConnectionsRequest) com.google.cloud.bigquery.connection.v1.ListConnectionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.class, - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.Builder.class); + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.class, com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.Builder.class); } // Construct using com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.newBuilder() @@ -459,15 +418,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -481,14 +441,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.ListConnectionsRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.ListConnectionsRequest getDefaultInstanceForType() { return com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.getDefaultInstance(); } @@ -503,8 +462,7 @@ public com.google.cloud.bigquery.connection.v1.ListConnectionsRequest build() { @java.lang.Override public com.google.cloud.bigquery.connection.v1.ListConnectionsRequest buildPartial() { - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest result = - new com.google.cloud.bigquery.connection.v1.ListConnectionsRequest(this); + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest result = new com.google.cloud.bigquery.connection.v1.ListConnectionsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -516,39 +474,38 @@ public com.google.cloud.bigquery.connection.v1.ListConnectionsRequest buildParti 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.bigquery.connection.v1.ListConnectionsRequest) { - return mergeFrom((com.google.cloud.bigquery.connection.v1.ListConnectionsRequest) other); + return mergeFrom((com.google.cloud.bigquery.connection.v1.ListConnectionsRequest)other); } else { super.mergeFrom(other); return this; @@ -556,9 +513,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.ListConnectionsRequest other) { - if (other - == com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -589,9 +544,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.connection.v1.ListConnectionsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.connection.v1.ListConnectionsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -603,23 +556,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource name.
      * Must be in the form: `projects/{project_id}/locations/{location_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -628,24 +577,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource name.
      * Must be in the form: `projects/{project_id}/locations/{location_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -653,85 +599,69 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource name.
      * Must be in the form: `projects/{project_id}/locations/{location_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Parent resource name.
      * Must be in the form: `projects/{project_id}/locations/{location_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Parent resource name.
      * Must be in the form: `projects/{project_id}/locations/{location_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Required. Page size.
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The pageSize. */ @java.lang.Override @@ -739,36 +669,30 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Required. Page size.
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Required. Page size.
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -776,20 +700,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Page 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; @@ -798,21 +720,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Page 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 { @@ -820,68 +741,61 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Page 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; } /** - * - * *
      * Page token.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Page 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); } @@ -891,32 +805,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.ListConnectionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.ListConnectionsRequest) - private static final com.google.cloud.bigquery.connection.v1.ListConnectionsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.connection.v1.ListConnectionsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.ListConnectionsRequest(); } - public static com.google.cloud.bigquery.connection.v1.ListConnectionsRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1.ListConnectionsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListConnectionsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListConnectionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -928,8 +840,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.ListConnectionsRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.ListConnectionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequestOrBuilder.java similarity index 52% rename from proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequestOrBuilder.java index fb517f43..5bd07d82 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequestOrBuilder.java @@ -1,94 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; -public interface ListConnectionsRequestOrBuilder - extends +public interface ListConnectionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.ListConnectionsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource name.
    * Must be in the form: `projects/{project_id}/locations/{location_id}`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Parent resource name.
    * Must be in the form: `projects/{project_id}/locations/{location_id}`
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. Page size.
    * 
* * int32 page_size = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Page 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-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponse.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponse.java similarity index 72% rename from proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponse.java index faa0aac7..307ac0f6 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponse.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/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** - * - * *
  * The response for [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1.ConnectionService.ListConnections].
  * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.ListConnectionsResponse} */ -public final class ListConnectionsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListConnectionsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.ListConnectionsResponse) ListConnectionsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListConnectionsResponse.newBuilder() to construct. private ListConnectionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListConnectionsResponse() { nextPageToken_ = ""; connections_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private ListConnectionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListConnectionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListConnectionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,33 +55,28 @@ private ListConnectionsResponse( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - connections_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - connections_.add( - input.readMessage( - com.google.cloud.bigquery.connection.v1.Connection.parser(), - extensionRegistry)); - break; + nextPageToken_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + connections_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + connections_.add( + input.readMessage(com.google.cloud.bigquery.connection.v1.Connection.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,7 +84,8 @@ private ListConnectionsResponse( } 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)) { connections_ = java.util.Collections.unmodifiableList(connections_); @@ -115,33 +94,27 @@ private ListConnectionsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.class, - com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.Builder.class); + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.class, com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.Builder.class); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 1; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * Next page token.
    * 
* * string next_page_token = 1; - * * @return The nextPageToken. */ @java.lang.Override @@ -150,29 +123,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; } } /** - * - * *
    * Next page token.
    * 
* * string next_page_token = 1; - * * @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 { @@ -183,8 +156,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int CONNECTIONS_FIELD_NUMBER = 2; private java.util.List connections_; /** - * - * *
    * List of connections.
    * 
@@ -196,8 +167,6 @@ public java.util.List getCon return connections_; } /** - * - * *
    * List of connections.
    * 
@@ -205,13 +174,11 @@ public java.util.List getCon * repeated .google.cloud.bigquery.connection.v1.Connection connections = 2; */ @java.lang.Override - public java.util.List + public java.util.List getConnectionsOrBuilderList() { return connections_; } /** - * - * *
    * List of connections.
    * 
@@ -223,8 +190,6 @@ public int getConnectionsCount() { return connections_.size(); } /** - * - * *
    * List of connections.
    * 
@@ -236,8 +201,6 @@ public com.google.cloud.bigquery.connection.v1.Connection getConnections(int ind return connections_.get(index); } /** - * - * *
    * List of connections.
    * 
@@ -251,7 +214,6 @@ public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnection } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nextPageToken_); } @@ -283,7 +246,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nextPageToken_); } for (int i = 0; i < connections_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, connections_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, connections_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -293,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.bigquery.connection.v1.ListConnectionsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.ListConnectionsResponse other = - (com.google.cloud.bigquery.connection.v1.ListConnectionsResponse) obj; + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse other = (com.google.cloud.bigquery.connection.v1.ListConnectionsResponse) obj; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getConnectionsList().equals(other.getConnectionsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getConnectionsList() + .equals(other.getConnectionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -326,127 +291,117 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.ListConnectionsResponse 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.bigquery.connection.v1.ListConnectionsResponse 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.bigquery.connection.v1.ListConnectionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.ListConnectionsResponse 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.bigquery.connection.v1.ListConnectionsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1.ListConnectionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.ListConnectionsResponse 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.bigquery.connection.v1.ListConnectionsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.ListConnectionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.ListConnectionsResponse 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.bigquery.connection.v1.ListConnectionsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.ListConnectionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.ListConnectionsResponse 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.bigquery.connection.v1.ListConnectionsResponse 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.bigquery.connection.v1.ListConnectionsResponse 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.bigquery.connection.v1.ListConnectionsResponse prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.connection.v1.ListConnectionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The response for [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1.ConnectionService.ListConnections].
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.ListConnectionsResponse} */ - 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.bigquery.connection.v1.ListConnectionsResponse) com.google.cloud.bigquery.connection.v1.ListConnectionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.class, - com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.Builder.class); + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.class, com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.Builder.class); } // Construct using com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.newBuilder() @@ -454,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) { getConnectionsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -480,14 +435,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.ListConnectionsResponse - getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.ListConnectionsResponse getDefaultInstanceForType() { return com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.getDefaultInstance(); } @@ -502,8 +456,7 @@ public com.google.cloud.bigquery.connection.v1.ListConnectionsResponse build() { @java.lang.Override public com.google.cloud.bigquery.connection.v1.ListConnectionsResponse buildPartial() { - com.google.cloud.bigquery.connection.v1.ListConnectionsResponse result = - new com.google.cloud.bigquery.connection.v1.ListConnectionsResponse(this); + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse result = new com.google.cloud.bigquery.connection.v1.ListConnectionsResponse(this); int from_bitField0_ = bitField0_; result.nextPageToken_ = nextPageToken_; if (connectionsBuilder_ == null) { @@ -523,50 +476,46 @@ public com.google.cloud.bigquery.connection.v1.ListConnectionsResponse buildPart 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.bigquery.connection.v1.ListConnectionsResponse) { - return mergeFrom((com.google.cloud.bigquery.connection.v1.ListConnectionsResponse) other); + return mergeFrom((com.google.cloud.bigquery.connection.v1.ListConnectionsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.connection.v1.ListConnectionsResponse other) { - if (other - == com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.ListConnectionsResponse other) { + if (other == com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.getDefaultInstance()) return this; if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; onChanged(); @@ -589,10 +538,9 @@ public Builder mergeFrom( connectionsBuilder_ = null; connections_ = other.connections_; bitField0_ = (bitField0_ & ~0x00000001); - connectionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getConnectionsFieldBuilder() - : null; + connectionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConnectionsFieldBuilder() : null; } else { connectionsBuilder_.addAllMessages(other.connections_); } @@ -617,9 +565,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.connection.v1.ListConnectionsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.connection.v1.ListConnectionsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -628,25 +574,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Next page token.
      * 
* * string next_page_token = 1; - * * @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; @@ -655,21 +598,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Next page token.
      * 
* * string next_page_token = 1; - * * @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 { @@ -677,87 +619,72 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Next page token.
      * 
* * string next_page_token = 1; - * * @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; } /** - * - * *
      * Next page token.
      * 
* * string next_page_token = 1; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * Next page token.
      * 
* * string next_page_token = 1; - * * @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; } private java.util.List connections_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureConnectionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - connections_ = - new java.util.ArrayList( - connections_); + connections_ = new java.util.ArrayList(connections_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.Connection, - com.google.cloud.bigquery.connection.v1.Connection.Builder, - com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder> - connectionsBuilder_; + com.google.cloud.bigquery.connection.v1.Connection, com.google.cloud.bigquery.connection.v1.Connection.Builder, com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder> connectionsBuilder_; /** - * - * *
      * List of connections.
      * 
@@ -772,8 +699,6 @@ public java.util.List getCon } } /** - * - * *
      * List of connections.
      * 
@@ -788,8 +713,6 @@ public int getConnectionsCount() { } } /** - * - * *
      * List of connections.
      * 
@@ -804,8 +727,6 @@ public com.google.cloud.bigquery.connection.v1.Connection getConnections(int ind } } /** - * - * *
      * List of connections.
      * 
@@ -827,8 +748,6 @@ public Builder setConnections( return this; } /** - * - * *
      * List of connections.
      * 
@@ -847,8 +766,6 @@ public Builder setConnections( return this; } /** - * - * *
      * List of connections.
      * 
@@ -869,8 +786,6 @@ public Builder addConnections(com.google.cloud.bigquery.connection.v1.Connection return this; } /** - * - * *
      * List of connections.
      * 
@@ -892,8 +807,6 @@ public Builder addConnections( return this; } /** - * - * *
      * List of connections.
      * 
@@ -912,8 +825,6 @@ public Builder addConnections( return this; } /** - * - * *
      * List of connections.
      * 
@@ -932,8 +843,6 @@ public Builder addConnections( return this; } /** - * - * *
      * List of connections.
      * 
@@ -944,7 +853,8 @@ public Builder addAllConnections( java.lang.Iterable values) { if (connectionsBuilder_ == null) { ensureConnectionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connections_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, connections_); onChanged(); } else { connectionsBuilder_.addAllMessages(values); @@ -952,8 +862,6 @@ public Builder addAllConnections( return this; } /** - * - * *
      * List of connections.
      * 
@@ -971,8 +879,6 @@ public Builder clearConnections() { return this; } /** - * - * *
      * List of connections.
      * 
@@ -990,8 +896,6 @@ public Builder removeConnections(int index) { return this; } /** - * - * *
      * List of connections.
      * 
@@ -1003,8 +907,6 @@ public com.google.cloud.bigquery.connection.v1.Connection.Builder getConnections return getConnectionsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of connections.
      * 
@@ -1014,22 +916,19 @@ public com.google.cloud.bigquery.connection.v1.Connection.Builder getConnections public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnectionsOrBuilder( int index) { if (connectionsBuilder_ == null) { - return connections_.get(index); - } else { + return connections_.get(index); } else { return connectionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of connections.
      * 
* * repeated .google.cloud.bigquery.connection.v1.Connection connections = 2; */ - public java.util.List - getConnectionsOrBuilderList() { + public java.util.List + getConnectionsOrBuilderList() { if (connectionsBuilder_ != null) { return connectionsBuilder_.getMessageOrBuilderList(); } else { @@ -1037,8 +936,6 @@ public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnection } } /** - * - * *
      * List of connections.
      * 
@@ -1046,12 +943,10 @@ public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnection * repeated .google.cloud.bigquery.connection.v1.Connection connections = 2; */ public com.google.cloud.bigquery.connection.v1.Connection.Builder addConnectionsBuilder() { - return getConnectionsFieldBuilder() - .addBuilder(com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance()); + return getConnectionsFieldBuilder().addBuilder( + com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance()); } /** - * - * *
      * List of connections.
      * 
@@ -1060,43 +955,37 @@ public com.google.cloud.bigquery.connection.v1.Connection.Builder addConnections */ public com.google.cloud.bigquery.connection.v1.Connection.Builder addConnectionsBuilder( int index) { - return getConnectionsFieldBuilder() - .addBuilder( - index, com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance()); + return getConnectionsFieldBuilder().addBuilder( + index, com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance()); } /** - * - * *
      * List of connections.
      * 
* * repeated .google.cloud.bigquery.connection.v1.Connection connections = 2; */ - public java.util.List - getConnectionsBuilderList() { + public java.util.List + getConnectionsBuilderList() { return getConnectionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.Connection, - com.google.cloud.bigquery.connection.v1.Connection.Builder, - com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder> + com.google.cloud.bigquery.connection.v1.Connection, com.google.cloud.bigquery.connection.v1.Connection.Builder, com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder> getConnectionsFieldBuilder() { if (connectionsBuilder_ == null) { - connectionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.Connection, - com.google.cloud.bigquery.connection.v1.Connection.Builder, - com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder>( - connections_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + connectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.Connection, com.google.cloud.bigquery.connection.v1.Connection.Builder, com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder>( + connections_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); connections_ = null; } return connectionsBuilder_; } - @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); } @@ -1106,32 +995,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.ListConnectionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.ListConnectionsResponse) - private static final com.google.cloud.bigquery.connection.v1.ListConnectionsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.connection.v1.ListConnectionsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.ListConnectionsResponse(); } - public static com.google.cloud.bigquery.connection.v1.ListConnectionsResponse - getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1.ListConnectionsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListConnectionsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListConnectionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1143,8 +1030,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.ListConnectionsResponse - getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.ListConnectionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponseOrBuilder.java similarity index 67% rename from proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponseOrBuilder.java index 081a72ca..1c26247d 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponseOrBuilder.java @@ -1,66 +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/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; -public interface ListConnectionsResponseOrBuilder - extends +public interface ListConnectionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.ListConnectionsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Next page token.
    * 
* * string next_page_token = 1; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Next page token.
    * 
* * string next_page_token = 1; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * List of connections.
    * 
* * repeated .google.cloud.bigquery.connection.v1.Connection connections = 2; */ - java.util.List getConnectionsList(); + java.util.List + getConnectionsList(); /** - * - * *
    * List of connections.
    * 
@@ -69,8 +45,6 @@ public interface ListConnectionsResponseOrBuilder */ com.google.cloud.bigquery.connection.v1.Connection getConnections(int index); /** - * - * *
    * List of connections.
    * 
@@ -79,24 +53,21 @@ public interface ListConnectionsResponseOrBuilder */ int getConnectionsCount(); /** - * - * *
    * List of connections.
    * 
* * repeated .google.cloud.bigquery.connection.v1.Connection connections = 2; */ - java.util.List + java.util.List getConnectionsOrBuilderList(); /** - * - * *
    * List of connections.
    * 
* * repeated .google.cloud.bigquery.connection.v1.Connection connections = 2; */ - com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnectionsOrBuilder(int index); + com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnectionsOrBuilder( + int index); } diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/LocationName.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/LocationName.java similarity index 100% rename from proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/LocationName.java rename to owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/LocationName.java diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequest.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequest.java similarity index 63% rename from proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequest.java rename to owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequest.java index cbc73151..ae0581bd 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequest.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/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** - * - * *
  * The request for [ConnectionService.UpdateConnection][google.cloud.bigquery.connection.v1.ConnectionService.UpdateConnection].
  * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.UpdateConnectionRequest} */ -public final class UpdateConnectionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateConnectionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.UpdateConnectionRequest) UpdateConnectionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateConnectionRequest.newBuilder() to construct. private UpdateConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateConnectionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateConnectionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateConnectionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,52 +53,45 @@ private UpdateConnectionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.cloud.bigquery.connection.v1.Connection.Builder subBuilder = null; + if (connection_ != null) { + subBuilder = connection_.toBuilder(); } - case 18: - { - com.google.cloud.bigquery.connection.v1.Connection.Builder subBuilder = null; - if (connection_ != null) { - subBuilder = connection_.toBuilder(); - } - connection_ = - input.readMessage( - com.google.cloud.bigquery.connection.v1.Connection.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(connection_); - connection_ = subBuilder.buildPartial(); - } - - break; + connection_ = input.readMessage(com.google.cloud.bigquery.connection.v1.Connection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(connection_); + connection_ = subBuilder.buildPartial(); } - case 26: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -123,42 +99,35 @@ private UpdateConnectionRequest( } 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.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.class, - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.Builder.class); + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.class, com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the connection to update, for example:
    * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -167,32 +136,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the connection to update, for example:
    * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -203,16 +170,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CONNECTION_FIELD_NUMBER = 2; private com.google.cloud.bigquery.connection.v1.Connection connection_; /** - * - * *
    * Required. Connection containing the updated fields.
    * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connection field is set. */ @java.lang.Override @@ -220,34 +182,23 @@ public boolean hasConnection() { return connection_ != null; } /** - * - * *
    * Required. Connection containing the updated fields.
    * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The connection. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.Connection getConnection() { - return connection_ == null - ? com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() - : connection_; + return connection_ == null ? com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() : connection_; } /** - * - * *
    * Required. Connection containing the updated fields.
    * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnectionOrBuilder() { @@ -257,15 +208,11 @@ public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnection public static final int UPDATE_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Update mask for the connection fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -273,15 +220,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Update mask for the connection fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -289,14 +232,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Update mask for the connection fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -304,7 +244,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -316,7 +255,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -339,10 +279,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (connection_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConnection()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConnection()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -352,22 +294,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.bigquery.connection.v1.UpdateConnectionRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest other = - (com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest) obj; + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest other = (com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasConnection() != other.hasConnection()) return false; if (hasConnection()) { - if (!getConnection().equals(other.getConnection())) return false; + if (!getConnection() + .equals(other.getConnection())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -396,127 +340,117 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest 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.bigquery.connection.v1.UpdateConnectionRequest 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.bigquery.connection.v1.UpdateConnectionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest 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.bigquery.connection.v1.UpdateConnectionRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest 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.bigquery.connection.v1.UpdateConnectionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest 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.bigquery.connection.v1.UpdateConnectionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest 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.bigquery.connection.v1.UpdateConnectionRequest 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.bigquery.connection.v1.UpdateConnectionRequest 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.bigquery.connection.v1.UpdateConnectionRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request for [ConnectionService.UpdateConnection][google.cloud.bigquery.connection.v1.ConnectionService.UpdateConnection].
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.UpdateConnectionRequest} */ - 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.bigquery.connection.v1.UpdateConnectionRequest) com.google.cloud.bigquery.connection.v1.UpdateConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.class, - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.Builder.class); + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.class, com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.Builder.class); } // Construct using com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.newBuilder() @@ -524,15 +458,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(); @@ -554,14 +489,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest getDefaultInstanceForType() { return com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.getDefaultInstance(); } @@ -576,8 +510,7 @@ public com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest build() { @java.lang.Override public com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest buildPartial() { - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest result = - new com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest(this); + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest result = new com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest(this); result.name_ = name_; if (connectionBuilder_ == null) { result.connection_ = connection_; @@ -597,50 +530,46 @@ public com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest buildPart 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.bigquery.connection.v1.UpdateConnectionRequest) { - return mergeFrom((com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest) other); + return mergeFrom((com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest other) { - if (other - == com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest other) { + if (other == com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -670,9 +599,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -684,23 +611,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the connection to update, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -709,24 +632,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the connection to update, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -734,70 +654,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the connection to update, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the connection to update, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. Name of the connection to update, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + 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; @@ -805,58 +712,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.bigquery.connection.v1.Connection connection_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.Connection, - com.google.cloud.bigquery.connection.v1.Connection.Builder, - com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder> - connectionBuilder_; + com.google.cloud.bigquery.connection.v1.Connection, com.google.cloud.bigquery.connection.v1.Connection.Builder, com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder> connectionBuilder_; /** - * - * *
      * Required. Connection containing the updated fields.
      * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connection field is set. */ public boolean hasConnection() { return connectionBuilder_ != null || connection_ != null; } /** - * - * *
      * Required. Connection containing the updated fields.
      * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The connection. */ public com.google.cloud.bigquery.connection.v1.Connection getConnection() { if (connectionBuilder_ == null) { - return connection_ == null - ? com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() - : connection_; + return connection_ == null ? com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() : connection_; } else { return connectionBuilder_.getMessage(); } } /** - * - * *
      * Required. Connection containing the updated fields.
      * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConnection(com.google.cloud.bigquery.connection.v1.Connection value) { if (connectionBuilder_ == null) { @@ -872,15 +760,11 @@ public Builder setConnection(com.google.cloud.bigquery.connection.v1.Connection return this; } /** - * - * *
      * Required. Connection containing the updated fields.
      * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConnection( com.google.cloud.bigquery.connection.v1.Connection.Builder builderForValue) { @@ -894,23 +778,17 @@ public Builder setConnection( return this; } /** - * - * *
      * Required. Connection containing the updated fields.
      * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeConnection(com.google.cloud.bigquery.connection.v1.Connection value) { if (connectionBuilder_ == null) { if (connection_ != null) { connection_ = - com.google.cloud.bigquery.connection.v1.Connection.newBuilder(connection_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.bigquery.connection.v1.Connection.newBuilder(connection_).mergeFrom(value).buildPartial(); } else { connection_ = value; } @@ -922,15 +800,11 @@ public Builder mergeConnection(com.google.cloud.bigquery.connection.v1.Connectio return this; } /** - * - * *
      * Required. Connection containing the updated fields.
      * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConnection() { if (connectionBuilder_ == null) { @@ -944,64 +818,48 @@ public Builder clearConnection() { return this; } /** - * - * *
      * Required. Connection containing the updated fields.
      * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.bigquery.connection.v1.Connection.Builder getConnectionBuilder() { - + onChanged(); return getConnectionFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Connection containing the updated fields.
      * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnectionOrBuilder() { if (connectionBuilder_ != null) { return connectionBuilder_.getMessageOrBuilder(); } else { - return connection_ == null - ? com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() - : connection_; + return connection_ == null ? + com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() : connection_; } } /** - * - * *
      * Required. Connection containing the updated fields.
      * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.Connection, - com.google.cloud.bigquery.connection.v1.Connection.Builder, - com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder> + com.google.cloud.bigquery.connection.v1.Connection, com.google.cloud.bigquery.connection.v1.Connection.Builder, com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder> getConnectionFieldBuilder() { if (connectionBuilder_ == null) { - connectionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.Connection, - com.google.cloud.bigquery.connection.v1.Connection.Builder, - com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder>( - getConnection(), getParentForChildren(), isClean()); + connectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.Connection, com.google.cloud.bigquery.connection.v1.Connection.Builder, com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder>( + getConnection(), + getParentForChildren(), + isClean()); connection_ = null; } return connectionBuilder_; @@ -1009,55 +867,39 @@ public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnection private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1073,16 +915,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -1093,20 +933,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -1118,14 +955,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -1139,68 +973,55 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1210,32 +1031,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.UpdateConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.UpdateConnectionRequest) - private static final com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest(); } - public static com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateConnectionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateConnectionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1247,8 +1066,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequestOrBuilder.java index 3ef85f0d..60267c6c 100644 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequestOrBuilder.java @@ -1,135 +1,85 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; -public interface UpdateConnectionRequestOrBuilder - extends +public interface UpdateConnectionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.UpdateConnectionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the connection to update, for example:
    * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Name of the connection to update, for example:
    * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. Connection containing the updated fields.
    * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connection field is set. */ boolean hasConnection(); /** - * - * *
    * Required. Connection containing the updated fields.
    * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The connection. */ com.google.cloud.bigquery.connection.v1.Connection getConnection(); /** - * - * *
    * Required. Connection containing the updated fields.
    * 
* - * - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnectionOrBuilder(); /** - * - * *
    * Required. Update mask for the connection fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Update mask for the connection fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Update mask for the connection fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto similarity index 100% rename from proto-google-cloud-bigqueryconnection-v1/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto rename to owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java b/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java similarity index 98% rename from google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java rename to owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java index 5769a9e9..3bfa2540 100644 --- a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java +++ b/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.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. *
* @@ -106,6 +106,21 @@ * ConnectionServiceClient.create(connectionServiceSettings); * }
* + *

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.
+ * ConnectionServiceSettings connectionServiceSettings =
+ *     ConnectionServiceSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             ConnectionServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * ConnectionServiceClient connectionServiceClient =
+ *     ConnectionServiceClient.create(connectionServiceSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @BetaApi diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java b/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java similarity index 91% rename from google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java rename to owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java index eafee464..6024b50e 100644 --- a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java @@ -21,9 +21,11 @@ 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.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.bigquery.connection.v1beta1.stub.ConnectionServiceStubSettings; @@ -44,10 +46,10 @@ *

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

    - *
  • The default service address (bigqueryconnection.googleapis.com) and default port (443) are + *
  • The default service address (bigqueryconnection.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. + *
  • 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 @@ -154,11 +156,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return ConnectionServiceStubSettings.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 ConnectionServiceStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return ConnectionServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return ConnectionServiceStubSettings.defaultTransportChannelProvider(); } @@ -168,11 +177,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return ConnectionServiceStubSettings.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); @@ -210,6 +225,11 @@ private static Builder createDefault() { return new Builder(ConnectionServiceStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(ConnectionServiceStubSettings.newHttpJsonBuilder()); + } + public ConnectionServiceStubSettings.Builder getStubSettingsBuilder() { return ((ConnectionServiceStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/gapic_metadata.json b/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/gapic_metadata.json similarity index 100% rename from google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/gapic_metadata.json rename to owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/gapic_metadata.json diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/package-info.java b/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/package-info.java similarity index 100% rename from google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/package-info.java rename to owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/package-info.java diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStub.java b/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStub.java similarity index 100% rename from google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStub.java rename to owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStub.java diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java b/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java similarity index 89% rename from google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java rename to owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java index a36fbbb2..b70b3877 100644 --- a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java @@ -24,6 +24,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +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.retrying.RetrySettings; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; @@ -54,10 +57,10 @@ *

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

    - *
  • The default service address (bigqueryconnection.googleapis.com) and default port (443) are + *
  • The default service address (bigqueryconnection.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. + *
  • 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 @@ -172,6 +175,11 @@ public ConnectionServiceStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcConnectionServiceStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonConnectionServiceStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -204,18 +212,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(ConnectionServiceStubSettings.class)) @@ -223,11 +238,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(ConnectionServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ConnectionServiceStubSettings.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); @@ -390,6 +424,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 .createConnectionSettings() diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceCallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceCallableFactory.java similarity index 100% rename from google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceCallableFactory.java rename to owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceCallableFactory.java diff --git a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java b/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java similarity index 99% rename from google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java rename to owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java index 012a6e07..fd17eef2 100644 --- a/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java +++ b/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java @@ -35,6 +35,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/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceCallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceCallableFactory.java new file mode 100644 index 00000000..65e85c7f --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceCallableFactory.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.bigquery.connection.v1beta1.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 ConnectionService service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonConnectionServiceCallableFactory + 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/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceStub.java b/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceStub.java new file mode 100644 index 00000000..5acc486b --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceStub.java @@ -0,0 +1,656 @@ +/* + * 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.bigquery.connection.v1beta1.stub; + +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.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.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.bigquery.connection.v1beta1.ConnectionProto; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +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 ConnectionService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonConnectionServiceStub extends ConnectionServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor< + ConnectionProto.CreateConnectionRequest, ConnectionProto.Connection> + createConnectionMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.bigquery.connection.v1beta1.ConnectionService/CreateConnection") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/connections", + 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, "connectionId", request.getConnectionId()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("connection", request.getConnection())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ConnectionProto.Connection.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ConnectionProto.GetConnectionRequest, ConnectionProto.Connection> + getConnectionMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.bigquery.connection.v1beta1.ConnectionService/GetConnection") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/connections/*}", + 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(ConnectionProto.Connection.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ConnectionProto.ListConnectionsRequest, ConnectionProto.ListConnectionsResponse> + listConnectionsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.bigquery.connection.v1beta1.ConnectionService/ListConnections") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/connections", + 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, "maxResults", request.getMaxResults()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + ConnectionProto.ListConnectionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ConnectionProto.UpdateConnectionRequest, ConnectionProto.Connection> + updateConnectionMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.bigquery.connection.v1beta1.ConnectionService/UpdateConnection") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/connections/*}", + 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(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("connection", request.getConnection())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ConnectionProto.Connection.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateConnectionCredentialMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.connection.v1beta1.ConnectionService/UpdateConnectionCredential") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/connections/*/credential}", + 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 -> + ProtoRestSerializer.create() + .toBody("credential", request.getCredential())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteConnectionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.connection.v1beta1.ConnectionService/DeleteConnection") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/connections/*}", + 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(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.connection.v1beta1.ConnectionService/GetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{resource=projects/*/locations/*/connections/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.connection.v1beta1.ConnectionService/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{resource=projects/*/locations/*/connections/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.bigquery.connection.v1beta1.ConnectionService/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{resource=projects/*/locations/*/connections/*}:testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + createConnectionCallable; + private final UnaryCallable + getConnectionCallable; + private final UnaryCallable< + ConnectionProto.ListConnectionsRequest, ConnectionProto.ListConnectionsResponse> + listConnectionsCallable; + private final UnaryCallable + updateConnectionCallable; + private final UnaryCallable + updateConnectionCredentialCallable; + private final UnaryCallable + deleteConnectionCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonConnectionServiceStub create(ConnectionServiceStubSettings settings) + throws IOException { + return new HttpJsonConnectionServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonConnectionServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonConnectionServiceStub( + ConnectionServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonConnectionServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonConnectionServiceStub( + ConnectionServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonConnectionServiceStub, 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 HttpJsonConnectionServiceStub( + ConnectionServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonConnectionServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonConnectionServiceStub, 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 HttpJsonConnectionServiceStub( + ConnectionServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + createConnectionTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(createConnectionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getConnectionTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getConnectionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings< + ConnectionProto.ListConnectionsRequest, ConnectionProto.ListConnectionsResponse> + listConnectionsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listConnectionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateConnectionTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(updateConnectionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + updateConnectionCredentialTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(updateConnectionCredentialMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + deleteConnectionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteConnectionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createConnectionCallable = + callableFactory.createUnaryCallable( + createConnectionTransportSettings, settings.createConnectionSettings(), clientContext); + this.getConnectionCallable = + callableFactory.createUnaryCallable( + getConnectionTransportSettings, settings.getConnectionSettings(), clientContext); + this.listConnectionsCallable = + callableFactory.createUnaryCallable( + listConnectionsTransportSettings, settings.listConnectionsSettings(), clientContext); + this.updateConnectionCallable = + callableFactory.createUnaryCallable( + updateConnectionTransportSettings, settings.updateConnectionSettings(), clientContext); + this.updateConnectionCredentialCallable = + callableFactory.createUnaryCallable( + updateConnectionCredentialTransportSettings, + settings.updateConnectionCredentialSettings(), + clientContext); + this.deleteConnectionCallable = + callableFactory.createUnaryCallable( + deleteConnectionTransportSettings, settings.deleteConnectionSettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createConnectionMethodDescriptor); + methodDescriptors.add(getConnectionMethodDescriptor); + methodDescriptors.add(listConnectionsMethodDescriptor); + methodDescriptors.add(updateConnectionMethodDescriptor); + methodDescriptors.add(updateConnectionCredentialMethodDescriptor); + methodDescriptors.add(deleteConnectionMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable + createConnectionCallable() { + return createConnectionCallable; + } + + @Override + public UnaryCallable + getConnectionCallable() { + return getConnectionCallable; + } + + @Override + public UnaryCallable< + ConnectionProto.ListConnectionsRequest, ConnectionProto.ListConnectionsResponse> + listConnectionsCallable() { + return listConnectionsCallable; + } + + @Override + public UnaryCallable + updateConnectionCallable() { + return updateConnectionCallable; + } + + @Override + public UnaryCallable + updateConnectionCredentialCallable() { + return updateConnectionCredentialCallable; + } + + @Override + public UnaryCallable deleteConnectionCallable() { + return deleteConnectionCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @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/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientHttpJsonTest.java b/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientHttpJsonTest.java new file mode 100644 index 00000000..e2fee04b --- /dev/null +++ b/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientHttpJsonTest.java @@ -0,0 +1,904 @@ +/* + * 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.bigquery.connection.v1beta1; + +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.api.resourcenames.ResourceName; +import com.google.cloud.bigquery.connection.v1beta1.stub.HttpJsonConnectionServiceStub; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.UInt32Value; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +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 ConnectionServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static ConnectionServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonConnectionServiceStub.getMethodDescriptors(), + ConnectionServiceSettings.getDefaultEndpoint()); + ConnectionServiceSettings settings = + ConnectionServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + ConnectionServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ConnectionServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createConnectionTest() throws Exception { + ConnectionProto.Connection expectedResponse = + ConnectionProto.Connection.newBuilder() + .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setFriendlyName("friendlyName461933014") + .setDescription("description-1724546052") + .setCreationTime(1932333101) + .setLastModifiedTime(-671513446) + .setHasCredential(true) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + ConnectionProto.Connection connection = ConnectionProto.Connection.newBuilder().build(); + String connectionId = "connectionId1923106969"; + + ConnectionProto.Connection actualResponse = + client.createConnection(parent, connection, connectionId); + 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 createConnectionExceptionTest() 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]"); + ConnectionProto.Connection connection = ConnectionProto.Connection.newBuilder().build(); + String connectionId = "connectionId1923106969"; + client.createConnection(parent, connection, connectionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createConnectionTest2() throws Exception { + ConnectionProto.Connection expectedResponse = + ConnectionProto.Connection.newBuilder() + .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setFriendlyName("friendlyName461933014") + .setDescription("description-1724546052") + .setCreationTime(1932333101) + .setLastModifiedTime(-671513446) + .setHasCredential(true) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + ConnectionProto.Connection connection = ConnectionProto.Connection.newBuilder().build(); + String connectionId = "connectionId1923106969"; + + ConnectionProto.Connection actualResponse = + client.createConnection(parent, connection, connectionId); + 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 createConnectionExceptionTest2() 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"; + ConnectionProto.Connection connection = ConnectionProto.Connection.newBuilder().build(); + String connectionId = "connectionId1923106969"; + client.createConnection(parent, connection, connectionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConnectionTest() throws Exception { + ConnectionProto.Connection expectedResponse = + ConnectionProto.Connection.newBuilder() + .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setFriendlyName("friendlyName461933014") + .setDescription("description-1724546052") + .setCreationTime(1932333101) + .setLastModifiedTime(-671513446) + .setHasCredential(true) + .build(); + mockService.addResponse(expectedResponse); + + ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + + ConnectionProto.Connection actualResponse = client.getConnection(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 getConnectionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + client.getConnection(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConnectionTest2() throws Exception { + ConnectionProto.Connection expectedResponse = + ConnectionProto.Connection.newBuilder() + .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setFriendlyName("friendlyName461933014") + .setDescription("description-1724546052") + .setCreationTime(1932333101) + .setLastModifiedTime(-671513446) + .setHasCredential(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-7851/locations/location-7851/connections/connection-7851"; + + ConnectionProto.Connection actualResponse = client.getConnection(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 getConnectionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7851/locations/location-7851/connections/connection-7851"; + client.getConnection(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConnectionsTest() throws Exception { + ConnectionProto.ListConnectionsResponse expectedResponse = + ConnectionProto.ListConnectionsResponse.newBuilder() + .setNextPageToken("nextPageToken-1386094857") + .addAllConnections(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + UInt32Value maxResults = UInt32Value.newBuilder().build(); + + ConnectionProto.ListConnectionsResponse actualResponse = + client.listConnections(parent, maxResults); + 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 listConnectionsExceptionTest() 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]"); + UInt32Value maxResults = UInt32Value.newBuilder().build(); + client.listConnections(parent, maxResults); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConnectionsTest2() throws Exception { + ConnectionProto.ListConnectionsResponse expectedResponse = + ConnectionProto.ListConnectionsResponse.newBuilder() + .setNextPageToken("nextPageToken-1386094857") + .addAllConnections(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + UInt32Value maxResults = UInt32Value.newBuilder().build(); + + ConnectionProto.ListConnectionsResponse actualResponse = + client.listConnections(parent, maxResults); + 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 listConnectionsExceptionTest2() 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"; + UInt32Value maxResults = UInt32Value.newBuilder().build(); + client.listConnections(parent, maxResults); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateConnectionTest() throws Exception { + ConnectionProto.Connection expectedResponse = + ConnectionProto.Connection.newBuilder() + .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setFriendlyName("friendlyName461933014") + .setDescription("description-1724546052") + .setCreationTime(1932333101) + .setLastModifiedTime(-671513446) + .setHasCredential(true) + .build(); + mockService.addResponse(expectedResponse); + + ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + ConnectionProto.Connection connection = ConnectionProto.Connection.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ConnectionProto.Connection actualResponse = + client.updateConnection(name, connection, updateMask); + 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 updateConnectionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + ConnectionProto.Connection connection = ConnectionProto.Connection.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateConnection(name, connection, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateConnectionTest2() throws Exception { + ConnectionProto.Connection expectedResponse = + ConnectionProto.Connection.newBuilder() + .setName(ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]").toString()) + .setFriendlyName("friendlyName461933014") + .setDescription("description-1724546052") + .setCreationTime(1932333101) + .setLastModifiedTime(-671513446) + .setHasCredential(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-7851/locations/location-7851/connections/connection-7851"; + ConnectionProto.Connection connection = ConnectionProto.Connection.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ConnectionProto.Connection actualResponse = + client.updateConnection(name, connection, updateMask); + 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 updateConnectionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7851/locations/location-7851/connections/connection-7851"; + ConnectionProto.Connection connection = ConnectionProto.Connection.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateConnection(name, connection, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateConnectionCredentialTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3051/locations/location-3051/connections/connection-3051/credential"; + ConnectionProto.ConnectionCredential credential = + ConnectionProto.ConnectionCredential.newBuilder().build(); + + client.updateConnectionCredential(name, credential); + + 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 updateConnectionCredentialExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3051/locations/location-3051/connections/connection-3051/credential"; + ConnectionProto.ConnectionCredential credential = + ConnectionProto.ConnectionCredential.newBuilder().build(); + client.updateConnectionCredential(name, credential); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteConnectionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + + client.deleteConnection(name); + + 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 deleteConnectionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ConnectionName name = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + client.deleteConnection(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteConnectionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-7851/locations/location-7851/connections/connection-7851"; + + client.deleteConnection(name); + + 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 deleteConnectionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7851/locations/location-7851/connections/connection-7851"; + client.deleteConnection(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + GetPolicyOptions options = GetPolicyOptions.newBuilder().build(); + + Policy actualResponse = client.getIamPolicy(resource, options); + 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 getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + GetPolicyOptions options = GetPolicyOptions.newBuilder().build(); + client.getIamPolicy(resource, options); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = "projects/project-9698/locations/location-9698/connections/connection-9698"; + GetPolicyOptions options = GetPolicyOptions.newBuilder().build(); + + Policy actualResponse = client.getIamPolicy(resource, options); + 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 getIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "projects/project-9698/locations/location-9698/connections/connection-9698"; + GetPolicyOptions options = GetPolicyOptions.newBuilder().build(); + client.getIamPolicy(resource, options); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + 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 setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = "projects/project-9698/locations/location-9698/connections/connection-9698"; + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + 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 setIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "projects/project-9698/locations/location-9698/connections/connection-9698"; + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + List permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + 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 testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = ConnectionName.of("[PROJECT]", "[LOCATION]", "[CONNECTION]"); + List permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest2() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String resource = "projects/project-9698/locations/location-9698/connections/connection-9698"; + List permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + 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 testIamPermissionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "projects/project-9698/locations/location-9698/connections/connection-9698"; + List permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientTest.java b/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientTest.java similarity index 100% rename from google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientTest.java rename to owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientTest.java diff --git a/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionService.java b/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionService.java similarity index 100% rename from google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionService.java rename to owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionService.java diff --git a/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionServiceImpl.java b/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionServiceImpl.java similarity index 100% rename from google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionServiceImpl.java rename to owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionServiceImpl.java diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java new file mode 100644 index 00000000..68491d0e --- /dev/null +++ b/owl-bot-staging/v1beta1/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java @@ -0,0 +1,1031 @@ +package com.google.cloud.bigquery.connection.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Manages external data source connections and credentials.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/bigquery/connection/v1beta1/connection.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ConnectionServiceGrpc { + + private ConnectionServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.bigquery.connection.v1beta1.ConnectionService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateConnection", + requestType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest.class, + responseType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateConnectionMethod() { + io.grpc.MethodDescriptor getCreateConnectionMethod; + if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { + ConnectionServiceGrpc.getCreateConnectionMethod = getCreateConnectionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("CreateConnection")) + .build(); + } + } + } + return getCreateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConnection", + requestType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.class, + responseType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetConnectionMethod() { + io.grpc.MethodDescriptor getGetConnectionMethod; + if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { + ConnectionServiceGrpc.getGetConnectionMethod = getGetConnectionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("GetConnection")) + .build(); + } + } + } + return getGetConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor getListConnectionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConnections", + requestType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.class, + responseType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListConnectionsMethod() { + io.grpc.MethodDescriptor getListConnectionsMethod; + if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { + ConnectionServiceGrpc.getListConnectionsMethod = getListConnectionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnections")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("ListConnections")) + .build(); + } + } + } + return getListConnectionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConnection", + requestType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest.class, + responseType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateConnectionMethod() { + io.grpc.MethodDescriptor getUpdateConnectionMethod; + if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { + ConnectionServiceGrpc.getUpdateConnectionMethod = getUpdateConnectionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("UpdateConnection")) + .build(); + } + } + } + return getUpdateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateConnectionCredentialMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConnectionCredential", + requestType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateConnectionCredentialMethod() { + io.grpc.MethodDescriptor getUpdateConnectionCredentialMethod; + if ((getUpdateConnectionCredentialMethod = ConnectionServiceGrpc.getUpdateConnectionCredentialMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getUpdateConnectionCredentialMethod = ConnectionServiceGrpc.getUpdateConnectionCredentialMethod) == null) { + ConnectionServiceGrpc.getUpdateConnectionCredentialMethod = getUpdateConnectionCredentialMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConnectionCredential")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("UpdateConnectionCredential")) + .build(); + } + } + } + return getUpdateConnectionCredentialMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConnection", + requestType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteConnectionMethod() { + io.grpc.MethodDescriptor getDeleteConnectionMethod; + if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { + ConnectionServiceGrpc.getDeleteConnectionMethod = getDeleteConnectionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("DeleteConnection")) + .build(); + } + } + } + return getDeleteConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", + requestType = com.google.iam.v1.GetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetIamPolicyMethod() { + io.grpc.MethodDescriptor getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { + ConnectionServiceGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", + requestType = com.google.iam.v1.SetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetIamPolicyMethod() { + io.grpc.MethodDescriptor getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { + ConnectionServiceGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", + requestType = com.google.iam.v1.TestIamPermissionsRequest.class, + responseType = com.google.iam.v1.TestIamPermissionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor getTestIamPermissionsMethod; + if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) == null) { + ConnectionServiceGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static ConnectionServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceStub(channel, callOptions); + } + }; + return ConnectionServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ConnectionServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceBlockingStub(channel, callOptions); + } + }; + return ConnectionServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static ConnectionServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceFutureStub(channel, callOptions); + } + }; + return ConnectionServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Manages external data source connections and credentials.
+   * 
+ */ + public static abstract class ConnectionServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a new connection.
+     * 
+ */ + public void createConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateConnectionMethod(), responseObserver); + } + + /** + *
+     * Returns specified connection.
+     * 
+ */ + public void getConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConnectionMethod(), responseObserver); + } + + /** + *
+     * Returns a list of connections in the given project.
+     * 
+ */ + public void listConnections(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListConnectionsMethod(), responseObserver); + } + + /** + *
+     * Updates the specified connection. For security reasons, also resets
+     * credential if connection properties are in the update field mask.
+     * 
+ */ + public void updateConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConnectionMethod(), responseObserver); + } + + /** + *
+     * Sets the credential for the specified connection.
+     * 
+ */ + public void updateConnectionCredential(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConnectionCredentialMethod(), responseObserver); + } + + /** + *
+     * Deletes connection and associated credential.
+     * 
+ */ + public void deleteConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteConnectionMethod(), responseObserver); + } + + /** + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); + } + + /** + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
+     * 
+ */ + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); + } + + /** + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a NOT_FOUND error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection>( + this, METHODID_CREATE_CONNECTION))) + .addMethod( + getGetConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection>( + this, METHODID_GET_CONNECTION))) + .addMethod( + getListConnectionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse>( + this, METHODID_LIST_CONNECTIONS))) + .addMethod( + getUpdateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection>( + this, METHODID_UPDATE_CONNECTION))) + .addMethod( + getUpdateConnectionCredentialMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest, + com.google.protobuf.Empty>( + this, METHODID_UPDATE_CONNECTION_CREDENTIAL))) + .addMethod( + getDeleteConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_CONNECTION))) + .addMethod( + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, + com.google.iam.v1.Policy>( + this, METHODID_GET_IAM_POLICY))) + .addMethod( + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, + com.google.iam.v1.Policy>( + this, METHODID_SET_IAM_POLICY))) + .addMethod( + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + this, METHODID_TEST_IAM_PERMISSIONS))) + .build(); + } + } + + /** + *
+   * Manages external data source connections and credentials.
+   * 
+ */ + public static final class ConnectionServiceStub extends io.grpc.stub.AbstractAsyncStub { + private ConnectionServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConnectionServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceStub(channel, callOptions); + } + + /** + *
+     * Creates a new connection.
+     * 
+ */ + public void createConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateConnectionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns specified connection.
+     * 
+ */ + public void getConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConnectionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns a list of connections in the given project.
+     * 
+ */ + public void listConnections(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListConnectionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the specified connection. For security reasons, also resets
+     * credential if connection properties are in the update field mask.
+     * 
+ */ + public void updateConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConnectionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets the credential for the specified connection.
+     * 
+ */ + public void updateConnectionCredential(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConnectionCredentialMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes connection and associated credential.
+     * 
+ */ + public void deleteConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteConnectionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
+     * 
+ */ + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a NOT_FOUND error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Manages external data source connections and credentials.
+   * 
+ */ + public static final class ConnectionServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private ConnectionServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConnectionServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a new connection.
+     * 
+ */ + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection createConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateConnectionMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns specified connection.
+     * 
+ */ + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConnectionMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns a list of connections in the given project.
+     * 
+ */ + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse listConnections(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListConnectionsMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the specified connection. For security reasons, also resets
+     * credential if connection properties are in the update field mask.
+     * 
+ */ + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection updateConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConnectionMethod(), getCallOptions(), request); + } + + /** + *
+     * Sets the credential for the specified connection.
+     * 
+ */ + public com.google.protobuf.Empty updateConnectionCredential(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConnectionCredentialMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes connection and associated credential.
+     * 
+ */ + public com.google.protobuf.Empty deleteConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteConnectionMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a NOT_FOUND error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Manages external data source connections and credentials.
+   * 
+ */ + public static final class ConnectionServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private ConnectionServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConnectionServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a new connection.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createConnection( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateConnectionMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns specified connection.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getConnection( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConnectionMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns a list of connections in the given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listConnections( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListConnectionsMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the specified connection. For security reasons, also resets
+     * credential if connection properties are in the update field mask.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateConnection( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateConnectionMethod(), getCallOptions()), request); + } + + /** + *
+     * Sets the credential for the specified connection.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateConnectionCredential( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateConnectionCredentialMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes connection and associated credential.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteConnection( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteConnectionMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a NOT_FOUND error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_CONNECTION = 0; + private static final int METHODID_GET_CONNECTION = 1; + private static final int METHODID_LIST_CONNECTIONS = 2; + private static final int METHODID_UPDATE_CONNECTION = 3; + private static final int METHODID_UPDATE_CONNECTION_CREDENTIAL = 4; + private static final int METHODID_DELETE_CONNECTION = 5; + private static final int METHODID_GET_IAM_POLICY = 6; + private static final int METHODID_SET_IAM_POLICY = 7; + private static final int METHODID_TEST_IAM_PERMISSIONS = 8; + + 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 ConnectionServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ConnectionServiceImplBase 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_CONNECTION: + serviceImpl.createConnection((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CONNECTION: + serviceImpl.getConnection((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CONNECTIONS: + serviceImpl.listConnections((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CONNECTION: + serviceImpl.updateConnection((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CONNECTION_CREDENTIAL: + serviceImpl.updateConnectionCredential((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CONNECTION: + serviceImpl.deleteConnection((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TEST_IAM_PERMISSIONS: + serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) 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 ConnectionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ConnectionServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ConnectionService"); + } + } + + private static final class ConnectionServiceFileDescriptorSupplier + extends ConnectionServiceBaseDescriptorSupplier { + ConnectionServiceFileDescriptorSupplier() {} + } + + private static final class ConnectionServiceMethodDescriptorSupplier + extends ConnectionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ConnectionServiceMethodDescriptorSupplier(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 (ConnectionServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ConnectionServiceFileDescriptorSupplier()) + .addMethod(getCreateConnectionMethod()) + .addMethod(getGetConnectionMethod()) + .addMethod(getListConnectionsMethod()) + .addMethod(getUpdateConnectionMethod()) + .addMethod(getUpdateConnectionCredentialMethod()) + .addMethod(getDeleteConnectionMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionName.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionName.java similarity index 100% rename from proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionName.java diff --git a/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java similarity index 59% rename from proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java index 881474a1..1f1c7864 100644 --- a/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java @@ -1,18 +1,3 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1beta1/connection.proto @@ -20,135 +5,104 @@ public final class ConnectionProto { private ConnectionProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { } - public interface CreateConnectionRequestOrBuilder - extends + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface CreateConnectionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1beta1.CreateConnectionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. Parent resource name.
      * Must be in the format `projects/{project_id}/locations/{location_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
      * Required. Parent resource name.
      * Must be in the format `projects/{project_id}/locations/{location_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
      * Optional. Connection id that should be assigned to the created connection.
      * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The connectionId. */ java.lang.String getConnectionId(); /** - * - * *
      * Optional. Connection id that should be assigned to the created connection.
      * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for connectionId. */ - com.google.protobuf.ByteString getConnectionIdBytes(); + com.google.protobuf.ByteString + getConnectionIdBytes(); /** - * - * *
      * Required. Connection to create.
      * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connection field is set. */ boolean hasConnection(); /** - * - * *
      * Required. Connection to create.
      * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The connection. */ com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConnection(); /** - * - * *
      * Required. Connection to create.
      * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder - getConnectionOrBuilder(); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder getConnectionOrBuilder(); } /** - * - * *
    * The request for [ConnectionService.CreateConnection][google.cloud.bigquery.connection.v1beta1.ConnectionService.CreateConnection].
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.CreateConnectionRequest} */ - public static final class CreateConnectionRequest extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class CreateConnectionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1beta1.CreateConnectionRequest) CreateConnectionRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateConnectionRequest.newBuilder() to construct. private CreateConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateConnectionRequest() { parent_ = ""; connectionId_ = ""; @@ -156,15 +110,16 @@ private CreateConnectionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateConnectionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateConnectionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -183,46 +138,38 @@ private CreateConnectionRequest( 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(); - connectionId_ = s; - break; + connectionId_ = s; + break; + } + case 26: { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder subBuilder = null; + if (connection_ != null) { + subBuilder = connection_.toBuilder(); } - case 26: - { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder - subBuilder = null; - if (connection_ != null) { - subBuilder = connection_.toBuilder(); - } - connection_ = - input.readMessage( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(connection_); - connection_ = subBuilder.buildPartial(); - } - - break; + connection_ = input.readMessage(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(connection_); + connection_ = 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) { @@ -230,44 +177,35 @@ private CreateConnectionRequest( } 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.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest - .class, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest - .Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
      * Required. Parent resource name.
      * Must be in the format `projects/{project_id}/locations/{location_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -276,32 +214,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. Parent resource name.
      * Must be in the format `projects/{project_id}/locations/{location_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -312,14 +248,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CONNECTION_ID_FIELD_NUMBER = 2; private volatile java.lang.Object connectionId_; /** - * - * *
      * Optional. Connection id that should be assigned to the created connection.
      * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The connectionId. */ @java.lang.Override @@ -328,29 +261,29 @@ public java.lang.String getConnectionId() { 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(); connectionId_ = s; return s; } } /** - * - * *
      * Optional. Connection id that should be assigned to the created connection.
      * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for connectionId. */ @java.lang.Override - public com.google.protobuf.ByteString getConnectionIdBytes() { + public com.google.protobuf.ByteString + getConnectionIdBytes() { java.lang.Object ref = connectionId_; 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); connectionId_ = b; return b; } else { @@ -361,16 +294,11 @@ public com.google.protobuf.ByteString getConnectionIdBytes() { public static final int CONNECTION_FIELD_NUMBER = 3; private com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection connection_; /** - * - * *
      * Required. Connection to create.
      * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connection field is set. */ @java.lang.Override @@ -378,44 +306,30 @@ public boolean hasConnection() { return connection_ != null; } /** - * - * *
      * Required. Connection to create.
      * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The connection. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConnection() { - return connection_ == null - ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection - .getDefaultInstance() - : connection_; + return connection_ == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance() : connection_; } /** - * - * *
      * Required. Connection to create.
      * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder - getConnectionOrBuilder() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder getConnectionOrBuilder() { return getConnection(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -427,7 +341,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_); } @@ -453,7 +368,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, connectionId_); } if (connection_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConnection()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getConnection()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -463,22 +379,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.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest)) { + if (!(obj instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest other = - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest) - obj; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest other = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getConnectionId().equals(other.getConnectionId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getConnectionId() + .equals(other.getConnectionId())) return false; if (hasConnection() != other.hasConnection()) return false; if (hasConnection()) { - if (!getConnection().equals(other.getConnection())) return false; + if (!getConnection() + .equals(other.getConnection())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -504,114 +419,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CreateConnectionRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CreateConnectionRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CreateConnectionRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CreateConnectionRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest 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.bigquery.connection.v1beta1.ConnectionProto - .CreateConnectionRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CreateConnectionRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CreateConnectionRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CreateConnectionRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CreateConnectionRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CreateConnectionRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CreateConnectionRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CreateConnectionRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + 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.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest - prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest 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 @@ -621,52 +510,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The request for [ConnectionService.CreateConnection][google.cloud.bigquery.connection.v1beta1.ConnectionService.CreateConnection].
      * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.CreateConnectionRequest} */ - 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.bigquery.connection.v1beta1.CreateConnectionRequest) - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CreateConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_descriptor; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest - .class, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest - .Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest.newBuilder() + // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -684,23 +565,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest - build() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest - result = buildPartial(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest build() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -708,12 +585,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest - buildPartial() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest - result = - new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CreateConnectionRequest(this); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest buildPartial() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest result = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest(this); result.parent_ = parent_; result.connectionId_ = connectionId_; if (connectionBuilder_ == null) { @@ -729,57 +602,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 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.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest) { - return mergeFrom( - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest) - other); + if (other instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest) { + return mergeFrom((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest - other) { - if (other - == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest other) { + if (other == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -806,14 +668,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest - parsedMessage = null; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -825,23 +684,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
        * Required. Parent resource name.
        * Must be in the format `projects/{project_id}/locations/{location_id}`
        * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -850,24 +705,21 @@ public java.lang.String getParent() { } } /** - * - * *
        * Required. Parent resource name.
        * Must be in the format `projects/{project_id}/locations/{location_id}`
        * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -875,70 +727,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
        * Required. Parent resource name.
        * Must be in the format `projects/{project_id}/locations/{location_id}`
        * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
        * Required. Parent resource name.
        * Must be in the format `projects/{project_id}/locations/{location_id}`
        * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
        * Required. Parent resource name.
        * Must be in the format `projects/{project_id}/locations/{location_id}`
        * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -946,20 +785,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object connectionId_ = ""; /** - * - * *
        * Optional. Connection id that should be assigned to the created connection.
        * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The connectionId. */ public java.lang.String getConnectionId() { java.lang.Object ref = connectionId_; 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(); connectionId_ = s; return s; @@ -968,21 +805,20 @@ public java.lang.String getConnectionId() { } } /** - * - * *
        * Optional. Connection id that should be assigned to the created connection.
        * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for connectionId. */ - public com.google.protobuf.ByteString getConnectionIdBytes() { + public com.google.protobuf.ByteString + getConnectionIdBytes() { java.lang.Object ref = connectionId_; 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); connectionId_ = b; return b; } else { @@ -990,61 +826,54 @@ public com.google.protobuf.ByteString getConnectionIdBytes() { } } /** - * - * *
        * Optional. Connection id that should be assigned to the created connection.
        * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The connectionId to set. * @return This builder for chaining. */ - public Builder setConnectionId(java.lang.String value) { + public Builder setConnectionId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + connectionId_ = value; onChanged(); return this; } /** - * - * *
        * Optional. Connection id that should be assigned to the created connection.
        * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearConnectionId() { - + connectionId_ = getDefaultInstance().getConnectionId(); onChanged(); return this; } /** - * - * *
        * Optional. Connection id that should be assigned to the created connection.
        * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for connectionId to set. * @return This builder for chaining. */ - public Builder setConnectionIdBytes(com.google.protobuf.ByteString value) { + public Builder setConnectionIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + connectionId_ = value; onChanged(); return this; @@ -1052,63 +881,41 @@ public Builder setConnectionIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection connection_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> - connectionBuilder_; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> connectionBuilder_; /** - * - * *
        * Required. Connection to create.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connection field is set. */ public boolean hasConnection() { return connectionBuilder_ != null || connection_ != null; } /** - * - * *
        * Required. Connection to create.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The connection. */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection - getConnection() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConnection() { if (connectionBuilder_ == null) { - return connection_ == null - ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection - .getDefaultInstance() - : connection_; + return connection_ == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance() : connection_; } else { return connectionBuilder_.getMessage(); } } /** - * - * *
        * Required. Connection to create.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection value) { + public Builder setConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection value) { if (connectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1122,19 +929,14 @@ public Builder setConnection( return this; } /** - * - * *
        * Required. Connection to create.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder - builderForValue) { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder builderForValue) { if (connectionBuilder_ == null) { connection_ = builderForValue.build(); onChanged(); @@ -1145,25 +947,17 @@ public Builder setConnection( return this; } /** - * - * *
        * Required. Connection to create.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection value) { + public Builder mergeConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection value) { if (connectionBuilder_ == null) { if (connection_ != null) { connection_ = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.newBuilder( - connection_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.newBuilder(connection_).mergeFrom(value).buildPartial(); } else { connection_ = value; } @@ -1175,15 +969,11 @@ public Builder mergeConnection( return this; } /** - * - * *
        * Required. Connection to create.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConnection() { if (connectionBuilder_ == null) { @@ -1197,72 +987,52 @@ public Builder clearConnection() { return this; } /** - * - * *
        * Required. Connection to create.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder - getConnectionBuilder() { - + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder getConnectionBuilder() { + onChanged(); return getConnectionFieldBuilder().getBuilder(); } /** - * - * *
        * Required. Connection to create.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder - getConnectionOrBuilder() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder getConnectionOrBuilder() { if (connectionBuilder_ != null) { return connectionBuilder_.getMessageOrBuilder(); } else { - return connection_ == null - ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection - .getDefaultInstance() - : connection_; + return connection_ == null ? + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance() : connection_; } } /** - * - * *
        * Required. Connection to create.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> getConnectionFieldBuilder() { if (connectionBuilder_ == null) { - connectionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder>( - getConnection(), getParentForChildren(), isClean()); + connectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder>( + getConnection(), + getParentForChildren(), + isClean()); connection_ = null; } return connectionBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1275,36 +1045,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1beta1.CreateConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1beta1.CreateConnectionRequest) - private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CreateConnectionRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CreateConnectionRequest(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest(); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CreateConnectionRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateConnectionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateConnectionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1316,82 +1080,70 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface GetConnectionRequestOrBuilder - extends + public interface GetConnectionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1beta1.GetConnectionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. Name of the requested connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
      * Required. Name of the requested connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } /** - * - * *
    * The request for [ConnectionService.GetConnection][google.cloud.bigquery.connection.v1beta1.ConnectionService.GetConnection].
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.GetConnectionRequest} */ - public static final class GetConnectionRequest extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class GetConnectionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1beta1.GetConnectionRequest) GetConnectionRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetConnectionRequest.newBuilder() to construct. private GetConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetConnectionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetConnectionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetConnectionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1410,20 +1162,19 @@ private GetConnectionRequest( 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) { @@ -1431,44 +1182,35 @@ private GetConnectionRequest( } 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.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest - .class, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest - .Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
      * Required. Name of the requested connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -1477,32 +1219,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Required. Name of the requested connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1511,7 +1251,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1523,7 +1262,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_); } @@ -1547,17 +1287,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.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest)) { + if (!(obj instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest other = - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest) obj; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest other = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1576,102 +1314,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest 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.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + 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.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest - prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest 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 @@ -1681,51 +1405,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The request for [ConnectionService.GetConnection][google.cloud.bigquery.connection.v1beta1.ConnectionService.GetConnection].
      * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.GetConnectionRequest} */ - 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.bigquery.connection.v1beta1.GetConnectionRequest) com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest - .class, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest - .Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.newBuilder() + // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1735,23 +1452,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest - build() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest result = - buildPartial(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest build() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1759,11 +1472,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest - buildPartial() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest result = - new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest( - this); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest buildPartial() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest result = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -1773,56 +1483,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 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.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest) { - return mergeFrom( - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest) - other); + if (other instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest) { + return mergeFrom((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest other) { - if (other - == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest other) { + if (other == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1842,14 +1542,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest - parsedMessage = null; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1861,23 +1558,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
        * Required. Name of the requested connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1886,24 +1579,21 @@ public java.lang.String getName() { } } /** - * - * *
        * Required. Name of the requested connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1911,75 +1601,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Required. Name of the requested connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
        * Required. Name of the requested connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
        * Required. Name of the requested connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + 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) { @@ -1992,34 +1668,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1beta1.GetConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1beta1.GetConnectionRequest) - private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .GetConnectionRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest(); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetConnectionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetConnectionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2031,130 +1703,101 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ListConnectionsRequestOrBuilder - extends + public interface ListConnectionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1beta1.ListConnectionsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. Parent resource name.
      * Must be in the form: `projects/{project_id}/locations/{location_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
      * Required. Parent resource name.
      * Must be in the form: `projects/{project_id}/locations/{location_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
      * Required. Maximum number of results per page.
      * 
* - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the maxResults field is set. */ boolean hasMaxResults(); /** - * - * *
      * Required. Maximum number of results per page.
      * 
* - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The maxResults. */ com.google.protobuf.UInt32Value getMaxResults(); /** - * - * *
      * Required. Maximum number of results per page.
      * 
* - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.UInt32ValueOrBuilder getMaxResultsOrBuilder(); /** - * - * *
      * Page token.
      * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
      * Page token.
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } /** - * - * *
    * The request for [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1beta1.ConnectionService.ListConnections].
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.ListConnectionsRequest} */ - public static final class ListConnectionsRequest extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ListConnectionsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1beta1.ListConnectionsRequest) ListConnectionsRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListConnectionsRequest.newBuilder() to construct. private ListConnectionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListConnectionsRequest() { parent_ = ""; pageToken_ = ""; @@ -2162,15 +1805,16 @@ private ListConnectionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListConnectionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListConnectionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2189,42 +1833,38 @@ private ListConnectionsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.protobuf.UInt32Value.Builder subBuilder = null; + if (maxResults_ != null) { + subBuilder = maxResults_.toBuilder(); } - case 18: - { - com.google.protobuf.UInt32Value.Builder subBuilder = null; - if (maxResults_ != null) { - subBuilder = maxResults_.toBuilder(); - } - maxResults_ = - input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maxResults_); - maxResults_ = subBuilder.buildPartial(); - } - - break; + maxResults_ = input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxResults_); + maxResults_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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) { @@ -2232,44 +1872,35 @@ private ListConnectionsRequest( } 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.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest - .class, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest - .Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
      * Required. Parent resource name.
      * Must be in the form: `projects/{project_id}/locations/{location_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -2278,32 +1909,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. Parent resource name.
      * Must be in the form: `projects/{project_id}/locations/{location_id}`
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -2314,15 +1943,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int MAX_RESULTS_FIELD_NUMBER = 2; private com.google.protobuf.UInt32Value maxResults_; /** - * - * *
      * Required. Maximum number of results per page.
      * 
* - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the maxResults field is set. */ @java.lang.Override @@ -2330,32 +1955,23 @@ public boolean hasMaxResults() { return maxResults_ != null; } /** - * - * *
      * Required. Maximum number of results per page.
      * 
* - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The maxResults. */ @java.lang.Override public com.google.protobuf.UInt32Value getMaxResults() { - return maxResults_ == null - ? com.google.protobuf.UInt32Value.getDefaultInstance() - : maxResults_; + return maxResults_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxResults_; } /** - * - * *
      * Required. Maximum number of results per page.
      * 
* - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.UInt32ValueOrBuilder getMaxResultsOrBuilder() { @@ -2365,14 +1981,11 @@ public com.google.protobuf.UInt32ValueOrBuilder getMaxResultsOrBuilder() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
      * Page token.
      * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -2381,29 +1994,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; } } /** - * - * *
      * Page 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 { @@ -2412,7 +2025,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2424,7 +2036,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_); } @@ -2447,7 +2060,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (maxResults_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxResults()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMaxResults()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -2460,22 +2074,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest)) { + if (!(obj instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest other = - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest) obj; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest other = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasMaxResults() != other.hasMaxResults()) return false; if (hasMaxResults()) { - if (!getMaxResults().equals(other.getMaxResults())) return false; + if (!getMaxResults() + .equals(other.getMaxResults())) return false; } - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2500,114 +2114,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest 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.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + 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.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest - prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest 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 @@ -2617,52 +2205,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The request for [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1beta1.ConnectionService.ListConnections].
      * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.ListConnectionsRequest} */ - 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.bigquery.connection.v1beta1.ListConnectionsRequest) - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_descriptor; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest - .class, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest - .Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.newBuilder() + // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2680,23 +2260,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest - build() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest result = - buildPartial(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest build() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2704,11 +2280,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest - buildPartial() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest result = - new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest( - this); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest buildPartial() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest result = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest(this); result.parent_ = parent_; if (maxResultsBuilder_ == null) { result.maxResults_ = maxResults_; @@ -2724,57 +2297,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 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.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest) { - return mergeFrom( - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest) - other); + if (other instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest) { + return mergeFrom((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest - other) { - if (other - == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest other) { + if (other == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -2801,14 +2363,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest - parsedMessage = null; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2820,23 +2379,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
        * Required. Parent resource name.
        * Must be in the form: `projects/{project_id}/locations/{location_id}`
        * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -2845,24 +2400,21 @@ public java.lang.String getParent() { } } /** - * - * *
        * Required. Parent resource name.
        * Must be in the form: `projects/{project_id}/locations/{location_id}`
        * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -2870,70 +2422,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
        * Required. Parent resource name.
        * Must be in the form: `projects/{project_id}/locations/{location_id}`
        * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
        * Required. Parent resource name.
        * Must be in the form: `projects/{project_id}/locations/{location_id}`
        * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
        * Required. Parent resource name.
        * Must be in the form: `projects/{project_id}/locations/{location_id}`
        * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -2941,58 +2480,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.UInt32Value maxResults_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.UInt32Value, - com.google.protobuf.UInt32Value.Builder, - com.google.protobuf.UInt32ValueOrBuilder> - maxResultsBuilder_; + com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> maxResultsBuilder_; /** - * - * *
        * Required. Maximum number of results per page.
        * 
* - * - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the maxResults field is set. */ public boolean hasMaxResults() { return maxResultsBuilder_ != null || maxResults_ != null; } /** - * - * *
        * Required. Maximum number of results per page.
        * 
* - * - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The maxResults. */ public com.google.protobuf.UInt32Value getMaxResults() { if (maxResultsBuilder_ == null) { - return maxResults_ == null - ? com.google.protobuf.UInt32Value.getDefaultInstance() - : maxResults_; + return maxResults_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxResults_; } else { return maxResultsBuilder_.getMessage(); } } /** - * - * *
        * Required. Maximum number of results per page.
        * 
* - * - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setMaxResults(com.google.protobuf.UInt32Value value) { if (maxResultsBuilder_ == null) { @@ -3008,17 +2528,14 @@ public Builder setMaxResults(com.google.protobuf.UInt32Value value) { return this; } /** - * - * *
        * Required. Maximum number of results per page.
        * 
* - * - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setMaxResults(com.google.protobuf.UInt32Value.Builder builderForValue) { + public Builder setMaxResults( + com.google.protobuf.UInt32Value.Builder builderForValue) { if (maxResultsBuilder_ == null) { maxResults_ = builderForValue.build(); onChanged(); @@ -3029,23 +2546,17 @@ public Builder setMaxResults(com.google.protobuf.UInt32Value.Builder builderForV return this; } /** - * - * *
        * Required. Maximum number of results per page.
        * 
* - * - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeMaxResults(com.google.protobuf.UInt32Value value) { if (maxResultsBuilder_ == null) { if (maxResults_ != null) { maxResults_ = - com.google.protobuf.UInt32Value.newBuilder(maxResults_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.UInt32Value.newBuilder(maxResults_).mergeFrom(value).buildPartial(); } else { maxResults_ = value; } @@ -3057,15 +2568,11 @@ public Builder mergeMaxResults(com.google.protobuf.UInt32Value value) { return this; } /** - * - * *
        * Required. Maximum number of results per page.
        * 
* - * - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearMaxResults() { if (maxResultsBuilder_ == null) { @@ -3079,64 +2586,48 @@ public Builder clearMaxResults() { return this; } /** - * - * *
        * Required. Maximum number of results per page.
        * 
* - * - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.UInt32Value.Builder getMaxResultsBuilder() { - + onChanged(); return getMaxResultsFieldBuilder().getBuilder(); } /** - * - * *
        * Required. Maximum number of results per page.
        * 
* - * - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.UInt32ValueOrBuilder getMaxResultsOrBuilder() { if (maxResultsBuilder_ != null) { return maxResultsBuilder_.getMessageOrBuilder(); } else { - return maxResults_ == null - ? com.google.protobuf.UInt32Value.getDefaultInstance() - : maxResults_; + return maxResults_ == null ? + com.google.protobuf.UInt32Value.getDefaultInstance() : maxResults_; } } /** - * - * *
        * Required. Maximum number of results per page.
        * 
* - * - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.UInt32Value, - com.google.protobuf.UInt32Value.Builder, - com.google.protobuf.UInt32ValueOrBuilder> + com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> getMaxResultsFieldBuilder() { if (maxResultsBuilder_ == null) { - maxResultsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.UInt32Value, - com.google.protobuf.UInt32Value.Builder, - com.google.protobuf.UInt32ValueOrBuilder>( - getMaxResults(), getParentForChildren(), isClean()); + maxResultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( + getMaxResults(), + getParentForChildren(), + isClean()); maxResults_ = null; } return maxResultsBuilder_; @@ -3144,20 +2635,18 @@ public com.google.protobuf.UInt32ValueOrBuilder getMaxResultsOrBuilder() { private java.lang.Object pageToken_ = ""; /** - * - * *
        * Page 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; @@ -3166,21 +2655,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
        * Page 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 { @@ -3188,66 +2676,58 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
        * Page 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; } /** - * - * *
        * Page token.
        * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
        * Page 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) { @@ -3260,35 +2740,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1beta1.ListConnectionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1beta1.ListConnectionsRequest) - private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest(); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListConnectionsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListConnectionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3300,67 +2775,54 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ListConnectionsResponseOrBuilder - extends + public interface ListConnectionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1beta1.ListConnectionsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Next page token.
      * 
* * string next_page_token = 1; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
      * Next page token.
      * 
* * string next_page_token = 1; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
      * List of connections.
      * 
* * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ - java.util.List + java.util.List getConnectionsList(); /** - * - * *
      * List of connections.
      * 
* * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConnections( - int index); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConnections(int index); /** - * - * *
      * List of connections.
      * 
@@ -3369,49 +2831,40 @@ com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConne */ int getConnectionsCount(); /** - * - * *
      * List of connections.
      * 
* * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ - java.util.List< - ? extends - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> + java.util.List getConnectionsOrBuilderList(); /** - * - * *
      * List of connections.
      * 
* * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder - getConnectionsOrBuilder(int index); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder getConnectionsOrBuilder( + int index); } /** - * - * *
    * The response for [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1beta1.ConnectionService.ListConnections].
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.ListConnectionsResponse} */ - public static final class ListConnectionsResponse extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ListConnectionsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1beta1.ListConnectionsResponse) ListConnectionsResponseOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListConnectionsResponse.newBuilder() to construct. private ListConnectionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListConnectionsResponse() { nextPageToken_ = ""; connections_ = java.util.Collections.emptyList(); @@ -3419,15 +2872,16 @@ private ListConnectionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListConnectionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListConnectionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3447,36 +2901,28 @@ private ListConnectionsResponse( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - connections_ = - new java.util.ArrayList< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .Connection>(); - mutable_bitField0_ |= 0x00000001; - } - connections_.add( - input.readMessage( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection - .parser(), - extensionRegistry)); - break; + nextPageToken_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + connections_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + connections_.add( + input.readMessage(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3484,7 +2930,8 @@ private ListConnectionsResponse( } 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)) { connections_ = java.util.Collections.unmodifiableList(connections_); @@ -3493,35 +2940,27 @@ private ListConnectionsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse - .class, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse - .Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse.Builder.class); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 1; private volatile java.lang.Object nextPageToken_; /** - * - * *
      * Next page token.
      * 
* * string next_page_token = 1; - * * @return The nextPageToken. */ @java.lang.Override @@ -3530,29 +2969,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; } } /** - * - * *
      * Next page token.
      * 
* * string next_page_token = 1; - * * @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 { @@ -3561,11 +3000,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int CONNECTIONS_FIELD_NUMBER = 2; - private java.util.List - connections_; + private java.util.List connections_; /** - * - * *
      * List of connections.
      * 
@@ -3573,13 +3009,10 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ @java.lang.Override - public java.util.List - getConnectionsList() { + public java.util.List getConnectionsList() { return connections_; } /** - * - * *
      * List of connections.
      * 
@@ -3587,15 +3020,11 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> + public java.util.List getConnectionsOrBuilderList() { return connections_; } /** - * - * *
      * List of connections.
      * 
@@ -3607,8 +3036,6 @@ public int getConnectionsCount() { return connections_.size(); } /** - * - * *
      * List of connections.
      * 
@@ -3616,13 +3043,10 @@ public int getConnectionsCount() { * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConnections( - int index) { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConnections(int index) { return connections_.get(index); } /** - * - * *
      * List of connections.
      * 
@@ -3630,13 +3054,12 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection g * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder - getConnectionsOrBuilder(int index) { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder getConnectionsOrBuilder( + int index) { return connections_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3648,7 +3071,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(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nextPageToken_); } @@ -3668,7 +3092,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nextPageToken_); } for (int i = 0; i < connections_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, connections_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, connections_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3678,19 +3103,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.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse)) { + if (!(obj instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse other = - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse) - obj; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse other = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse) obj; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getConnectionsList().equals(other.getConnectionsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getConnectionsList() + .equals(other.getConnectionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3713,114 +3136,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsResponse - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsResponse - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsResponse - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsResponse - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse 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.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsResponse - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsResponse - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsResponse - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsResponse - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsResponse - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsResponse - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + 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.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse - prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse 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 @@ -3830,54 +3227,45 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The response for [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1beta1.ConnectionService.ListConnections].
      * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.ListConnectionsResponse} */ - 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.bigquery.connection.v1beta1.ListConnectionsResponse) - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_descriptor; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse - .class, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse - .Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse.Builder.class); } - // Construct using - // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse.newBuilder() + // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getConnectionsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -3893,23 +3281,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse - getDefaultInstanceForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse - .getDefaultInstance(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse getDefaultInstanceForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse - build() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse - result = buildPartial(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse build() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3917,12 +3301,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse - buildPartial() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse - result = - new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsResponse(this); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse buildPartial() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse result = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse(this); int from_bitField0_ = bitField0_; result.nextPageToken_ = nextPageToken_; if (connectionsBuilder_ == null) { @@ -3942,57 +3322,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 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.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse) { - return mergeFrom( - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse) - other); + if (other instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse) { + return mergeFrom((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse - other) { - if (other - == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse other) { + if (other == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse.getDefaultInstance()) return this; if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; onChanged(); @@ -4015,10 +3384,9 @@ public Builder mergeFrom( connectionsBuilder_ = null; connections_ = other.connections_; bitField0_ = (bitField0_ & ~0x00000001); - connectionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getConnectionsFieldBuilder() - : null; + connectionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConnectionsFieldBuilder() : null; } else { connectionsBuilder_.addAllMessages(other.connections_); } @@ -4039,14 +3407,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse - parsedMessage = null; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4055,25 +3420,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object nextPageToken_ = ""; /** - * - * *
        * Next page token.
        * 
* * string next_page_token = 1; - * * @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; @@ -4082,21 +3444,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
        * Next page token.
        * 
* * string next_page_token = 1; - * * @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 { @@ -4104,97 +3465,79 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
        * Next page token.
        * 
* * string next_page_token = 1; - * * @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; } /** - * - * *
        * Next page token.
        * 
* * string next_page_token = 1; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
        * Next page token.
        * 
* * string next_page_token = 1; - * * @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; } - private java.util.List< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - connections_ = java.util.Collections.emptyList(); - + private java.util.List connections_ = + java.util.Collections.emptyList(); private void ensureConnectionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - connections_ = - new java.util.ArrayList< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection>( - connections_); + connections_ = new java.util.ArrayList(connections_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> - connectionsBuilder_; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> connectionsBuilder_; /** - * - * *
        * List of connections.
        * 
* * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ - public java.util.List - getConnectionsList() { + public java.util.List getConnectionsList() { if (connectionsBuilder_ == null) { return java.util.Collections.unmodifiableList(connections_); } else { @@ -4202,8 +3545,6 @@ private void ensureConnectionsIsMutable() { } } /** - * - * *
        * List of connections.
        * 
@@ -4218,16 +3559,13 @@ public int getConnectionsCount() { } } /** - * - * *
        * List of connections.
        * 
* * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConnections( - int index) { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConnections(int index) { if (connectionsBuilder_ == null) { return connections_.get(index); } else { @@ -4235,8 +3573,6 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection g } } /** - * - * *
        * List of connections.
        * 
@@ -4244,8 +3580,7 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection g * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ public Builder setConnections( - int index, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection value) { + int index, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection value) { if (connectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4259,8 +3594,6 @@ public Builder setConnections( return this; } /** - * - * *
        * List of connections.
        * 
@@ -4268,9 +3601,7 @@ public Builder setConnections( * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ public Builder setConnections( - int index, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder - builderForValue) { + int index, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder builderForValue) { if (connectionsBuilder_ == null) { ensureConnectionsIsMutable(); connections_.set(index, builderForValue.build()); @@ -4281,16 +3612,13 @@ public Builder setConnections( return this; } /** - * - * *
        * List of connections.
        * 
* * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ - public Builder addConnections( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection value) { + public Builder addConnections(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection value) { if (connectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4304,8 +3632,6 @@ public Builder addConnections( return this; } /** - * - * *
        * List of connections.
        * 
@@ -4313,8 +3639,7 @@ public Builder addConnections( * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ public Builder addConnections( - int index, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection value) { + int index, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection value) { if (connectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4328,8 +3653,6 @@ public Builder addConnections( return this; } /** - * - * *
        * List of connections.
        * 
@@ -4337,8 +3660,7 @@ public Builder addConnections( * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ public Builder addConnections( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder - builderForValue) { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder builderForValue) { if (connectionsBuilder_ == null) { ensureConnectionsIsMutable(); connections_.add(builderForValue.build()); @@ -4349,8 +3671,6 @@ public Builder addConnections( return this; } /** - * - * *
        * List of connections.
        * 
@@ -4358,9 +3678,7 @@ public Builder addConnections( * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ public Builder addConnections( - int index, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder - builderForValue) { + int index, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder builderForValue) { if (connectionsBuilder_ == null) { ensureConnectionsIsMutable(); connections_.add(index, builderForValue.build()); @@ -4371,8 +3689,6 @@ public Builder addConnections( return this; } /** - * - * *
        * List of connections.
        * 
@@ -4380,12 +3696,11 @@ public Builder addConnections( * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ public Builder addAllConnections( - java.lang.Iterable< - ? extends com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - values) { + java.lang.Iterable values) { if (connectionsBuilder_ == null) { ensureConnectionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connections_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, connections_); onChanged(); } else { connectionsBuilder_.addAllMessages(values); @@ -4393,8 +3708,6 @@ public Builder addAllConnections( return this; } /** - * - * *
        * List of connections.
        * 
@@ -4412,8 +3725,6 @@ public Builder clearConnections() { return this; } /** - * - * *
        * List of connections.
        * 
@@ -4431,48 +3742,39 @@ public Builder removeConnections(int index) { return this; } /** - * - * *
        * List of connections.
        * 
* * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder - getConnectionsBuilder(int index) { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder getConnectionsBuilder( + int index) { return getConnectionsFieldBuilder().getBuilder(index); } /** - * - * *
        * List of connections.
        * 
* * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder - getConnectionsOrBuilder(int index) { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder getConnectionsOrBuilder( + int index) { if (connectionsBuilder_ == null) { - return connections_.get(index); - } else { + return connections_.get(index); } else { return connectionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * List of connections.
        * 
* * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ - public java.util.List< - ? extends - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> - getConnectionsOrBuilderList() { + public java.util.List + getConnectionsOrBuilderList() { if (connectionsBuilder_ != null) { return connectionsBuilder_.getMessageOrBuilderList(); } else { @@ -4480,64 +3782,45 @@ public Builder removeConnections(int index) { } } /** - * - * *
        * List of connections.
        * 
* * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder - addConnectionsBuilder() { - return getConnectionsFieldBuilder() - .addBuilder( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection - .getDefaultInstance()); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder addConnectionsBuilder() { + return getConnectionsFieldBuilder().addBuilder( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance()); } /** - * - * *
        * List of connections.
        * 
* * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder - addConnectionsBuilder(int index) { - return getConnectionsFieldBuilder() - .addBuilder( - index, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection - .getDefaultInstance()); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder addConnectionsBuilder( + int index) { + return getConnectionsFieldBuilder().addBuilder( + index, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance()); } /** - * - * *
        * List of connections.
        * 
* * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ - public java.util.List< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder> - getConnectionsBuilderList() { + public java.util.List + getConnectionsBuilderList() { return getConnectionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> getConnectionsFieldBuilder() { if (connectionsBuilder_ == null) { - connectionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder>( + connectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder>( connections_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -4546,7 +3829,6 @@ public Builder removeConnections(int index) { } return connectionsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4559,36 +3841,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1beta1.ListConnectionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1beta1.ListConnectionsResponse) - private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsResponse(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse(); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsResponse - getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListConnectionsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListConnectionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4600,162 +3876,124 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse - getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface UpdateConnectionRequestOrBuilder - extends + public interface UpdateConnectionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1beta1.UpdateConnectionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. Name of the connection to update, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
      * Required. Name of the connection to update, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
      * Required. Connection containing the updated fields.
      * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connection field is set. */ boolean hasConnection(); /** - * - * *
      * Required. Connection containing the updated fields.
      * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The connection. */ com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConnection(); /** - * - * *
      * Required. Connection containing the updated fields.
      * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder - getConnectionOrBuilder(); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder getConnectionOrBuilder(); /** - * - * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } /** - * - * *
    * The request for [ConnectionService.UpdateConnection][google.cloud.bigquery.connection.v1beta1.ConnectionService.UpdateConnection].
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.UpdateConnectionRequest} */ - public static final class UpdateConnectionRequest extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class UpdateConnectionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1beta1.UpdateConnectionRequest) UpdateConnectionRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateConnectionRequest.newBuilder() to construct. private UpdateConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateConnectionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateConnectionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateConnectionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4774,54 +4012,45 @@ private UpdateConnectionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder subBuilder = null; + if (connection_ != null) { + subBuilder = connection_.toBuilder(); + } + connection_ = input.readMessage(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(connection_); + connection_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder - subBuilder = null; - if (connection_ != null) { - subBuilder = connection_.toBuilder(); - } - connection_ = - input.readMessage( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(connection_); - connection_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 26: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - case 26: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = 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) { @@ -4829,44 +4058,35 @@ private UpdateConnectionRequest( } 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.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest - .class, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest - .Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
      * Required. Name of the connection to update, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -4875,32 +4095,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Required. Name of the connection to update, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -4911,16 +4129,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CONNECTION_FIELD_NUMBER = 2; private com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection connection_; /** - * - * *
      * Required. Connection containing the updated fields.
      * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connection field is set. */ @java.lang.Override @@ -4928,54 +4141,37 @@ public boolean hasConnection() { return connection_ != null; } /** - * - * *
      * Required. Connection containing the updated fields.
      * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The connection. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConnection() { - return connection_ == null - ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection - .getDefaultInstance() - : connection_; + return connection_ == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance() : connection_; } /** - * - * *
      * Required. Connection containing the updated fields.
      * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder - getConnectionOrBuilder() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder getConnectionOrBuilder() { return getConnection(); } public static final int UPDATE_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -4983,15 +4179,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -4999,14 +4191,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -5014,7 +4203,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5026,7 +4214,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_); } @@ -5049,10 +4238,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (connection_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConnection()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConnection()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5062,25 +4253,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.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest)) { + if (!(obj instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest other = - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest) - obj; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest other = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasConnection() != other.hasConnection()) return false; if (hasConnection()) { - if (!getConnection().equals(other.getConnection())) return false; + if (!getConnection() + .equals(other.getConnection())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -5108,114 +4298,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest 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.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest - prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest 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 @@ -5225,52 +4389,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The request for [ConnectionService.UpdateConnection][google.cloud.bigquery.connection.v1beta1.ConnectionService.UpdateConnection].
      * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.UpdateConnectionRequest} */ - 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.bigquery.connection.v1beta1.UpdateConnectionRequest) - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_descriptor; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest - .class, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest - .Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest.newBuilder() + // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -5292,23 +4448,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest - build() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest - result = buildPartial(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest build() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -5316,12 +4468,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest - buildPartial() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest - result = - new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionRequest(this); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest buildPartial() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest result = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest(this); result.name_ = name_; if (connectionBuilder_ == null) { result.connection_ = connection_; @@ -5341,57 +4489,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 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.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest) { - return mergeFrom( - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest) - other); + if (other instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest) { + return mergeFrom((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest - other) { - if (other - == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest other) { + if (other == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -5417,14 +4554,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest - parsedMessage = null; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5436,23 +4570,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
        * Required. Name of the connection to update, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -5461,24 +4591,21 @@ public java.lang.String getName() { } } /** - * - * *
        * Required. Name of the connection to update, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -5486,70 +4613,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Required. Name of the connection to update, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
        * Required. Name of the connection to update, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
        * Required. Name of the connection to update, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + 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; @@ -5557,63 +4671,41 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection connection_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> - connectionBuilder_; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> connectionBuilder_; /** - * - * *
        * Required. Connection containing the updated fields.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connection field is set. */ public boolean hasConnection() { return connectionBuilder_ != null || connection_ != null; } /** - * - * *
        * Required. Connection containing the updated fields.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The connection. */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection - getConnection() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConnection() { if (connectionBuilder_ == null) { - return connection_ == null - ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection - .getDefaultInstance() - : connection_; + return connection_ == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance() : connection_; } else { return connectionBuilder_.getMessage(); } } /** - * - * *
        * Required. Connection containing the updated fields.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection value) { + public Builder setConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection value) { if (connectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5627,19 +4719,14 @@ public Builder setConnection( return this; } /** - * - * *
        * Required. Connection containing the updated fields.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder - builderForValue) { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder builderForValue) { if (connectionBuilder_ == null) { connection_ = builderForValue.build(); onChanged(); @@ -5650,25 +4737,17 @@ public Builder setConnection( return this; } /** - * - * *
        * Required. Connection containing the updated fields.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection value) { + public Builder mergeConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection value) { if (connectionBuilder_ == null) { if (connection_ != null) { connection_ = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.newBuilder( - connection_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.newBuilder(connection_).mergeFrom(value).buildPartial(); } else { connection_ = value; } @@ -5680,15 +4759,11 @@ public Builder mergeConnection( return this; } /** - * - * *
        * Required. Connection containing the updated fields.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConnection() { if (connectionBuilder_ == null) { @@ -5702,67 +4777,48 @@ public Builder clearConnection() { return this; } /** - * - * *
        * Required. Connection containing the updated fields.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder - getConnectionBuilder() { - + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder getConnectionBuilder() { + onChanged(); return getConnectionFieldBuilder().getBuilder(); } /** - * - * *
        * Required. Connection containing the updated fields.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder - getConnectionOrBuilder() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder getConnectionOrBuilder() { if (connectionBuilder_ != null) { return connectionBuilder_.getMessageOrBuilder(); } else { - return connection_ == null - ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection - .getDefaultInstance() - : connection_; + return connection_ == null ? + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance() : connection_; } } /** - * - * *
        * Required. Connection containing the updated fields.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> getConnectionFieldBuilder() { if (connectionBuilder_ == null) { - connectionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder>( - getConnection(), getParentForChildren(), isClean()); + connectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder>( + getConnection(), + getParentForChildren(), + isClean()); connection_ = null; } return connectionBuilder_; @@ -5770,55 +4826,39 @@ public Builder clearConnection() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
        * Required. Update mask for the connection fields to be updated.
        * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
        * Required. Update mask for the connection fields to be updated.
        * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
        * Required. Update mask for the connection fields to be updated.
        * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -5834,16 +4874,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
        * Required. Update mask for the connection fields to be updated.
        * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -5854,22 +4892,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
        * Required. Update mask for the connection fields to be updated.
        * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -5881,14 +4914,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
        * Required. Update mask for the connection fields to be updated.
        * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -5902,66 +4932,52 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
        * Required. Update mask for the connection fields to be updated.
        * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
        * Required. Update mask for the connection fields to be updated.
        * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
        * Required. Update mask for the connection fields to be updated.
        * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5974,36 +4990,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1beta1.UpdateConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1beta1.UpdateConnectionRequest) - private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionRequest(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest(); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateConnectionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateConnectionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6015,124 +5025,97 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface UpdateConnectionCredentialRequestOrBuilder - extends + public interface UpdateConnectionCredentialRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1beta1.UpdateConnectionCredentialRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. Name of the connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}/credential`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * Required. Name of the connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}/credential`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
      * Required. Credential to use with the connection.
      * 
* - * - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the credential field is set. */ boolean hasCredential(); /** - * - * *
      * Required. Credential to use with the connection.
      * 
* - * - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The credential. */ - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - getCredential(); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential getCredential(); /** - * - * *
      * Required. Credential to use with the connection.
      * 
* - * - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredentialOrBuilder - getCredentialOrBuilder(); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredentialOrBuilder getCredentialOrBuilder(); } /** - * - * *
    * The request for [ConnectionService.UpdateConnectionCredential][google.cloud.bigquery.connection.v1beta1.ConnectionService.UpdateConnectionCredential].
    * 
* - * Protobuf type {@code - * google.cloud.bigquery.connection.v1beta1.UpdateConnectionCredentialRequest} + * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.UpdateConnectionCredentialRequest} */ - public static final class UpdateConnectionCredentialRequest - extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class UpdateConnectionCredentialRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1beta1.UpdateConnectionCredentialRequest) UpdateConnectionCredentialRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateConnectionCredentialRequest.newBuilder() to construct. - private UpdateConnectionCredentialRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateConnectionCredentialRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateConnectionCredentialRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateConnectionCredentialRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateConnectionCredentialRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -6151,40 +5134,32 @@ private UpdateConnectionCredentialRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.Builder subBuilder = null; + if (credential_ != null) { + subBuilder = credential_.toBuilder(); } - case 18: - { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - .Builder - subBuilder = null; - if (credential_ != null) { - subBuilder = credential_.toBuilder(); - } - credential_ = - input.readMessage( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ConnectionCredential.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(credential_); - credential_ = subBuilder.buildPartial(); - } - - break; + credential_ = input.readMessage(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(credential_); + credential_ = 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) { @@ -6192,42 +5167,35 @@ private UpdateConnectionCredentialRequest( } 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.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest.class, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest.Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
      * Required. Name of the connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}/credential`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -6236,30 +5204,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Required. Name of the connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}/credential`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -6268,19 +5236,13 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int CREDENTIAL_FIELD_NUMBER = 2; - private com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - credential_; + private com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential credential_; /** - * - * *
      * Required. Credential to use with the connection.
      * 
* - * - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the credential field is set. */ @java.lang.Override @@ -6288,46 +5250,30 @@ public boolean hasCredential() { return credential_ != null; } /** - * - * *
      * Required. Credential to use with the connection.
      * 
* - * - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The credential. */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - getCredential() { - return credential_ == null - ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - .getDefaultInstance() - : credential_; + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential getCredential() { + return credential_ == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.getDefaultInstance() : credential_; } /** - * - * *
      * Required. Credential to use with the connection.
      * 
* - * - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ConnectionCredentialOrBuilder - getCredentialOrBuilder() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredentialOrBuilder getCredentialOrBuilder() { return getCredential(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6339,7 +5285,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_); } @@ -6359,7 +5306,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (credential_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCredential()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCredential()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -6369,24 +5317,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.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest)) { + if (!(obj instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest - other = - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest) - obj; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest other = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCredential() != other.hasCredential()) return false; if (hasCredential()) { - if (!getCredential().equals(other.getCredential())) return false; + if (!getCredential() + .equals(other.getCredential())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -6410,115 +5353,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest 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.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + 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.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest - prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest 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 @@ -6528,53 +5444,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The request for [ConnectionService.UpdateConnectionCredential][google.cloud.bigquery.connection.v1beta1.ConnectionService.UpdateConnectionCredential].
      * 
* - * Protobuf type {@code - * google.cloud.bigquery.connection.v1beta1.UpdateConnectionCredentialRequest} + * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.UpdateConnectionCredentialRequest} */ - 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.bigquery.connection.v1beta1.UpdateConnectionCredentialRequest) - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_descriptor; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest.class, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest.Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest.newBuilder() + // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -6590,26 +5497,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest.getDefaultInstance(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest - build() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest - result = buildPartial(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest build() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -6617,14 +5517,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest - buildPartial() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest - result = - new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest(this); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest buildPartial() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest result = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest(this); result.name_ = name_; if (credentialBuilder_ == null) { result.credential_ = credential_; @@ -6639,60 +5533,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 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.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest) { - return mergeFrom( - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest) - other); + if (other instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest) { + return mergeFrom((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest - other) { - if (other - == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest other) { + if (other == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -6715,16 +5595,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest - parsedMessage = null; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -6736,21 +5611,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
        * Required. Name of the connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}/credential`
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -6759,22 +5632,21 @@ public java.lang.String getName() { } } /** - * - * *
        * Required. Name of the connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}/credential`
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -6782,131 +5654,99 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Required. Name of the connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}/credential`
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
        * Required. Name of the connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}/credential`
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
        * Required. Name of the connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}/credential`
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - credential_; + private com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential credential_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - .Builder, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ConnectionCredentialOrBuilder> - credentialBuilder_; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredentialOrBuilder> credentialBuilder_; /** - * - * *
        * Required. Credential to use with the connection.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the credential field is set. */ public boolean hasCredential() { return credentialBuilder_ != null || credential_ != null; } /** - * - * *
        * Required. Credential to use with the connection.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The credential. */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - getCredential() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential getCredential() { if (credentialBuilder_ == null) { - return credential_ == null - ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - .getDefaultInstance() - : credential_; + return credential_ == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.getDefaultInstance() : credential_; } else { return credentialBuilder_.getMessage(); } } /** - * - * *
        * Required. Credential to use with the connection.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setCredential( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential value) { + public Builder setCredential(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential value) { if (credentialBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6920,19 +5760,14 @@ public Builder setCredential( return this; } /** - * - * *
        * Required. Credential to use with the connection.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCredential( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.Builder - builderForValue) { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.Builder builderForValue) { if (credentialBuilder_ == null) { credential_ = builderForValue.build(); onChanged(); @@ -6943,25 +5778,17 @@ public Builder setCredential( return this; } /** - * - * *
        * Required. Credential to use with the connection.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeCredential( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential value) { + public Builder mergeCredential(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential value) { if (credentialBuilder_ == null) { if (credential_ != null) { credential_ = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - .newBuilder(credential_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.newBuilder(credential_).mergeFrom(value).buildPartial(); } else { credential_ = value; } @@ -6973,15 +5800,11 @@ public Builder mergeCredential( return this; } /** - * - * *
        * Required. Credential to use with the connection.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCredential() { if (credentialBuilder_ == null) { @@ -6995,78 +5818,52 @@ public Builder clearCredential() { return this; } /** - * - * *
        * Required. Credential to use with the connection.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - .Builder - getCredentialBuilder() { - + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.Builder getCredentialBuilder() { + onChanged(); return getCredentialFieldBuilder().getBuilder(); } /** - * - * *
        * Required. Credential to use with the connection.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ConnectionCredentialOrBuilder - getCredentialOrBuilder() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredentialOrBuilder getCredentialOrBuilder() { if (credentialBuilder_ != null) { return credentialBuilder_.getMessageOrBuilder(); } else { - return credential_ == null - ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - .getDefaultInstance() - : credential_; + return credential_ == null ? + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.getDefaultInstance() : credential_; } } /** - * - * *
        * Required. Credential to use with the connection.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - .Builder, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ConnectionCredentialOrBuilder> + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredentialOrBuilder> getCredentialFieldBuilder() { if (credentialBuilder_ == null) { - credentialBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - .Builder, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ConnectionCredentialOrBuilder>( - getCredential(), getParentForChildren(), isClean()); + credentialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredentialOrBuilder>( + getCredential(), + getParentForChildren(), + isClean()); credential_ = null; } return credentialBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7079,36 +5876,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1beta1.UpdateConnectionCredentialRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1beta1.UpdateConnectionCredentialRequest) - private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest(); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateConnectionCredentialRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateConnectionCredentialRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateConnectionCredentialRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateConnectionCredentialRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7120,83 +5911,70 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface DeleteConnectionRequestOrBuilder - extends + public interface DeleteConnectionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1beta1.DeleteConnectionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. Name of the deleted connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
      * Required. Name of the deleted connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } /** - * - * *
    * The request for [ConnectionService.DeleteConnectionRequest][].
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.DeleteConnectionRequest} */ - public static final class DeleteConnectionRequest extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class DeleteConnectionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1beta1.DeleteConnectionRequest) DeleteConnectionRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteConnectionRequest.newBuilder() to construct. private DeleteConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteConnectionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteConnectionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteConnectionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -7215,20 +5993,19 @@ private DeleteConnectionRequest( 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) { @@ -7236,44 +6013,35 @@ private DeleteConnectionRequest( } 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.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest - .class, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest - .Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
      * Required. Name of the deleted connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -7282,32 +6050,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Required. Name of the deleted connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -7316,7 +6082,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7328,7 +6093,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_); } @@ -7352,18 +6118,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.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest)) { + if (!(obj instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest other = - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest) - obj; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest other = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -7382,114 +6145,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .DeleteConnectionRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .DeleteConnectionRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .DeleteConnectionRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .DeleteConnectionRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest 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.bigquery.connection.v1beta1.ConnectionProto - .DeleteConnectionRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .DeleteConnectionRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .DeleteConnectionRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .DeleteConnectionRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .DeleteConnectionRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .DeleteConnectionRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .DeleteConnectionRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .DeleteConnectionRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + 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.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest - prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest 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 @@ -7499,52 +6236,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The request for [ConnectionService.DeleteConnectionRequest][].
      * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.DeleteConnectionRequest} */ - 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.bigquery.connection.v1beta1.DeleteConnectionRequest) - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .DeleteConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_descriptor; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest - .class, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest - .Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest.newBuilder() + // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -7554,23 +6283,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest - build() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest - result = buildPartial(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest build() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -7578,12 +6303,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest - buildPartial() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest - result = - new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .DeleteConnectionRequest(this); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest buildPartial() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest result = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -7593,57 +6314,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 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.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest) { - return mergeFrom( - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest) - other); + if (other instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest) { + return mergeFrom((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest - other) { - if (other - == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest other) { + if (other == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -7663,14 +6373,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest - parsedMessage = null; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -7682,23 +6389,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
        * Required. Name of the deleted connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -7707,24 +6410,21 @@ public java.lang.String getName() { } } /** - * - * *
        * Required. Name of the deleted connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -7732,75 +6432,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Required. Name of the deleted connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
        * Required. Name of the deleted connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
        * Required. Name of the deleted connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + 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) { @@ -7813,36 +6499,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1beta1.DeleteConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1beta1.DeleteConnectionRequest) - private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .DeleteConnectionRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .DeleteConnectionRequest(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest(); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .DeleteConnectionRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteConnectionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteConnectionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7854,175 +6534,138 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ConnectionOrBuilder - extends + public interface ConnectionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1beta1.Connection) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The resource name of the connection in the form of:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * The resource name of the connection in the form of:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
      * User provided display name for the connection.
      * 
* * string friendly_name = 2; - * * @return The friendlyName. */ java.lang.String getFriendlyName(); /** - * - * *
      * User provided display name for the connection.
      * 
* * string friendly_name = 2; - * * @return The bytes for friendlyName. */ - com.google.protobuf.ByteString getFriendlyNameBytes(); + com.google.protobuf.ByteString + getFriendlyNameBytes(); /** - * - * *
      * User provided description.
      * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
      * User provided description.
      * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
      * Cloud SQL properties.
      * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4; - * * @return Whether the cloudSql field is set. */ boolean hasCloudSql(); /** - * - * *
      * Cloud SQL properties.
      * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4; - * * @return The cloudSql. */ com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties getCloudSql(); /** - * - * *
      * Cloud SQL properties.
      * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4; */ - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlPropertiesOrBuilder - getCloudSqlOrBuilder(); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlPropertiesOrBuilder getCloudSqlOrBuilder(); /** - * - * *
      * Output only. The creation timestamp of the connection.
      * 
* * int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The creationTime. */ long getCreationTime(); /** - * - * *
      * Output only. The last update timestamp of the connection.
      * 
* * int64 last_modified_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The lastModifiedTime. */ long getLastModifiedTime(); /** - * - * *
      * Output only. True, if credential is configured for this connection.
      * 
* * bool has_credential = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The hasCredential. */ boolean getHasCredential(); - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.PropertiesCase - getPropertiesCase(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.PropertiesCase getPropertiesCase(); } /** - * - * *
    * Configuration parameters to establish connection with an external data
    * source, except the credential attributes.
@@ -8030,16 +6673,15 @@ public interface ConnectionOrBuilder
    *
    * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.Connection}
    */
-  public static final class Connection extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class Connection extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1beta1.Connection)
       ConnectionOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Connection.newBuilder() to construct.
     private Connection(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private Connection() {
       name_ = "";
       friendlyName_ = "";
@@ -8048,15 +6690,16 @@ private Connection() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Connection();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private Connection(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -8075,76 +6718,60 @@ private Connection(
             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();
 
-                friendlyName_ = s;
-                break;
-              }
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              friendlyName_ = s;
+              break;
+            }
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                description_ = s;
-                break;
-              }
-            case 34:
-              {
-                com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties
-                        .Builder
-                    subBuilder = null;
-                if (propertiesCase_ == 4) {
-                  subBuilder =
-                      ((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto
-                                  .CloudSqlProperties)
-                              properties_)
-                          .toBuilder();
-                }
-                properties_ =
-                    input.readMessage(
-                        com.google.cloud.bigquery.connection.v1beta1.ConnectionProto
-                            .CloudSqlProperties.parser(),
-                        extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(
-                      (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto
-                              .CloudSqlProperties)
-                          properties_);
-                  properties_ = subBuilder.buildPartial();
-                }
-                propertiesCase_ = 4;
-                break;
-              }
-            case 40:
-              {
-                creationTime_ = input.readInt64();
-                break;
-              }
-            case 48:
-              {
-                lastModifiedTime_ = input.readInt64();
-                break;
+              description_ = s;
+              break;
+            }
+            case 34: {
+              com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.Builder subBuilder = null;
+              if (propertiesCase_ == 4) {
+                subBuilder = ((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) properties_).toBuilder();
               }
-            case 56:
-              {
-                hasCredential_ = input.readBool();
-                break;
+              properties_ =
+                  input.readMessage(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) properties_);
+                properties_ = subBuilder.buildPartial();
               }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              propertiesCase_ = 4;
+              break;
+            }
+            case 40: {
+
+              creationTime_ = input.readInt64();
+              break;
+            }
+            case 48: {
+
+              lastModifiedTime_ = input.readInt64();
+              break;
+            }
+            case 56: {
+
+              hasCredential_ = input.readBool();
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -8152,40 +6779,34 @@ private Connection(
       } 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.bigquery.connection.v1beta1.ConnectionProto
-          .internal_static_google_cloud_bigquery_connection_v1beta1_Connection_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_Connection_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto
-          .internal_static_google_cloud_bigquery_connection_v1beta1_Connection_fieldAccessorTable
+      return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_Connection_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class,
-              com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder
-                  .class);
+              com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder.class);
     }
 
     private int propertiesCase_ = 0;
     private java.lang.Object properties_;
-
     public enum PropertiesCase
-        implements
-            com.google.protobuf.Internal.EnumLite,
+        implements com.google.protobuf.Internal.EnumLite,
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       CLOUD_SQL(4),
       PROPERTIES_NOT_SET(0);
       private final int value;
-
       private PropertiesCase(int value) {
         this.value = value;
       }
@@ -8201,36 +6822,31 @@ public static PropertiesCase valueOf(int value) {
 
       public static PropertiesCase forNumber(int value) {
         switch (value) {
-          case 4:
-            return CLOUD_SQL;
-          case 0:
-            return PROPERTIES_NOT_SET;
-          default:
-            return null;
+          case 4: return CLOUD_SQL;
+          case 0: return PROPERTIES_NOT_SET;
+          default: return null;
         }
       }
-
       public int getNumber() {
         return this.value;
       }
     };
 
-    public PropertiesCase getPropertiesCase() {
-      return PropertiesCase.forNumber(propertiesCase_);
+    public PropertiesCase
+    getPropertiesCase() {
+      return PropertiesCase.forNumber(
+          propertiesCase_);
     }
 
     public static final int NAME_FIELD_NUMBER = 1;
     private volatile java.lang.Object name_;
     /**
-     *
-     *
      * 
      * The resource name of the connection in the form of:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -8239,30 +6855,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * The resource name of the connection in the form of:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* * 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 { @@ -8273,14 +6889,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int FRIENDLY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object friendlyName_; /** - * - * *
      * User provided display name for the connection.
      * 
* * string friendly_name = 2; - * * @return The friendlyName. */ @java.lang.Override @@ -8289,29 +6902,29 @@ public java.lang.String getFriendlyName() { 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(); friendlyName_ = s; return s; } } /** - * - * *
      * User provided display name for the connection.
      * 
* * string friendly_name = 2; - * * @return The bytes for friendlyName. */ @java.lang.Override - public com.google.protobuf.ByteString getFriendlyNameBytes() { + public com.google.protobuf.ByteString + getFriendlyNameBytes() { java.lang.Object ref = friendlyName_; 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); friendlyName_ = b; return b; } else { @@ -8322,14 +6935,11 @@ public com.google.protobuf.ByteString getFriendlyNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
      * User provided description.
      * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -8338,29 +6948,29 @@ public java.lang.String getDescription() { 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(); description_ = s; return s; } } /** - * - * *
      * User provided description.
      * 
* * string description = 3; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; 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); description_ = b; return b; } else { @@ -8370,14 +6980,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int CLOUD_SQL_FIELD_NUMBER = 4; /** - * - * *
      * Cloud SQL properties.
      * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4; - * * @return Whether the cloudSql field is set. */ @java.lang.Override @@ -8385,29 +6992,21 @@ public boolean hasCloudSql() { return propertiesCase_ == 4; } /** - * - * *
      * Cloud SQL properties.
      * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4; - * * @return The cloudSql. */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - getCloudSql() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties getCloudSql() { if (propertiesCase_ == 4) { - return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) - properties_; + return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) properties_; } - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .getDefaultInstance(); + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.getDefaultInstance(); } /** - * - * *
      * Cloud SQL properties.
      * 
@@ -8415,27 +7014,21 @@ public boolean hasCloudSql() { * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlPropertiesOrBuilder - getCloudSqlOrBuilder() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlPropertiesOrBuilder getCloudSqlOrBuilder() { if (propertiesCase_ == 4) { - return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) - properties_; + return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) properties_; } - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .getDefaultInstance(); + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.getDefaultInstance(); } public static final int CREATION_TIME_FIELD_NUMBER = 5; private long creationTime_; /** - * - * *
      * Output only. The creation timestamp of the connection.
      * 
* * int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The creationTime. */ @java.lang.Override @@ -8446,14 +7039,11 @@ public long getCreationTime() { public static final int LAST_MODIFIED_TIME_FIELD_NUMBER = 6; private long lastModifiedTime_; /** - * - * *
      * Output only. The last update timestamp of the connection.
      * 
* * int64 last_modified_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The lastModifiedTime. */ @java.lang.Override @@ -8464,14 +7054,11 @@ public long getLastModifiedTime() { public static final int HAS_CREDENTIAL_FIELD_NUMBER = 7; private boolean hasCredential_; /** - * - * *
      * Output only. True, if credential is configured for this connection.
      * 
* * bool has_credential = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The hasCredential. */ @java.lang.Override @@ -8480,7 +7067,6 @@ public boolean getHasCredential() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8492,7 +7078,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_); } @@ -8503,10 +7090,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } if (propertiesCase_ == 4) { - output.writeMessage( - 4, - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) - properties_); + output.writeMessage(4, (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) properties_); } if (creationTime_ != 0L) { output.writeInt64(5, creationTime_); @@ -8536,20 +7120,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (propertiesCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) - properties_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) properties_); } if (creationTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, creationTime_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, creationTime_); } if (lastModifiedTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, lastModifiedTime_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, lastModifiedTime_); } if (hasCredential_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, hasCredential_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, hasCredential_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -8559,25 +7143,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.bigquery.connection.v1beta1.ConnectionProto.Connection)) { + if (!(obj instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection other = - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection) obj; - - if (!getName().equals(other.getName())) return false; - if (!getFriendlyName().equals(other.getFriendlyName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (getCreationTime() != other.getCreationTime()) return false; - if (getLastModifiedTime() != other.getLastModifiedTime()) return false; - if (getHasCredential() != other.getHasCredential()) return false; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection other = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getFriendlyName() + .equals(other.getFriendlyName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (getCreationTime() + != other.getCreationTime()) return false; + if (getLastModifiedTime() + != other.getLastModifiedTime()) return false; + if (getHasCredential() + != other.getHasCredential()) return false; if (!getPropertiesCase().equals(other.getPropertiesCase())) return false; switch (propertiesCase_) { case 4: - if (!getCloudSql().equals(other.getCloudSql())) return false; + if (!getCloudSql() + .equals(other.getCloudSql())) return false; break; case 0: default: @@ -8600,11 +7189,14 @@ public int hashCode() { hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + CREATION_TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCreationTime()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCreationTime()); hash = (37 * hash) + LAST_MODIFIED_TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLastModifiedTime()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLastModifiedTime()); hash = (37 * hash) + HAS_CREDENTIAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasCredential()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHasCredential()); switch (propertiesCase_) { case 4: hash = (37 * hash) + CLOUD_SQL_FIELD_NUMBER; @@ -8619,95 +7211,87 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection 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.bigquery.connection.v1beta1.ConnectionProto.Connection 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.bigquery.connection.v1beta1.ConnectionProto.Connection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection 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.bigquery.connection.v1beta1.ConnectionProto.Connection parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection 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.bigquery.connection.v1beta1.ConnectionProto.Connection parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection 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.bigquery.connection.v1beta1.ConnectionProto.Connection - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection 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.bigquery.connection.v1beta1.ConnectionProto.Connection 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.bigquery.connection.v1beta1.ConnectionProto.Connection prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection 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 @@ -8717,8 +7301,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Configuration parameters to establish connection with an external data
      * source, except the credential attributes.
@@ -8726,42 +7308,38 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.Connection}
      */
-    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.bigquery.connection.v1beta1.Connection)
         com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto
-            .internal_static_google_cloud_bigquery_connection_v1beta1_Connection_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_Connection_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto
-            .internal_static_google_cloud_bigquery_connection_v1beta1_Connection_fieldAccessorTable
+        return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_Connection_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class,
-                com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder
-                    .class);
+                com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.newBuilder()
+      // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -8783,22 +7361,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto
-            .internal_static_google_cloud_bigquery_connection_v1beta1_Connection_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_Connection_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection
-          getDefaultInstanceForType() {
-        return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection
-            .getDefaultInstance();
+      public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getDefaultInstanceForType() {
+        return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection build() {
-        com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection result =
-            buildPartial();
+        com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -8806,10 +7381,8 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection b
       }
 
       @java.lang.Override
-      public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection
-          buildPartial() {
-        com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection result =
-            new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection(this);
+      public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection buildPartial() {
+        com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection result = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection(this);
         result.name_ = name_;
         result.friendlyName_ = friendlyName_;
         result.description_ = description_;
@@ -8832,54 +7405,46 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection b
       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.bigquery.connection.v1beta1.ConnectionProto.Connection) {
-          return mergeFrom(
-              (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection) other);
+        if (other instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection) {
+          return mergeFrom((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection other) {
-        if (other
-            == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection other) {
+        if (other == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance()) return this;
         if (!other.getName().isEmpty()) {
           name_ = other.name_;
           onChanged();
@@ -8902,15 +7467,13 @@ public Builder mergeFrom(
           setHasCredential(other.getHasCredential());
         }
         switch (other.getPropertiesCase()) {
-          case CLOUD_SQL:
-            {
-              mergeCloudSql(other.getCloudSql());
-              break;
-            }
-          case PROPERTIES_NOT_SET:
-            {
-              break;
-            }
+          case CLOUD_SQL: {
+            mergeCloudSql(other.getCloudSql());
+            break;
+          }
+          case PROPERTIES_NOT_SET: {
+            break;
+          }
         }
         this.mergeUnknownFields(other.unknownFields);
         onChanged();
@@ -8927,14 +7490,11 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection parsedMessage =
-            null;
+        com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection parsedMessage = null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -8943,12 +7503,12 @@ public Builder mergeFrom(
         }
         return this;
       }
-
       private int propertiesCase_ = 0;
       private java.lang.Object properties_;
-
-      public PropertiesCase getPropertiesCase() {
-        return PropertiesCase.forNumber(propertiesCase_);
+      public PropertiesCase
+          getPropertiesCase() {
+        return PropertiesCase.forNumber(
+            propertiesCase_);
       }
 
       public Builder clearProperties() {
@@ -8958,23 +7518,22 @@ public Builder clearProperties() {
         return this;
       }
 
+
       private java.lang.Object name_ = "";
       /**
-       *
-       *
        * 
        * The resource name of the connection in the form of:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* * 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; @@ -8983,22 +7542,21 @@ public java.lang.String getName() { } } /** - * - * *
        * The resource name of the connection in the form of:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* * 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 { @@ -9006,64 +7564,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * The resource name of the connection in the form of:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* * 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 of the connection in the form of:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
        * The resource name of the connection in the form of:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* * 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; @@ -9071,20 +7622,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object friendlyName_ = ""; /** - * - * *
        * User provided display name for the connection.
        * 
* * string friendly_name = 2; - * * @return The friendlyName. */ public java.lang.String getFriendlyName() { java.lang.Object ref = friendlyName_; 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(); friendlyName_ = s; return s; @@ -9093,21 +7642,20 @@ public java.lang.String getFriendlyName() { } } /** - * - * *
        * User provided display name for the connection.
        * 
* * string friendly_name = 2; - * * @return The bytes for friendlyName. */ - public com.google.protobuf.ByteString getFriendlyNameBytes() { + public com.google.protobuf.ByteString + getFriendlyNameBytes() { java.lang.Object ref = friendlyName_; 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); friendlyName_ = b; return b; } else { @@ -9115,61 +7663,54 @@ public com.google.protobuf.ByteString getFriendlyNameBytes() { } } /** - * - * *
        * User provided display name for the connection.
        * 
* * string friendly_name = 2; - * * @param value The friendlyName to set. * @return This builder for chaining. */ - public Builder setFriendlyName(java.lang.String value) { + public Builder setFriendlyName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + friendlyName_ = value; onChanged(); return this; } /** - * - * *
        * User provided display name for the connection.
        * 
* * string friendly_name = 2; - * * @return This builder for chaining. */ public Builder clearFriendlyName() { - + friendlyName_ = getDefaultInstance().getFriendlyName(); onChanged(); return this; } /** - * - * *
        * User provided display name for the connection.
        * 
* * string friendly_name = 2; - * * @param value The bytes for friendlyName to set. * @return This builder for chaining. */ - public Builder setFriendlyNameBytes(com.google.protobuf.ByteString value) { + public Builder setFriendlyNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + friendlyName_ = value; onChanged(); return this; @@ -9177,20 +7718,18 @@ public Builder setFriendlyNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
        * User provided description.
        * 
* * string description = 3; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; @@ -9199,21 +7738,20 @@ public java.lang.String getDescription() { } } /** - * - * *
        * User provided description.
        * 
* * string description = 3; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; 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); description_ = b; return b; } else { @@ -9221,82 +7759,67 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
        * User provided description.
        * 
* * string description = 3; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
        * User provided description.
        * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
        * User provided description.
        * 
* * string description = 3; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .Builder, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CloudSqlPropertiesOrBuilder> - cloudSqlBuilder_; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlPropertiesOrBuilder> cloudSqlBuilder_; /** - * - * *
        * Cloud SQL properties.
        * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4; - * * @return Whether the cloudSql field is set. */ @java.lang.Override @@ -9304,45 +7827,35 @@ public boolean hasCloudSql() { return propertiesCase_ == 4; } /** - * - * *
        * Cloud SQL properties.
        * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4; - * * @return The cloudSql. */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - getCloudSql() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties getCloudSql() { if (cloudSqlBuilder_ == null) { if (propertiesCase_ == 4) { - return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) - properties_; + return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) properties_; } - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .getDefaultInstance(); + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.getDefaultInstance(); } else { if (propertiesCase_ == 4) { return cloudSqlBuilder_.getMessage(); } - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .getDefaultInstance(); + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.getDefaultInstance(); } } /** - * - * *
        * Cloud SQL properties.
        * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4; */ - public Builder setCloudSql( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties value) { + public Builder setCloudSql(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties value) { if (cloudSqlBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9356,8 +7869,6 @@ public Builder setCloudSql( return this; } /** - * - * *
        * Cloud SQL properties.
        * 
@@ -9365,8 +7876,7 @@ public Builder setCloudSql( * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4; */ public Builder setCloudSql( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.Builder - builderForValue) { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.Builder builderForValue) { if (cloudSqlBuilder_ == null) { properties_ = builderForValue.build(); onChanged(); @@ -9377,29 +7887,18 @@ public Builder setCloudSql( return this; } /** - * - * *
        * Cloud SQL properties.
        * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4; */ - public Builder mergeCloudSql( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties value) { + public Builder mergeCloudSql(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties value) { if (cloudSqlBuilder_ == null) { - if (propertiesCase_ == 4 - && properties_ - != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .getDefaultInstance()) { - properties_ = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .newBuilder( - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CloudSqlProperties) - properties_) - .mergeFrom(value) - .buildPartial(); + if (propertiesCase_ == 4 && + properties_ != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.getDefaultInstance()) { + properties_ = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.newBuilder((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) properties_) + .mergeFrom(value).buildPartial(); } else { properties_ = value; } @@ -9415,8 +7914,6 @@ public Builder mergeCloudSql( return this; } /** - * - * *
        * Cloud SQL properties.
        * 
@@ -9440,21 +7937,16 @@ public Builder clearCloudSql() { return this; } /** - * - * *
        * Cloud SQL properties.
        * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4; */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.Builder - getCloudSqlBuilder() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.Builder getCloudSqlBuilder() { return getCloudSqlFieldBuilder().getBuilder(); } /** - * - * *
        * Cloud SQL properties.
        * 
@@ -9462,23 +7954,17 @@ public Builder clearCloudSql() { * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CloudSqlPropertiesOrBuilder - getCloudSqlOrBuilder() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlPropertiesOrBuilder getCloudSqlOrBuilder() { if ((propertiesCase_ == 4) && (cloudSqlBuilder_ != null)) { return cloudSqlBuilder_.getMessageOrBuilder(); } else { if (propertiesCase_ == 4) { - return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) - properties_; + return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) properties_; } - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .getDefaultInstance(); + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.getDefaultInstance(); } } /** - * - * *
        * Cloud SQL properties.
        * 
@@ -9486,47 +7972,31 @@ public Builder clearCloudSql() { * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .Builder, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CloudSqlPropertiesOrBuilder> + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlPropertiesOrBuilder> getCloudSqlFieldBuilder() { if (cloudSqlBuilder_ == null) { if (!(propertiesCase_ == 4)) { - properties_ = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .getDefaultInstance(); + properties_ = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.getDefaultInstance(); } - cloudSqlBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .Builder, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CloudSqlPropertiesOrBuilder>( - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) - properties_, + cloudSqlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlPropertiesOrBuilder>( + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) properties_, getParentForChildren(), isClean()); properties_ = null; } propertiesCase_ = 4; - onChanged(); - ; + onChanged();; return cloudSqlBuilder_; } - private long creationTime_; + private long creationTime_ ; /** - * - * *
        * Output only. The creation timestamp of the connection.
        * 
* * int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The creationTime. */ @java.lang.Override @@ -9534,51 +8004,42 @@ public long getCreationTime() { return creationTime_; } /** - * - * *
        * Output only. The creation timestamp of the connection.
        * 
* * int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The creationTime to set. * @return This builder for chaining. */ public Builder setCreationTime(long value) { - + creationTime_ = value; onChanged(); return this; } /** - * - * *
        * Output only. The creation timestamp of the connection.
        * 
* * int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearCreationTime() { - + creationTime_ = 0L; onChanged(); return this; } - private long lastModifiedTime_; + private long lastModifiedTime_ ; /** - * - * *
        * Output only. The last update timestamp of the connection.
        * 
* * int64 last_modified_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The lastModifiedTime. */ @java.lang.Override @@ -9586,51 +8047,42 @@ public long getLastModifiedTime() { return lastModifiedTime_; } /** - * - * *
        * Output only. The last update timestamp of the connection.
        * 
* * int64 last_modified_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The lastModifiedTime to set. * @return This builder for chaining. */ public Builder setLastModifiedTime(long value) { - + lastModifiedTime_ = value; onChanged(); return this; } /** - * - * *
        * Output only. The last update timestamp of the connection.
        * 
* * int64 last_modified_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearLastModifiedTime() { - + lastModifiedTime_ = 0L; onChanged(); return this; } - private boolean hasCredential_; + private boolean hasCredential_ ; /** - * - * *
        * Output only. True, if credential is configured for this connection.
        * 
* * bool has_credential = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The hasCredential. */ @java.lang.Override @@ -9638,41 +8090,34 @@ public boolean getHasCredential() { return hasCredential_; } /** - * - * *
        * Output only. True, if credential is configured for this connection.
        * 
* * bool has_credential = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The hasCredential to set. * @return This builder for chaining. */ public Builder setHasCredential(boolean value) { - + hasCredential_ = value; onChanged(); return this; } /** - * - * *
        * Output only. True, if credential is configured for this connection.
        * 
* * bool has_credential = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearHasCredential() { - + hasCredential_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -9685,33 +8130,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1beta1.Connection) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1beta1.Connection) - private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection(); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection - getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Connection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Connection(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Connection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Connection(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9723,89 +8165,76 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection - getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ConnectionCredentialOrBuilder - extends + public interface ConnectionCredentialOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1beta1.ConnectionCredential) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Credential for Cloud SQL database.
      * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential cloud_sql = 1; - * * @return Whether the cloudSql field is set. */ boolean hasCloudSql(); /** - * - * *
      * Credential for Cloud SQL database.
      * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential cloud_sql = 1; - * * @return The cloudSql. */ com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential getCloudSql(); /** - * - * *
      * Credential for Cloud SQL database.
      * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential cloud_sql = 1; */ - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder - getCloudSqlOrBuilder(); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder getCloudSqlOrBuilder(); - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - .CredentialCase - getCredentialCase(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.CredentialCase getCredentialCase(); } /** - * - * *
    * Credential to use with a connection.
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.ConnectionCredential} */ - public static final class ConnectionCredential extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ConnectionCredential extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1beta1.ConnectionCredential) ConnectionCredentialOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConnectionCredential.newBuilder() to construct. private ConnectionCredential(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ConnectionCredential() {} + private ConnectionCredential() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConnectionCredential(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ConnectionCredential( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -9824,40 +8253,27 @@ private ConnectionCredential( case 0: done = true; break; - case 10: - { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - .Builder - subBuilder = null; - if (credentialCase_ == 1) { - subBuilder = - ((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CloudSqlCredential) - credential_) - .toBuilder(); - } - credential_ = - input.readMessage( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CloudSqlCredential.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CloudSqlCredential) - credential_); - credential_ = subBuilder.buildPartial(); - } - credentialCase_ = 1; - break; + case 10: { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder subBuilder = null; + if (credentialCase_ == 1) { + subBuilder = ((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) credential_).toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + credential_ = + input.readMessage(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) credential_); + credential_ = subBuilder.buildPartial(); } + credentialCase_ = 1; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -9865,41 +8281,34 @@ private ConnectionCredential( } 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.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - .class, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - .Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.Builder.class); } private int credentialCase_ = 0; private java.lang.Object credential_; - public enum CredentialCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CLOUD_SQL(1), CREDENTIAL_NOT_SET(0); private final int value; - private CredentialCase(int value) { this.value = value; } @@ -9915,34 +8324,29 @@ public static CredentialCase valueOf(int value) { public static CredentialCase forNumber(int value) { switch (value) { - case 1: - return CLOUD_SQL; - case 0: - return CREDENTIAL_NOT_SET; - default: - return null; + case 1: return CLOUD_SQL; + case 0: return CREDENTIAL_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public CredentialCase getCredentialCase() { - return CredentialCase.forNumber(credentialCase_); + public CredentialCase + getCredentialCase() { + return CredentialCase.forNumber( + credentialCase_); } public static final int CLOUD_SQL_FIELD_NUMBER = 1; /** - * - * *
      * Credential for Cloud SQL database.
      * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential cloud_sql = 1; - * * @return Whether the cloudSql field is set. */ @java.lang.Override @@ -9950,29 +8354,21 @@ public boolean hasCloudSql() { return credentialCase_ == 1; } /** - * - * *
      * Credential for Cloud SQL database.
      * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential cloud_sql = 1; - * * @return The cloudSql. */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - getCloudSql() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential getCloudSql() { if (credentialCase_ == 1) { - return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) - credential_; + return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) credential_; } - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - .getDefaultInstance(); + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.getDefaultInstance(); } /** - * - * *
      * Credential for Cloud SQL database.
      * 
@@ -9980,18 +8376,14 @@ public boolean hasCloudSql() { * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential cloud_sql = 1; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder - getCloudSqlOrBuilder() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder getCloudSqlOrBuilder() { if (credentialCase_ == 1) { - return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) - credential_; + return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) credential_; } - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - .getDefaultInstance(); + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10003,12 +8395,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (credentialCase_ == 1) { - output.writeMessage( - 1, - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) - credential_); + output.writeMessage(1, (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) credential_); } unknownFields.writeTo(output); } @@ -10020,11 +8410,8 @@ public int getSerializedSize() { size = 0; if (credentialCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) - credential_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) credential_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -10034,20 +8421,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential)) { + if (!(obj instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential other = - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential) obj; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential other = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential) obj; if (!getCredentialCase().equals(other.getCredentialCase())) return false; switch (credentialCase_) { case 1: - if (!getCloudSql().equals(other.getCloudSql())) return false; + if (!getCloudSql() + .equals(other.getCloudSql())) return false; break; case 0: default: @@ -10076,102 +8461,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential 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.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + 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.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential 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 @@ -10181,51 +8552,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Credential to use with a connection.
      * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.ConnectionCredential} */ - 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.bigquery.connection.v1beta1.ConnectionCredential) com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredentialOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - .class, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - .Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.Builder.class); } - // Construct using - // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.newBuilder() + // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -10235,23 +8599,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - getDefaultInstanceForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - .getDefaultInstance(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential getDefaultInstanceForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - build() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential result = - buildPartial(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential build() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -10259,11 +8619,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - buildPartial() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential result = - new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential( - this); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential buildPartial() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential result = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential(this); if (credentialCase_ == 1) { if (cloudSqlBuilder_ == null) { result.credential_ = credential_; @@ -10280,66 +8637,54 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 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.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential) { - return mergeFrom( - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential) - other); + if (other instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential) { + return mergeFrom((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential other) { - if (other - == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential other) { + if (other == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.getDefaultInstance()) return this; switch (other.getCredentialCase()) { - case CLOUD_SQL: - { - mergeCloudSql(other.getCloudSql()); - break; - } - case CREDENTIAL_NOT_SET: - { - break; - } + case CLOUD_SQL: { + mergeCloudSql(other.getCloudSql()); + break; + } + case CREDENTIAL_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -10356,14 +8701,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - parsedMessage = null; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -10372,12 +8714,12 @@ public Builder mergeFrom( } return this; } - private int credentialCase_ = 0; private java.lang.Object credential_; - - public CredentialCase getCredentialCase() { - return CredentialCase.forNumber(credentialCase_); + public CredentialCase + getCredentialCase() { + return CredentialCase.forNumber( + credentialCase_); } public Builder clearCredential() { @@ -10387,22 +8729,15 @@ public Builder clearCredential() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - .Builder, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CloudSqlCredentialOrBuilder> - cloudSqlBuilder_; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder> cloudSqlBuilder_; /** - * - * *
        * Credential for Cloud SQL database.
        * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential cloud_sql = 1; - * * @return Whether the cloudSql field is set. */ @java.lang.Override @@ -10410,45 +8745,35 @@ public boolean hasCloudSql() { return credentialCase_ == 1; } /** - * - * *
        * Credential for Cloud SQL database.
        * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential cloud_sql = 1; - * * @return The cloudSql. */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - getCloudSql() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential getCloudSql() { if (cloudSqlBuilder_ == null) { if (credentialCase_ == 1) { - return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) - credential_; + return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) credential_; } - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - .getDefaultInstance(); + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.getDefaultInstance(); } else { if (credentialCase_ == 1) { return cloudSqlBuilder_.getMessage(); } - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - .getDefaultInstance(); + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.getDefaultInstance(); } } /** - * - * *
        * Credential for Cloud SQL database.
        * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential cloud_sql = 1; */ - public Builder setCloudSql( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential value) { + public Builder setCloudSql(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential value) { if (cloudSqlBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -10462,8 +8787,6 @@ public Builder setCloudSql( return this; } /** - * - * *
        * Credential for Cloud SQL database.
        * 
@@ -10471,8 +8794,7 @@ public Builder setCloudSql( * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential cloud_sql = 1; */ public Builder setCloudSql( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder - builderForValue) { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder builderForValue) { if (cloudSqlBuilder_ == null) { credential_ = builderForValue.build(); onChanged(); @@ -10483,29 +8805,18 @@ public Builder setCloudSql( return this; } /** - * - * *
        * Credential for Cloud SQL database.
        * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential cloud_sql = 1; */ - public Builder mergeCloudSql( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential value) { + public Builder mergeCloudSql(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential value) { if (cloudSqlBuilder_ == null) { - if (credentialCase_ == 1 - && credential_ - != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - .getDefaultInstance()) { - credential_ = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - .newBuilder( - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CloudSqlCredential) - credential_) - .mergeFrom(value) - .buildPartial(); + if (credentialCase_ == 1 && + credential_ != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.getDefaultInstance()) { + credential_ = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.newBuilder((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) credential_) + .mergeFrom(value).buildPartial(); } else { credential_ = value; } @@ -10521,8 +8832,6 @@ public Builder mergeCloudSql( return this; } /** - * - * *
        * Credential for Cloud SQL database.
        * 
@@ -10546,21 +8855,16 @@ public Builder clearCloudSql() { return this; } /** - * - * *
        * Credential for Cloud SQL database.
        * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential cloud_sql = 1; */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder - getCloudSqlBuilder() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder getCloudSqlBuilder() { return getCloudSqlFieldBuilder().getBuilder(); } /** - * - * *
        * Credential for Cloud SQL database.
        * 
@@ -10568,23 +8872,17 @@ public Builder clearCloudSql() { * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential cloud_sql = 1; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CloudSqlCredentialOrBuilder - getCloudSqlOrBuilder() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder getCloudSqlOrBuilder() { if ((credentialCase_ == 1) && (cloudSqlBuilder_ != null)) { return cloudSqlBuilder_.getMessageOrBuilder(); } else { if (credentialCase_ == 1) { - return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) - credential_; + return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) credential_; } - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - .getDefaultInstance(); + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.getDefaultInstance(); } } /** - * - * *
        * Credential for Cloud SQL database.
        * 
@@ -10592,37 +8890,23 @@ public Builder clearCloudSql() { * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential cloud_sql = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - .Builder, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CloudSqlCredentialOrBuilder> + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder> getCloudSqlFieldBuilder() { if (cloudSqlBuilder_ == null) { if (!(credentialCase_ == 1)) { - credential_ = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - .getDefaultInstance(); + credential_ = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.getDefaultInstance(); } - cloudSqlBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - .Builder, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CloudSqlCredentialOrBuilder>( - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) - credential_, + cloudSqlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder>( + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) credential_, getParentForChildren(), isClean()); credential_ = null; } credentialCase_ = 1; - onChanged(); - ; + onChanged();; return cloudSqlBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10635,34 +8919,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1beta1.ConnectionCredential) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1beta1.ConnectionCredential) - private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ConnectionCredential - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential(); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConnectionCredential parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConnectionCredential(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectionCredential parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConnectionCredential(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -10674,156 +8954,118 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface CloudSqlPropertiesOrBuilder - extends + public interface CloudSqlPropertiesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1beta1.CloudSqlProperties) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Cloud SQL instance ID in the form `project:location:instance`.
      * 
* * string instance_id = 1; - * * @return The instanceId. */ java.lang.String getInstanceId(); /** - * - * *
      * Cloud SQL instance ID in the form `project:location:instance`.
      * 
* * string instance_id = 1; - * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString getInstanceIdBytes(); + com.google.protobuf.ByteString + getInstanceIdBytes(); /** - * - * *
      * Database name.
      * 
* * string database = 2; - * * @return The database. */ java.lang.String getDatabase(); /** - * - * *
      * Database name.
      * 
* * string database = 2; - * * @return The bytes for database. */ - com.google.protobuf.ByteString getDatabaseBytes(); + com.google.protobuf.ByteString + getDatabaseBytes(); /** - * - * *
      * Type of the Cloud SQL database.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; - * - * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
      * Type of the Cloud SQL database.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; - * - * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; * @return The type. */ - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType - getType(); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType getType(); /** - * - * *
      * Input only. Cloud SQL credential.
      * 
* - * - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; * @return Whether the credential field is set. */ boolean hasCredential(); /** - * - * *
      * Input only. Cloud SQL credential.
      * 
* - * - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The credential. */ com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential getCredential(); /** - * - * *
      * Input only. Cloud SQL credential.
      * 
* - * - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; */ - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder - getCredentialOrBuilder(); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder getCredentialOrBuilder(); } /** - * - * *
    * Connection properties specific to the Cloud SQL.
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.CloudSqlProperties} */ - public static final class CloudSqlProperties extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class CloudSqlProperties extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1beta1.CloudSqlProperties) CloudSqlPropertiesOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CloudSqlProperties.newBuilder() to construct. private CloudSqlProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CloudSqlProperties() { instanceId_ = ""; database_ = ""; @@ -10832,15 +9074,16 @@ private CloudSqlProperties() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CloudSqlProperties(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CloudSqlProperties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -10859,54 +9102,44 @@ private CloudSqlProperties( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - instanceId_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + instanceId_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - database_ = s; - break; - } - case 24: - { - int rawValue = input.readEnum(); + database_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); - type_ = rawValue; - break; + type_ = rawValue; + break; + } + case 34: { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder subBuilder = null; + if (credential_ != null) { + subBuilder = credential_.toBuilder(); } - case 34: - { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - .Builder - subBuilder = null; - if (credential_ != null) { - subBuilder = credential_.toBuilder(); - } - credential_ = - input.readMessage( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CloudSqlCredential.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(credential_); - credential_ = subBuilder.buildPartial(); - } - - break; + credential_ = input.readMessage(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(credential_); + credential_ = 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) { @@ -10914,43 +9147,36 @@ private CloudSqlProperties( } 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.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.class, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.Builder.class); } /** - * - * *
      * Supported Cloud SQL database types.
      * 
* - * Protobuf enum {@code - * google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType} + * Protobuf enum {@code google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType} */ - public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { + public enum DatabaseType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * Unspecified database type.
        * 
@@ -10959,8 +9185,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ DATABASE_TYPE_UNSPECIFIED(0), /** - * - * *
        * Cloud SQL for PostgreSQL.
        * 
@@ -10969,8 +9193,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ POSTGRES(1), /** - * - * *
        * Cloud SQL for MySQL.
        * 
@@ -10982,8 +9204,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Unspecified database type.
        * 
@@ -10992,8 +9212,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DATABASE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
        * Cloud SQL for PostgreSQL.
        * 
@@ -11002,8 +9220,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int POSTGRES_VALUE = 1; /** - * - * *
        * Cloud SQL for MySQL.
        * 
@@ -11012,6 +9228,7 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MYSQL_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -11036,52 +9253,49 @@ public static DatabaseType valueOf(int value) { */ public static DatabaseType forNumber(int value) { switch (value) { - case 0: - return DATABASE_TYPE_UNSPECIFIED; - case 1: - return POSTGRES; - case 2: - return MYSQL; - default: - return null; + case 0: return DATABASE_TYPE_UNSPECIFIED; + case 1: return POSTGRES; + case 2: return MYSQL; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + DatabaseType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DatabaseType findValueByNumber(int number) { + return DatabaseType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DatabaseType findValueByNumber(int number) { - return DatabaseType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.getDescriptor().getEnumTypes().get(0); } private static final DatabaseType[] VALUES = values(); - public static DatabaseType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static DatabaseType 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; @@ -11101,14 +9315,11 @@ private DatabaseType(int value) { public static final int INSTANCE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceId_; /** - * - * *
      * Cloud SQL instance ID in the form `project:location:instance`.
      * 
* * string instance_id = 1; - * * @return The instanceId. */ @java.lang.Override @@ -11117,29 +9328,29 @@ public java.lang.String getInstanceId() { 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(); instanceId_ = s; return s; } } /** - * - * *
      * Cloud SQL instance ID in the form `project:location:instance`.
      * 
* * string instance_id = 1; - * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { + public com.google.protobuf.ByteString + getInstanceIdBytes() { java.lang.Object ref = instanceId_; 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); instanceId_ = b; return b; } else { @@ -11150,14 +9361,11 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { public static final int DATABASE_FIELD_NUMBER = 2; private volatile java.lang.Object database_; /** - * - * *
      * Database name.
      * 
* * string database = 2; - * * @return The database. */ @java.lang.Override @@ -11166,29 +9374,29 @@ public java.lang.String getDatabase() { 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(); database_ = s; return s; } } /** - * - * *
      * Database name.
      * 
* * string database = 2; - * * @return The bytes for database. */ @java.lang.Override - public com.google.protobuf.ByteString getDatabaseBytes() { + public com.google.protobuf.ByteString + getDatabaseBytes() { java.lang.Object ref = database_; 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); database_ = b; return b; } else { @@ -11199,62 +9407,38 @@ public com.google.protobuf.ByteString getDatabaseBytes() { public static final int TYPE_FIELD_NUMBER = 3; private int type_; /** - * - * *
      * Type of the Cloud SQL database.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; - * - * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * Type of the Cloud SQL database.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; - * - * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; * @return The type. */ - @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .DatabaseType - getType() { + @java.lang.Override public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType getType() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType - result = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .DatabaseType.valueOf(type_); - return result == null - ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .DatabaseType.UNRECOGNIZED - : result; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType result = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType.valueOf(type_); + return result == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType.UNRECOGNIZED : result; } public static final int CREDENTIAL_FIELD_NUMBER = 4; - private com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - credential_; + private com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential credential_; /** - * - * *
      * Input only. Cloud SQL credential.
      * 
* - * - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; * @return Whether the credential field is set. */ @java.lang.Override @@ -11262,45 +9446,30 @@ public boolean hasCredential() { return credential_ != null; } /** - * - * *
      * Input only. Cloud SQL credential.
      * 
* - * - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The credential. */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - getCredential() { - return credential_ == null - ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - .getDefaultInstance() - : credential_; + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential getCredential() { + return credential_ == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.getDefaultInstance() : credential_; } /** - * - * *
      * Input only. Cloud SQL credential.
      * 
* - * - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder - getCredentialOrBuilder() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder getCredentialOrBuilder() { return getCredential(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -11312,17 +9481,15 @@ 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(instanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, database_); } - if (type_ - != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .DatabaseType.DATABASE_TYPE_UNSPECIFIED - .getNumber()) { + if (type_ != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType.DATABASE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(3, type_); } if (credential_ != null) { @@ -11343,14 +9510,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, database_); } - if (type_ - != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .DatabaseType.DATABASE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_); + if (type_ != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType.DATABASE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, type_); } if (credential_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCredential()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCredential()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -11360,22 +9526,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties)) { + if (!(obj instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties other = - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) obj; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties other = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) obj; - if (!getInstanceId().equals(other.getInstanceId())) return false; - if (!getDatabase().equals(other.getDatabase())) return false; + if (!getInstanceId() + .equals(other.getInstanceId())) return false; + if (!getDatabase() + .equals(other.getDatabase())) return false; if (type_ != other.type_) return false; if (hasCredential() != other.hasCredential()) return false; if (hasCredential()) { - if (!getCredential().equals(other.getCredential())) return false; + if (!getCredential() + .equals(other.getCredential())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -11403,101 +9569,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties 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.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + 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.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties 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 @@ -11507,51 +9660,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Connection properties specific to the Cloud SQL.
      * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.CloudSqlProperties} */ - 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.bigquery.connection.v1beta1.CloudSqlProperties) com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlPropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .class, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.Builder.class); } - // Construct using - // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.newBuilder() + // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -11571,23 +9717,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - getDefaultInstanceForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .getDefaultInstance(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties getDefaultInstanceForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - build() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties result = - buildPartial(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties build() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -11595,11 +9737,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - buildPartial() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties result = - new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties( - this); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties buildPartial() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties result = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties(this); result.instanceId_ = instanceId_; result.database_ = database_; result.type_ = type_; @@ -11616,56 +9755,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 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.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) { - return mergeFrom( - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) - other); + if (other instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) { + return mergeFrom((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties other) { - if (other - == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties other) { + if (other == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.getDefaultInstance()) return this; if (!other.getInstanceId().isEmpty()) { instanceId_ = other.instanceId_; onChanged(); @@ -11695,14 +9824,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - parsedMessage = null; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -11714,20 +9840,18 @@ public Builder mergeFrom( private java.lang.Object instanceId_ = ""; /** - * - * *
        * Cloud SQL instance ID in the form `project:location:instance`.
        * 
* * string instance_id = 1; - * * @return The instanceId. */ public java.lang.String getInstanceId() { java.lang.Object ref = instanceId_; 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(); instanceId_ = s; return s; @@ -11736,21 +9860,20 @@ public java.lang.String getInstanceId() { } } /** - * - * *
        * Cloud SQL instance ID in the form `project:location:instance`.
        * 
* * string instance_id = 1; - * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString getInstanceIdBytes() { + public com.google.protobuf.ByteString + getInstanceIdBytes() { java.lang.Object ref = instanceId_; 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); instanceId_ = b; return b; } else { @@ -11758,61 +9881,54 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } } /** - * - * *
        * Cloud SQL instance ID in the form `project:location:instance`.
        * 
* * string instance_id = 1; - * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId(java.lang.String value) { + public Builder setInstanceId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instanceId_ = value; onChanged(); return this; } /** - * - * *
        * Cloud SQL instance ID in the form `project:location:instance`.
        * 
* * string instance_id = 1; - * * @return This builder for chaining. */ public Builder clearInstanceId() { - + instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /** - * - * *
        * Cloud SQL instance ID in the form `project:location:instance`.
        * 
* * string instance_id = 1; - * * @param value The bytes for instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceId_ = value; onChanged(); return this; @@ -11820,20 +9936,18 @@ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object database_ = ""; /** - * - * *
        * Database name.
        * 
* * string database = 2; - * * @return The database. */ public java.lang.String getDatabase() { java.lang.Object ref = database_; 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(); database_ = s; return s; @@ -11842,21 +9956,20 @@ public java.lang.String getDatabase() { } } /** - * - * *
        * Database name.
        * 
* * string database = 2; - * * @return The bytes for database. */ - public com.google.protobuf.ByteString getDatabaseBytes() { + public com.google.protobuf.ByteString + getDatabaseBytes() { java.lang.Object ref = database_; 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); database_ = b; return b; } else { @@ -11864,61 +9977,54 @@ public com.google.protobuf.ByteString getDatabaseBytes() { } } /** - * - * *
        * Database name.
        * 
* * string database = 2; - * * @param value The database to set. * @return This builder for chaining. */ - public Builder setDatabase(java.lang.String value) { + public Builder setDatabase( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + database_ = value; onChanged(); return this; } /** - * - * *
        * Database name.
        * 
* * string database = 2; - * * @return This builder for chaining. */ public Builder clearDatabase() { - + database_ = getDefaultInstance().getDatabase(); onChanged(); return this; } /** - * - * *
        * Database name.
        * 
* * string database = 2; - * * @param value The bytes for database to set. * @return This builder for chaining. */ - public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { + public Builder setDatabaseBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + database_ = value; onChanged(); return this; @@ -11926,172 +10032,115 @@ public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { private int type_ = 0; /** - * - * *
        * Type of the Cloud SQL database.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; - * - * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
        * Type of the Cloud SQL database.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; - * - * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** - * - * *
        * Type of the Cloud SQL database.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; - * - * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; * @return The type. */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .DatabaseType - getType() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType getType() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType - result = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .DatabaseType.valueOf(type_); - return result == null - ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .DatabaseType.UNRECOGNIZED - : result; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType result = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType.valueOf(type_); + return result == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType.UNRECOGNIZED : result; } /** - * - * *
        * Type of the Cloud SQL database.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; - * - * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .DatabaseType - value) { + public Builder setType(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** - * - * *
        * Type of the Cloud SQL database.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; - * - * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - credential_; + private com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential credential_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - .Builder, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CloudSqlCredentialOrBuilder> - credentialBuilder_; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder> credentialBuilder_; /** - * - * *
        * Input only. Cloud SQL credential.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; * @return Whether the credential field is set. */ public boolean hasCredential() { return credentialBuilder_ != null || credential_ != null; } /** - * - * *
        * Input only. Cloud SQL credential.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * - * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; * @return The credential. */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - getCredential() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential getCredential() { if (credentialBuilder_ == null) { - return credential_ == null - ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - .getDefaultInstance() - : credential_; + return credential_ == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.getDefaultInstance() : credential_; } else { return credentialBuilder_.getMessage(); } } /** - * - * *
        * Input only. Cloud SQL credential.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public Builder setCredential( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential value) { + public Builder setCredential(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential value) { if (credentialBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -12105,19 +10154,14 @@ public Builder setCredential( return this; } /** - * - * *
        * Input only. Cloud SQL credential.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder setCredential( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder - builderForValue) { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder builderForValue) { if (credentialBuilder_ == null) { credential_ = builderForValue.build(); onChanged(); @@ -12128,25 +10172,17 @@ public Builder setCredential( return this; } /** - * - * *
        * Input only. Cloud SQL credential.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public Builder mergeCredential( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential value) { + public Builder mergeCredential(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential value) { if (credentialBuilder_ == null) { if (credential_ != null) { credential_ = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - .newBuilder(credential_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.newBuilder(credential_).mergeFrom(value).buildPartial(); } else { credential_ = value; } @@ -12158,15 +10194,11 @@ public Builder mergeCredential( return this; } /** - * - * *
        * Input only. Cloud SQL credential.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; */ public Builder clearCredential() { if (credentialBuilder_ == null) { @@ -12180,77 +10212,52 @@ public Builder clearCredential() { return this; } /** - * - * *
        * Input only. Cloud SQL credential.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder - getCredentialBuilder() { - + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder getCredentialBuilder() { + onChanged(); return getCredentialFieldBuilder().getBuilder(); } /** - * - * *
        * Input only. Cloud SQL credential.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CloudSqlCredentialOrBuilder - getCredentialOrBuilder() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder getCredentialOrBuilder() { if (credentialBuilder_ != null) { return credentialBuilder_.getMessageOrBuilder(); } else { - return credential_ == null - ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - .getDefaultInstance() - : credential_; + return credential_ == null ? + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.getDefaultInstance() : credential_; } } /** - * - * *
        * Input only. Cloud SQL credential.
        * 
* - * - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - .Builder, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CloudSqlCredentialOrBuilder> + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder> getCredentialFieldBuilder() { if (credentialBuilder_ == null) { - credentialBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - .Builder, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CloudSqlCredentialOrBuilder>( - getCredential(), getParentForChildren(), isClean()); + credentialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder>( + getCredential(), + getParentForChildren(), + isClean()); credential_ = null; } return credentialBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -12263,34 +10270,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1beta1.CloudSqlProperties) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1beta1.CloudSqlProperties) - private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CloudSqlProperties - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties(); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudSqlProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudSqlProperties(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudSqlProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CloudSqlProperties(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -12302,86 +10305,72 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface CloudSqlCredentialOrBuilder - extends + public interface CloudSqlCredentialOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1beta1.CloudSqlCredential) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The username for the credential.
      * 
* * string username = 1; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
      * The username for the credential.
      * 
* * string username = 1; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
      * The password for the credential.
      * 
* * string password = 2; - * * @return The password. */ java.lang.String getPassword(); /** - * - * *
      * The password for the credential.
      * 
* * string password = 2; - * * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); } /** - * - * *
    * Credential info for the Cloud SQL.
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.CloudSqlCredential} */ - public static final class CloudSqlCredential extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class CloudSqlCredential extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1beta1.CloudSqlCredential) CloudSqlCredentialOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CloudSqlCredential.newBuilder() to construct. private CloudSqlCredential(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CloudSqlCredential() { username_ = ""; password_ = ""; @@ -12389,15 +10378,16 @@ private CloudSqlCredential() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CloudSqlCredential(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CloudSqlCredential( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -12416,27 +10406,25 @@ private CloudSqlCredential( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - username_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + username_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + password_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -12444,40 +10432,34 @@ private CloudSqlCredential( } 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.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.class, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - .Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder.class); } public static final int USERNAME_FIELD_NUMBER = 1; private volatile java.lang.Object username_; /** - * - * *
      * The username for the credential.
      * 
* * string username = 1; - * * @return The username. */ @java.lang.Override @@ -12486,29 +10468,29 @@ public java.lang.String getUsername() { 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(); username_ = s; return s; } } /** - * - * *
      * The username for the credential.
      * 
* * string username = 1; - * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; 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); username_ = b; return b; } else { @@ -12519,14 +10501,11 @@ public com.google.protobuf.ByteString getUsernameBytes() { public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** - * - * *
      * The password for the credential.
      * 
* * string password = 2; - * * @return The password. */ @java.lang.Override @@ -12535,29 +10514,29 @@ public java.lang.String getPassword() { 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(); password_ = s; return s; } } /** - * - * *
      * The password for the credential.
      * 
* * string password = 2; - * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; 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); password_ = b; return b; } else { @@ -12566,7 +10545,6 @@ public com.google.protobuf.ByteString getPasswordBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -12578,7 +10556,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(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -12608,18 +10587,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.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential)) { + if (!(obj instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential other = - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) obj; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential other = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) obj; - if (!getUsername().equals(other.getUsername())) return false; - if (!getPassword().equals(other.getPassword())) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -12640,101 +10618,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential 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.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + 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.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential 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 @@ -12744,51 +10709,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Credential info for the Cloud SQL.
      * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.CloudSqlCredential} */ - 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.bigquery.connection.v1beta1.CloudSqlCredential) com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - .class, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - .Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder.class); } - // Construct using - // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.newBuilder() + // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -12800,23 +10758,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - getDefaultInstanceForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - .getDefaultInstance(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential getDefaultInstanceForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - build() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential result = - buildPartial(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential build() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -12824,11 +10778,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - buildPartial() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential result = - new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential( - this); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential buildPartial() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential result = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential(this); result.username_ = username_; result.password_ = password_; onBuilt(); @@ -12839,56 +10790,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 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.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) { - return mergeFrom( - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) - other); + if (other instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) { + return mergeFrom((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential other) { - if (other - == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential other) { + if (other == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.getDefaultInstance()) return this; if (!other.getUsername().isEmpty()) { username_ = other.username_; onChanged(); @@ -12912,14 +10853,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - parsedMessage = null; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -12931,20 +10869,18 @@ public Builder mergeFrom( private java.lang.Object username_ = ""; /** - * - * *
        * The username for the credential.
        * 
* * string username = 1; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; 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(); username_ = s; return s; @@ -12953,21 +10889,20 @@ public java.lang.String getUsername() { } } /** - * - * *
        * The username for the credential.
        * 
* * string username = 1; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; 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); username_ = b; return b; } else { @@ -12975,61 +10910,54 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
        * The username for the credential.
        * 
* * string username = 1; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { + public Builder setUsername( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; onChanged(); return this; } /** - * - * *
        * The username for the credential.
        * 
* * string username = 1; - * * @return This builder for chaining. */ public Builder clearUsername() { - + username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** - * - * *
        * The username for the credential.
        * 
* * string username = 1; - * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -13037,20 +10965,18 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { private java.lang.Object password_ = ""; /** - * - * *
        * The password for the credential.
        * 
* * string password = 2; - * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; 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(); password_ = s; return s; @@ -13059,21 +10985,20 @@ public java.lang.String getPassword() { } } /** - * - * *
        * The password for the credential.
        * 
* * string password = 2; - * * @return The bytes for password. */ - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; 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); password_ = b; return b; } else { @@ -13081,66 +11006,58 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** - * - * *
        * The password for the credential.
        * 
* * string password = 2; - * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { + public Builder setPassword( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; onChanged(); return this; } /** - * - * *
        * The password for the credential.
        * 
* * string password = 2; - * * @return This builder for chaining. */ public Builder clearPassword() { - + password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** - * - * *
        * The password for the credential.
        * 
* * string password = 2; - * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -13153,34 +11070,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1beta1.CloudSqlCredential) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1beta1.CloudSqlCredential) - private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CloudSqlCredential - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential(); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudSqlCredential parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudSqlCredential(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudSqlCredential parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CloudSqlCredential(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -13192,291 +11105,272 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1beta1_Connection_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1beta1_Connection_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_connection_v1beta1_Connection_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { return descriptor; } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { java.lang.String[] descriptorData = { - "\n9google/cloud/bigquery/connection/v1bet" - + "a1/connection.proto\022(google.cloud.bigque" - + "ry.connection.v1beta1\032\034google/api/annota" - + "tions.proto\032\027google/api/client.proto\032\037go" - + "ogle/api/field_behavior.proto\032\031google/ap" - + "i/resource.proto\032\036google/iam/v1/iam_poli" - + "cy.proto\032\032google/iam/v1/policy.proto\032\033go" - + "ogle/protobuf/empty.proto\032 google/protob" - + "uf/field_mask.proto\032\036google/protobuf/wra" - + "ppers.proto\"\277\001\n\027CreateConnectionRequest\022" - + "9\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googl" - + "eapis.com/Location\022\032\n\rconnection_id\030\002 \001(" - + "\tB\003\340A\001\022M\n\nconnection\030\003 \001(\01324.google.clou" - + "d.bigquery.connection.v1beta1.Connection" - + "B\003\340A\002\"Z\n\024GetConnectionRequest\022B\n\004name\030\001 " - + "\001(\tB4\340A\002\372A.\n,bigqueryconnection.googleap" - + "is.com/Connection\"\237\001\n\026ListConnectionsReq" - + "uest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations." - + "googleapis.com/Location\0226\n\013max_results\030\002" - + " \001(\0132\034.google.protobuf.UInt32ValueB\003\340A\002\022" - + "\022\n\npage_token\030\003 \001(\t\"}\n\027ListConnectionsRe" - + "sponse\022\027\n\017next_page_token\030\001 \001(\t\022I\n\013conne" - + "ctions\030\002 \003(\01324.google.cloud.bigquery.con" - + "nection.v1beta1.Connection\"\342\001\n\027UpdateCon" - + "nectionRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,bi" - + "gqueryconnection.googleapis.com/Connecti" - + "on\022M\n\nconnection\030\002 \001(\01324.google.cloud.bi" - + "gquery.connection.v1beta1.ConnectionB\003\340A" - + "\002\0224\n\013update_mask\030\003 \001(\0132\032.google.protobuf" - + ".FieldMaskB\003\340A\002\"\217\001\n!UpdateConnectionCred" - + "entialRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022W\n\ncred" - + "ential\030\002 \001(\0132>.google.cloud.bigquery.con" - + "nection.v1beta1.ConnectionCredentialB\003\340A" - + "\002\"]\n\027DeleteConnectionRequest\022B\n\004name\030\001 \001" - + "(\tB4\340A\002\372A.\n,bigqueryconnection.googleapi" - + "s.com/Connection\"\366\002\n\nConnection\022\014\n\004name\030" - + "\001 \001(\t\022\025\n\rfriendly_name\030\002 \001(\t\022\023\n\013descript" - + "ion\030\003 \001(\t\022Q\n\tcloud_sql\030\004 \001(\0132<.google.cl" - + "oud.bigquery.connection.v1beta1.CloudSql" - + "PropertiesH\000\022\032\n\rcreation_time\030\005 \001(\003B\003\340A\003" - + "\022\037\n\022last_modified_time\030\006 \001(\003B\003\340A\003\022\033\n\016has" - + "_credential\030\007 \001(\010B\003\340A\003:s\352Ap\n,bigquerycon" - + "nection.googleapis.com/Connection\022@proje" - + "cts/{project}/locations/{location}/conne" - + "ctions/{connection}B\014\n\nproperties\"w\n\024Con" - + "nectionCredential\022Q\n\tcloud_sql\030\001 \001(\0132<.g" - + "oogle.cloud.bigquery.connection.v1beta1." - + "CloudSqlCredentialH\000B\014\n\ncredential\"\263\002\n\022C" - + "loudSqlProperties\022\023\n\013instance_id\030\001 \001(\t\022\020" - + "\n\010database\030\002 \001(\t\022W\n\004type\030\003 \001(\0162I.google." - + "cloud.bigquery.connection.v1beta1.CloudS" - + "qlProperties.DatabaseType\022U\n\ncredential\030" - + "\004 \001(\0132<.google.cloud.bigquery.connection" - + ".v1beta1.CloudSqlCredentialB\003\340A\004\"F\n\014Data" - + "baseType\022\035\n\031DATABASE_TYPE_UNSPECIFIED\020\000\022" - + "\014\n\010POSTGRES\020\001\022\t\n\005MYSQL\020\002\"8\n\022CloudSqlCred" - + "ential\022\020\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001" - + "(\t2\230\020\n\021ConnectionService\022\367\001\n\020CreateConne" - + "ction\022A.google.cloud.bigquery.connection" - + ".v1beta1.CreateConnectionRequest\0324.googl" - + "e.cloud.bigquery.connection.v1beta1.Conn" - + "ection\"j\202\323\344\223\002B\"4/v1beta1/{parent=project" - + "s/*/locations/*}/connections:\nconnection" - + "\332A\037parent,connection,connection_id\022\312\001\n\rG" - + "etConnection\022>.google.cloud.bigquery.con" - + "nection.v1beta1.GetConnectionRequest\0324.g" - + "oogle.cloud.bigquery.connection.v1beta1." - + "Connection\"C\202\323\344\223\0026\0224/v1beta1/{name=proje" - + "cts/*/locations/*/connections/*}\332A\004name\022" - + "\351\001\n\017ListConnections\022@.google.cloud.bigqu" - + "ery.connection.v1beta1.ListConnectionsRe" - + "quest\032A.google.cloud.bigquery.connection" - + ".v1beta1.ListConnectionsResponse\"Q\202\323\344\223\0026" - + "\0224/v1beta1/{parent=projects/*/locations/" - + "*}/connections\332A\022parent,max_results\022\363\001\n\020" - + "UpdateConnection\022A.google.cloud.bigquery" - + ".connection.v1beta1.UpdateConnectionRequ" - + "est\0324.google.cloud.bigquery.connection.v" - + "1beta1.Connection\"f\202\323\344\223\002B24/v1beta1/{nam" - + "e=projects/*/locations/*/connections/*}:" - + "\nconnection\332A\033name,connection,update_mas" - + "k\022\350\001\n\032UpdateConnectionCredential\022K.googl" - + "e.cloud.bigquery.connection.v1beta1.Upda" - + "teConnectionCredentialRequest\032\026.google.p" - + "rotobuf.Empty\"e\202\323\344\223\002M2?/v1beta1/{name=pr" - + "ojects/*/locations/*/connections/*/crede" - + "ntial}:\ncredential\332A\017name,credential\022\262\001\n" - + "\020DeleteConnection\022A.google.cloud.bigquer" - + "y.connection.v1beta1.DeleteConnectionReq" - + "uest\032\026.google.protobuf.Empty\"C\202\323\344\223\0026*4/v" - + "1beta1/{name=projects/*/locations/*/conn" - + "ections/*}\332A\004name\022\256\001\n\014GetIamPolicy\022\".goo" - + "gle.iam.v1.GetIamPolicyRequest\032\025.google." - + "iam.v1.Policy\"c\202\323\344\223\002J\"E/v1beta1/{resourc" - + "e=projects/*/locations/*/connections/*}:" - + "getIamPolicy:\001*\332A\020resource,options\022\255\001\n\014S" - + "etIamPolicy\022\".google.iam.v1.SetIamPolicy" - + "Request\032\025.google.iam.v1.Policy\"b\202\323\344\223\002J\"E" - + "/v1beta1/{resource=projects/*/locations/" - + "*/connections/*}:setIamPolicy:\001*\332A\017resou" - + "rce,policy\022\330\001\n\022TestIamPermissions\022(.goog" - + "le.iam.v1.TestIamPermissionsRequest\032).go" - + "ogle.iam.v1.TestIamPermissionsResponse\"m" - + "\202\323\344\223\002P\"K/v1beta1/{resource=projects/*/lo" - + "cations/*/connections/*}:testIamPermissi" - + "ons:\001*\332A\024resource,permissions\032~\312A!bigque" - + "ryconnection.googleapis.com\322AWhttps://ww" - + "w.googleapis.com/auth/bigquery,https://w" - + "ww.googleapis.com/auth/cloud-platformB\351\001" - + "\n,com.google.cloud.bigquery.connection.v" - + "1beta1B\017ConnectionProtoZRgoogle.golang.o" - + "rg/genproto/googleapis/cloud/bigquery/co" - + "nnection/v1beta1;connection\252\002(Google.Clo" - + "ud.BigQuery.Connection.V1Beta1\312\002(Google\\" - + "Cloud\\BigQuery\\Connection\\V1beta1b\006proto" - + "3" + "\n9google/cloud/bigquery/connection/v1bet" + + "a1/connection.proto\022(google.cloud.bigque" + + "ry.connection.v1beta1\032\034google/api/annota" + + "tions.proto\032\027google/api/client.proto\032\037go" + + "ogle/api/field_behavior.proto\032\031google/ap" + + "i/resource.proto\032\036google/iam/v1/iam_poli" + + "cy.proto\032\032google/iam/v1/policy.proto\032\033go" + + "ogle/protobuf/empty.proto\032 google/protob" + + "uf/field_mask.proto\032\036google/protobuf/wra" + + "ppers.proto\"\277\001\n\027CreateConnectionRequest\022" + + "9\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googl" + + "eapis.com/Location\022\032\n\rconnection_id\030\002 \001(" + + "\tB\003\340A\001\022M\n\nconnection\030\003 \001(\01324.google.clou" + + "d.bigquery.connection.v1beta1.Connection" + + "B\003\340A\002\"Z\n\024GetConnectionRequest\022B\n\004name\030\001 " + + "\001(\tB4\340A\002\372A.\n,bigqueryconnection.googleap" + + "is.com/Connection\"\237\001\n\026ListConnectionsReq" + + "uest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations." + + "googleapis.com/Location\0226\n\013max_results\030\002" + + " \001(\0132\034.google.protobuf.UInt32ValueB\003\340A\002\022" + + "\022\n\npage_token\030\003 \001(\t\"}\n\027ListConnectionsRe" + + "sponse\022\027\n\017next_page_token\030\001 \001(\t\022I\n\013conne" + + "ctions\030\002 \003(\01324.google.cloud.bigquery.con" + + "nection.v1beta1.Connection\"\342\001\n\027UpdateCon" + + "nectionRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,bi" + + "gqueryconnection.googleapis.com/Connecti" + + "on\022M\n\nconnection\030\002 \001(\01324.google.cloud.bi" + + "gquery.connection.v1beta1.ConnectionB\003\340A" + + "\002\0224\n\013update_mask\030\003 \001(\0132\032.google.protobuf" + + ".FieldMaskB\003\340A\002\"\217\001\n!UpdateConnectionCred" + + "entialRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022W\n\ncred" + + "ential\030\002 \001(\0132>.google.cloud.bigquery.con" + + "nection.v1beta1.ConnectionCredentialB\003\340A" + + "\002\"]\n\027DeleteConnectionRequest\022B\n\004name\030\001 \001" + + "(\tB4\340A\002\372A.\n,bigqueryconnection.googleapi" + + "s.com/Connection\"\366\002\n\nConnection\022\014\n\004name\030" + + "\001 \001(\t\022\025\n\rfriendly_name\030\002 \001(\t\022\023\n\013descript" + + "ion\030\003 \001(\t\022Q\n\tcloud_sql\030\004 \001(\0132<.google.cl" + + "oud.bigquery.connection.v1beta1.CloudSql" + + "PropertiesH\000\022\032\n\rcreation_time\030\005 \001(\003B\003\340A\003" + + "\022\037\n\022last_modified_time\030\006 \001(\003B\003\340A\003\022\033\n\016has" + + "_credential\030\007 \001(\010B\003\340A\003:s\352Ap\n,bigquerycon" + + "nection.googleapis.com/Connection\022@proje" + + "cts/{project}/locations/{location}/conne" + + "ctions/{connection}B\014\n\nproperties\"w\n\024Con" + + "nectionCredential\022Q\n\tcloud_sql\030\001 \001(\0132<.g" + + "oogle.cloud.bigquery.connection.v1beta1." + + "CloudSqlCredentialH\000B\014\n\ncredential\"\263\002\n\022C" + + "loudSqlProperties\022\023\n\013instance_id\030\001 \001(\t\022\020" + + "\n\010database\030\002 \001(\t\022W\n\004type\030\003 \001(\0162I.google." + + "cloud.bigquery.connection.v1beta1.CloudS" + + "qlProperties.DatabaseType\022U\n\ncredential\030" + + "\004 \001(\0132<.google.cloud.bigquery.connection" + + ".v1beta1.CloudSqlCredentialB\003\340A\004\"F\n\014Data" + + "baseType\022\035\n\031DATABASE_TYPE_UNSPECIFIED\020\000\022" + + "\014\n\010POSTGRES\020\001\022\t\n\005MYSQL\020\002\"8\n\022CloudSqlCred" + + "ential\022\020\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001" + + "(\t2\230\020\n\021ConnectionService\022\367\001\n\020CreateConne" + + "ction\022A.google.cloud.bigquery.connection" + + ".v1beta1.CreateConnectionRequest\0324.googl" + + "e.cloud.bigquery.connection.v1beta1.Conn" + + "ection\"j\202\323\344\223\002B\"4/v1beta1/{parent=project" + + "s/*/locations/*}/connections:\nconnection" + + "\332A\037parent,connection,connection_id\022\312\001\n\rG" + + "etConnection\022>.google.cloud.bigquery.con" + + "nection.v1beta1.GetConnectionRequest\0324.g" + + "oogle.cloud.bigquery.connection.v1beta1." + + "Connection\"C\202\323\344\223\0026\0224/v1beta1/{name=proje" + + "cts/*/locations/*/connections/*}\332A\004name\022" + + "\351\001\n\017ListConnections\022@.google.cloud.bigqu" + + "ery.connection.v1beta1.ListConnectionsRe" + + "quest\032A.google.cloud.bigquery.connection" + + ".v1beta1.ListConnectionsResponse\"Q\202\323\344\223\0026" + + "\0224/v1beta1/{parent=projects/*/locations/" + + "*}/connections\332A\022parent,max_results\022\363\001\n\020" + + "UpdateConnection\022A.google.cloud.bigquery" + + ".connection.v1beta1.UpdateConnectionRequ" + + "est\0324.google.cloud.bigquery.connection.v" + + "1beta1.Connection\"f\202\323\344\223\002B24/v1beta1/{nam" + + "e=projects/*/locations/*/connections/*}:" + + "\nconnection\332A\033name,connection,update_mas" + + "k\022\350\001\n\032UpdateConnectionCredential\022K.googl" + + "e.cloud.bigquery.connection.v1beta1.Upda" + + "teConnectionCredentialRequest\032\026.google.p" + + "rotobuf.Empty\"e\202\323\344\223\002M2?/v1beta1/{name=pr" + + "ojects/*/locations/*/connections/*/crede" + + "ntial}:\ncredential\332A\017name,credential\022\262\001\n" + + "\020DeleteConnection\022A.google.cloud.bigquer" + + "y.connection.v1beta1.DeleteConnectionReq" + + "uest\032\026.google.protobuf.Empty\"C\202\323\344\223\0026*4/v" + + "1beta1/{name=projects/*/locations/*/conn" + + "ections/*}\332A\004name\022\256\001\n\014GetIamPolicy\022\".goo" + + "gle.iam.v1.GetIamPolicyRequest\032\025.google." + + "iam.v1.Policy\"c\202\323\344\223\002J\"E/v1beta1/{resourc" + + "e=projects/*/locations/*/connections/*}:" + + "getIamPolicy:\001*\332A\020resource,options\022\255\001\n\014S" + + "etIamPolicy\022\".google.iam.v1.SetIamPolicy" + + "Request\032\025.google.iam.v1.Policy\"b\202\323\344\223\002J\"E" + + "/v1beta1/{resource=projects/*/locations/" + + "*/connections/*}:setIamPolicy:\001*\332A\017resou" + + "rce,policy\022\330\001\n\022TestIamPermissions\022(.goog" + + "le.iam.v1.TestIamPermissionsRequest\032).go" + + "ogle.iam.v1.TestIamPermissionsResponse\"m" + + "\202\323\344\223\002P\"K/v1beta1/{resource=projects/*/lo" + + "cations/*/connections/*}:testIamPermissi" + + "ons:\001*\332A\024resource,permissions\032~\312A!bigque" + + "ryconnection.googleapis.com\322AWhttps://ww" + + "w.googleapis.com/auth/bigquery,https://w" + + "ww.googleapis.com/auth/cloud-platformB\351\001" + + "\n,com.google.cloud.bigquery.connection.v" + + "1beta1B\017ConnectionProtoZRgoogle.golang.o" + + "rg/genproto/googleapis/cloud/bigquery/co" + + "nnection/v1beta1;connection\252\002(Google.Clo" + + "ud.BigQuery.Connection.V1Beta1\312\002(Google\\" + + "Cloud\\BigQuery\\Connection\\V1beta1b\006proto" + + "3" }; - 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.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - }); + 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.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + }); internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_descriptor, - new java.lang.String[] { - "Parent", "ConnectionId", "Connection", - }); + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_descriptor, + new java.lang.String[] { "Parent", "ConnectionId", "Connection", }); internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_descriptor, - new java.lang.String[] { - "Name", - }); + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_descriptor, + new java.lang.String[] { "Name", }); internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_descriptor, - new java.lang.String[] { - "Parent", "MaxResults", "PageToken", - }); + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_descriptor, + new java.lang.String[] { "Parent", "MaxResults", "PageToken", }); internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_descriptor, - new java.lang.String[] { - "NextPageToken", "Connections", - }); + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_descriptor, + new java.lang.String[] { "NextPageToken", "Connections", }); internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_descriptor, - new java.lang.String[] { - "Name", "Connection", "UpdateMask", - }); + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_descriptor, + new java.lang.String[] { "Name", "Connection", "UpdateMask", }); internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_descriptor, - new java.lang.String[] { - "Name", "Credential", - }); + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_descriptor, + new java.lang.String[] { "Name", "Credential", }); internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_descriptor, - new java.lang.String[] { - "Name", - }); + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_descriptor, + new java.lang.String[] { "Name", }); internal_static_google_cloud_bigquery_connection_v1beta1_Connection_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_bigquery_connection_v1beta1_Connection_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1beta1_Connection_descriptor, - new java.lang.String[] { - "Name", - "FriendlyName", - "Description", - "CloudSql", - "CreationTime", - "LastModifiedTime", - "HasCredential", - "Properties", - }); + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_bigquery_connection_v1beta1_Connection_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1beta1_Connection_descriptor, + new java.lang.String[] { "Name", "FriendlyName", "Description", "CloudSql", "CreationTime", "LastModifiedTime", "HasCredential", "Properties", }); internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_descriptor, - new java.lang.String[] { - "CloudSql", "Credential", - }); + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_descriptor, + new java.lang.String[] { "CloudSql", "Credential", }); internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_descriptor, - new java.lang.String[] { - "InstanceId", "Database", "Type", "Credential", - }); + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_descriptor, + new java.lang.String[] { "InstanceId", "Database", "Type", "Credential", }); internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_descriptor, - new java.lang.String[] { - "Username", "Password", - }); + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_descriptor, + new java.lang.String[] { "Username", "Password", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -13486,8 +11380,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ClientProto.oauthScopes); registry.add(com.google.api.ResourceProto.resource); registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/LocationName.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/LocationName.java similarity index 100% rename from proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/LocationName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/LocationName.java diff --git a/proto-google-cloud-bigqueryconnection-v1beta1/src/main/proto/google/cloud/bigquery/connection/v1beta1/connection.proto b/owl-bot-staging/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/proto/google/cloud/bigquery/connection/v1beta1/connection.proto similarity index 100% rename from proto-google-cloud-bigqueryconnection-v1beta1/src/main/proto/google/cloud/bigquery/connection/v1beta1/connection.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/proto/google/cloud/bigquery/connection/v1beta1/connection.proto diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java deleted file mode 100644 index 36b9795a..00000000 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java +++ /dev/null @@ -1,368 +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/bigquery/connection/v1/connection.proto - -package com.google.cloud.bigquery.connection.v1; - -public final class ConnectionOuterClass { - private ConnectionOuterClass() {} - - 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_bigquery_connection_v1_CreateConnectionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_Connection_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_AwsProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/bigquery/connection/v1/co" - + "nnection.proto\022#google.cloud.bigquery.co" - + "nnection.v1\032\034google/api/annotations.prot" - + "o\032\027google/api/client.proto\032\037google/api/f" - + "ield_behavior.proto\032\031google/api/resource" - + ".proto\032\036google/iam/v1/iam_policy.proto\032\032" - + "google/iam/v1/policy.proto\032\033google/proto" - + "buf/empty.proto\032 google/protobuf/field_m" - + "ask.proto\"\272\001\n\027CreateConnectionRequest\0229\n" - + "\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googlea" - + "pis.com/Location\022\032\n\rconnection_id\030\002 \001(\tB" - + "\003\340A\001\022H\n\nconnection\030\003 \001(\0132/.google.cloud." - + "bigquery.connection.v1.ConnectionB\003\340A\002\"Z" - + "\n\024GetConnectionRequest\022B\n\004name\030\001 \001(\tB4\340A" - + "\002\372A.\n,bigqueryconnection.googleapis.com/" - + "Connection\"\177\n\026ListConnectionsRequest\0229\n\006" - + "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" - + "is.com/Location\022\026\n\tpage_size\030\004 \001(\005B\003\340A\002\022" - + "\022\n\npage_token\030\003 \001(\t\"x\n\027ListConnectionsRe" - + "sponse\022\027\n\017next_page_token\030\001 \001(\t\022D\n\013conne" - + "ctions\030\002 \003(\0132/.google.cloud.bigquery.con" - + "nection.v1.Connection\"\335\001\n\027UpdateConnecti" - + "onRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,bigquer" - + "yconnection.googleapis.com/Connection\022H\n" - + "\nconnection\030\002 \001(\0132/.google.cloud.bigquer" - + "y.connection.v1.ConnectionB\003\340A\002\0224\n\013updat" - + "e_mask\030\003 \001(\0132\032.google.protobuf.FieldMask" - + "B\003\340A\002\"]\n\027DeleteConnectionRequest\022B\n\004name" - + "\030\001 \001(\tB4\340A\002\372A.\n,bigqueryconnection.googl" - + "eapis.com/Connection\"\342\004\n\nConnection\022\014\n\004n" - + "ame\030\001 \001(\t\022\025\n\rfriendly_name\030\002 \001(\t\022\023\n\013desc" - + "ription\030\003 \001(\t\022L\n\tcloud_sql\030\004 \001(\01327.googl" - + "e.cloud.bigquery.connection.v1.CloudSqlP" - + "ropertiesH\000\022A\n\003aws\030\010 \001(\01322.google.cloud." - + "bigquery.connection.v1.AwsPropertiesH\000\022T" - + "\n\rcloud_spanner\030\025 \001(\0132;.google.cloud.big" - + "query.connection.v1.CloudSpannerProperti" - + "esH\000\022V\n\016cloud_resource\030\026 \001(\0132<.google.cl" - + "oud.bigquery.connection.v1.CloudResource" - + "PropertiesH\000\022\032\n\rcreation_time\030\005 \001(\003B\003\340A\003" - + "\022\037\n\022last_modified_time\030\006 \001(\003B\003\340A\003\022\033\n\016has" - + "_credential\030\007 \001(\010B\003\340A\003:s\352Ap\n,bigquerycon" - + "nection.googleapis.com/Connection\022@proje" - + "cts/{project}/locations/{location}/conne" - + "ctions/{connection}B\014\n\nproperties\"\251\002\n\022Cl" - + "oudSqlProperties\022\023\n\013instance_id\030\001 \001(\t\022\020\n" - + "\010database\030\002 \001(\t\022R\n\004type\030\003 \001(\0162D.google.c" - + "loud.bigquery.connection.v1.CloudSqlProp" - + "erties.DatabaseType\022P\n\ncredential\030\004 \001(\0132" - + "7.google.cloud.bigquery.connection.v1.Cl" - + "oudSqlCredentialB\003\340A\004\"F\n\014DatabaseType\022\035\n" - + "\031DATABASE_TYPE_UNSPECIFIED\020\000\022\014\n\010POSTGRES" - + "\020\001\022\t\n\005MYSQL\020\002\"8\n\022CloudSqlCredential\022\020\n\010u" - + "sername\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"C\n\026Cloud" - + "SpannerProperties\022\020\n\010database\030\001 \001(\t\022\027\n\017u" - + "se_parallelism\030\002 \001(\010\"\313\001\n\rAwsProperties\022V" - + "\n\022cross_account_role\030\002 \001(\01328.google.clou" - + "d.bigquery.connection.v1.AwsCrossAccount" - + "RoleH\000\022I\n\013access_role\030\003 \001(\01322.google.clo" - + "ud.bigquery.connection.v1.AwsAccessRoleH" - + "\000B\027\n\025authentication_method\"^\n\023AwsCrossAc" - + "countRole\022\023\n\013iam_role_id\030\001 \001(\t\022\030\n\013iam_us" - + "er_id\030\002 \001(\tB\003\340A\003\022\030\n\013external_id\030\003 \001(\tB\003\340" - + "A\003\"6\n\rAwsAccessRole\022\023\n\013iam_role_id\030\001 \001(\t" - + "\022\020\n\010identity\030\002 \001(\t\":\n\027CloudResourcePrope" - + "rties\022\037\n\022service_account_id\030\001 \001(\tB\003\340A\0032\314" - + "\r\n\021ConnectionService\022\350\001\n\020CreateConnectio" - + "n\022<.google.cloud.bigquery.connection.v1." - + "CreateConnectionRequest\032/.google.cloud.b" - + "igquery.connection.v1.Connection\"e\202\323\344\223\002=" - + "\"//v1/{parent=projects/*/locations/*}/co" - + "nnections:\nconnection\332A\037parent,connectio" - + "n,connection_id\022\273\001\n\rGetConnection\0229.goog" - + "le.cloud.bigquery.connection.v1.GetConne" - + "ctionRequest\032/.google.cloud.bigquery.con" - + "nection.v1.Connection\">\202\323\344\223\0021\022//v1/{name" - + "=projects/*/locations/*/connections/*}\332A" - + "\004name\022\316\001\n\017ListConnections\022;.google.cloud" - + ".bigquery.connection.v1.ListConnectionsR" - + "equest\032<.google.cloud.bigquery.connectio" - + "n.v1.ListConnectionsResponse\"@\202\323\344\223\0021\022//v" - + "1/{parent=projects/*/locations/*}/connec" - + "tions\332A\006parent\022\344\001\n\020UpdateConnection\022<.go" - + "ogle.cloud.bigquery.connection.v1.Update" - + "ConnectionRequest\032/.google.cloud.bigquer" - + "y.connection.v1.Connection\"a\202\323\344\223\002=2//v1/" - + "{name=projects/*/locations/*/connections" - + "/*}:\nconnection\332A\033name,connection,update" - + "_mask\022\250\001\n\020DeleteConnection\022<.google.clou" - + "d.bigquery.connection.v1.DeleteConnectio" - + "nRequest\032\026.google.protobuf.Empty\">\202\323\344\223\0021" - + "*//v1/{name=projects/*/locations/*/conne" - + "ctions/*}\332A\004name\022\251\001\n\014GetIamPolicy\022\".goog" - + "le.iam.v1.GetIamPolicyRequest\032\025.google.i" - + "am.v1.Policy\"^\202\323\344\223\002E\"@/v1/{resource=proj" - + "ects/*/locations/*/connections/*}:getIam" - + "Policy:\001*\332A\020resource,options\022\250\001\n\014SetIamP" - + "olicy\022\".google.iam.v1.SetIamPolicyReques" - + "t\032\025.google.iam.v1.Policy\"]\202\323\344\223\002E\"@/v1/{r" - + "esource=projects/*/locations/*/connectio" - + "ns/*}:setIamPolicy:\001*\332A\017resource,policy\022" - + "\323\001\n\022TestIamPermissions\022(.google.iam.v1.T" - + "estIamPermissionsRequest\032).google.iam.v1" - + ".TestIamPermissionsResponse\"h\202\323\344\223\002K\"F/v1" - + "/{resource=projects/*/locations/*/connec" - + "tions/*}:testIamPermissions:\001*\332A\024resourc" - + "e,permissions\032~\312A!bigqueryconnection.goo" - + "gleapis.com\322AWhttps://www.googleapis.com" - + "/auth/bigquery,https://www.googleapis.co" - + "m/auth/cloud-platformB\306\001\n\'com.google.clo" - + "ud.bigquery.connection.v1P\001ZMgoogle.gola" - + "ng.org/genproto/googleapis/cloud/bigquer" - + "y/connection/v1;connection\252\002#Google.Clou" - + "d.BigQuery.Connection.V1\312\002#Google\\Cloud\\" - + "BigQuery\\Connection\\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.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor, - new java.lang.String[] { - "Parent", "ConnectionId", "Connection", - }); - internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor, - new java.lang.String[] { - "NextPageToken", "Connections", - }); - internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor, - new java.lang.String[] { - "Name", "Connection", "UpdateMask", - }); - internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_bigquery_connection_v1_Connection_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor, - new java.lang.String[] { - "Name", - "FriendlyName", - "Description", - "CloudSql", - "Aws", - "CloudSpanner", - "CloudResource", - "CreationTime", - "LastModifiedTime", - "HasCredential", - "Properties", - }); - internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor, - new java.lang.String[] { - "InstanceId", "Database", "Type", "Credential", - }); - internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_descriptor, - new java.lang.String[] { - "Username", "Password", - }); - internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor, - new java.lang.String[] { - "Database", "UseParallelism", - }); - internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_bigquery_connection_v1_AwsProperties_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor, - new java.lang.String[] { - "CrossAccountRole", "AccessRole", "AuthenticationMethod", - }); - internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor, - new java.lang.String[] { - "IamRoleId", "IamUserId", "ExternalId", - }); - internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor, - new java.lang.String[] { - "IamRoleId", "Identity", - }); - internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor, - new java.lang.String[] { - "ServiceAccountId", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequestOrBuilder.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequestOrBuilder.java deleted file mode 100644 index 7dcb0a56..00000000 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/connection/v1/connection.proto - -package com.google.cloud.bigquery.connection.v1; - -public interface DeleteConnectionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.DeleteConnectionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the deleted connection, for example:
-   * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the deleted connection, for example:
-   * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequestOrBuilder.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequestOrBuilder.java deleted file mode 100644 index e2b275c5..00000000 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/connection/v1/connection.proto - -package com.google.cloud.bigquery.connection.v1; - -public interface GetConnectionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.GetConnectionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the requested connection, for example:
-   * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the requested connection, for example:
-   * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} From 3a291ef47ea66d61a7b203936f9a6b28c89130ba Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 03:00:19 +0000 Subject: [PATCH 2/3] =?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 --- .../v1beta1/ConnectionServiceClient.java | 6 +- .../v1beta1/ConnectionServiceSettings.java | 7 +- .../connection/v1beta1/gapic_metadata.json | 0 .../connection/v1beta1/package-info.java | 0 .../v1beta1/stub/ConnectionServiceStub.java | 0 .../stub/ConnectionServiceStubSettings.java | 6 +- .../GrpcConnectionServiceCallableFactory.java | 0 .../stub/GrpcConnectionServiceStub.java | 1 - ...pJsonConnectionServiceCallableFactory.java | 0 .../stub/HttpJsonConnectionServiceStub.java | 0 .../v1/ConnectionServiceClient.java | 16 +- .../v1/ConnectionServiceSettings.java | 7 +- .../bigqueryconnection/v1/gapic_metadata.json | 0 .../bigqueryconnection/v1/package-info.java | 0 .../v1/stub/ConnectionServiceStub.java | 0 .../stub/ConnectionServiceStubSettings.java | 6 +- .../GrpcConnectionServiceCallableFactory.java | 0 .../v1/stub/GrpcConnectionServiceStub.java | 1 - ...pJsonConnectionServiceCallableFactory.java | 0 .../stub/HttpJsonConnectionServiceStub.java | 0 .../ConnectionServiceClientHttpJsonTest.java | 0 .../v1beta1/ConnectionServiceClientTest.java | 0 .../v1beta1/MockConnectionService.java | 0 .../v1beta1/MockConnectionServiceImpl.java | 0 .../ConnectionServiceClientHttpJsonTest.java | 0 .../v1/ConnectionServiceClientTest.java | 0 .../v1/MockConnectionService.java | 0 .../v1/MockConnectionServiceImpl.java | 0 .../connection/v1/ConnectionServiceGrpc.java | 1216 +++ .../v1beta1/ConnectionServiceGrpc.java | 1417 +++ .../connection/v1/ConnectionServiceGrpc.java | 945 -- .../connection/v1/ConnectionOuterClass.java | 330 - .../v1/DeleteConnectionRequestOrBuilder.java | 31 - .../v1/GetConnectionRequestOrBuilder.java | 31 - .../v1beta1/ConnectionServiceGrpc.java | 1031 --- .../bigquery/connection/v1/AwsAccessRole.java | 393 +- .../connection/v1/AwsAccessRoleOrBuilder.java | 36 +- .../connection/v1/AwsCrossAccountRole.java | 472 +- .../v1/AwsCrossAccountRoleOrBuilder.java | 45 +- .../bigquery/connection/v1/AwsProperties.java | 540 +- .../connection/v1/AwsPropertiesOrBuilder.java | 40 +- .../v1/CloudResourceProperties.java | 335 +- .../v1/CloudResourcePropertiesOrBuilder.java | 27 +- .../connection/v1/CloudSpannerProperties.java | 369 +- .../v1/CloudSpannerPropertiesOrBuilder.java | 30 +- .../connection/v1/CloudSqlCredential.java | 393 +- .../v1/CloudSqlCredentialOrBuilder.java | 36 +- .../connection/v1/CloudSqlProperties.java | 697 +- .../v1/CloudSqlPropertiesOrBuilder.java | 62 +- .../bigquery/connection/v1/Connection.java | 1154 ++- .../connection/v1/ConnectionName.java | 0 .../connection/v1/ConnectionOrBuilder.java | 92 +- .../connection/v1/ConnectionOuterClass.java | 368 + .../v1/CreateConnectionRequest.java | 589 +- .../v1/CreateConnectionRequestOrBuilder.java | 64 +- .../v1/DeleteConnectionRequest.java | 363 +- .../v1/DeleteConnectionRequestOrBuilder.java | 56 + .../connection/v1/GetConnectionRequest.java | 349 +- .../v1/GetConnectionRequestOrBuilder.java | 56 + .../connection/v1/ListConnectionsRequest.java | 473 +- .../v1/ListConnectionsRequestOrBuilder.java | 47 +- .../v1/ListConnectionsResponse.java | 470 +- .../v1/ListConnectionsResponseOrBuilder.java | 45 +- .../bigquery/connection/v1/LocationName.java | 0 .../v1/UpdateConnectionRequest.java | 640 +- .../v1/UpdateConnectionRequestOrBuilder.java | 72 +- .../bigquery/connection/v1/connection.proto | 0 .../connection/v1beta1/ConnectionName.java | 0 .../connection/v1beta1/ConnectionProto.java | 7906 +++++++++++------ .../connection/v1beta1/LocationName.java | 0 .../connection/v1beta1/connection.proto | 0 71 files changed, 13080 insertions(+), 8190 deletions(-) rename {owl-bot-staging/v1beta1/google-cloud-bigqueryconnection => google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java (99%) rename {owl-bot-staging/v1beta1/google-cloud-bigqueryconnection => google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java (97%) rename {owl-bot-staging/v1beta1/google-cloud-bigqueryconnection => google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigquery/connection/v1beta1/gapic_metadata.json (100%) rename {owl-bot-staging/v1beta1/google-cloud-bigqueryconnection => google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigquery/connection/v1beta1/package-info.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-bigqueryconnection => google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStub.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-bigqueryconnection => google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java (98%) rename {owl-bot-staging/v1beta1/google-cloud-bigqueryconnection => google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceCallableFactory.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-bigqueryconnection => google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java (99%) rename {owl-bot-staging/v1beta1/google-cloud-bigqueryconnection => google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceCallableFactory.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-bigqueryconnection => google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceStub.java (100%) rename {owl-bot-staging/v1/google-cloud-bigqueryconnection => google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java (98%) rename {owl-bot-staging/v1/google-cloud-bigqueryconnection => google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java (97%) rename {owl-bot-staging/v1/google-cloud-bigqueryconnection => google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigqueryconnection/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-bigqueryconnection => google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigqueryconnection/v1/package-info.java (100%) rename {owl-bot-staging/v1/google-cloud-bigqueryconnection => google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStub.java (100%) rename {owl-bot-staging/v1/google-cloud-bigqueryconnection => google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java (98%) rename {owl-bot-staging/v1/google-cloud-bigqueryconnection => google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-bigqueryconnection => google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java (99%) rename {owl-bot-staging/v1/google-cloud-bigqueryconnection => google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-bigqueryconnection => google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceStub.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-bigqueryconnection => google-cloud-bigqueryconnection}/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-bigqueryconnection => google-cloud-bigqueryconnection}/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientTest.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-bigqueryconnection => google-cloud-bigqueryconnection}/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionService.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-bigqueryconnection => google-cloud-bigqueryconnection}/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionServiceImpl.java (100%) rename {owl-bot-staging/v1/google-cloud-bigqueryconnection => google-cloud-bigqueryconnection}/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1/google-cloud-bigqueryconnection => google-cloud-bigqueryconnection}/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientTest.java (100%) rename {owl-bot-staging/v1/google-cloud-bigqueryconnection => google-cloud-bigqueryconnection}/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionService.java (100%) rename {owl-bot-staging/v1/google-cloud-bigqueryconnection => google-cloud-bigqueryconnection}/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionServiceImpl.java (100%) create mode 100644 grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java create mode 100644 grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java rename {owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1 => proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1 => proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1 => proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRole.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1 => proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRoleOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1 => proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1 => proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1 => proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourceProperties.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1 => proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourcePropertiesOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1 => proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1 => proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java (55%) rename {owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1 => proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredential.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1 => proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredentialOrBuilder.java (54%) rename {owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1 => proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1 => proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1 => proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1 => proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1 => proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java (82%) create mode 100644 proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java rename {owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1 => proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequest.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1 => proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequestOrBuilder.java (53%) rename {owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1 => proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequest.java (64%) create mode 100644 proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1 => proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequest.java (66%) create mode 100644 proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1 => proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequest.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1 => proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequestOrBuilder.java (52%) rename {owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1 => proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponse.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1 => proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponseOrBuilder.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1 => proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/LocationName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1 => proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequest.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1 => proto-google-cloud-bigqueryconnection-v1}/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequestOrBuilder.java (56%) rename {owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1 => proto-google-cloud-bigqueryconnection-v1}/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1 => proto-google-cloud-bigqueryconnection-v1beta1}/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1 => proto-google-cloud-bigqueryconnection-v1beta1}/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java (59%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1 => proto-google-cloud-bigqueryconnection-v1beta1}/src/main/java/com/google/cloud/bigquery/connection/v1beta1/LocationName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1 => proto-google-cloud-bigqueryconnection-v1beta1}/src/main/proto/google/cloud/bigquery/connection/v1beta1/connection.proto (100%) diff --git a/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java similarity index 99% rename from owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java rename to google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java index 3bfa2540..a10a03f7 100644 --- a/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java +++ b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.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. *
* diff --git a/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java similarity index 97% rename from owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java rename to google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java index 6024b50e..af7bb3ca 100644 --- a/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java +++ b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java @@ -25,7 +25,6 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.bigquery.connection.v1beta1.stub.ConnectionServiceStubSettings; @@ -46,10 +45,10 @@ *

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

    - *
  • The default service address (bigqueryconnection.googleapis.com) and default port (443) are + *
  • The default service address (bigqueryconnection.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. + *
  • 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/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/gapic_metadata.json b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/gapic_metadata.json rename to google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/gapic_metadata.json diff --git a/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/package-info.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/package-info.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/package-info.java rename to google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/package-info.java diff --git a/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStub.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStub.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStub.java rename to google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStub.java diff --git a/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java similarity index 98% rename from owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java rename to google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java index b70b3877..5e035681 100644 --- a/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java +++ b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java @@ -57,10 +57,10 @@ *

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

    - *
  • The default service address (bigqueryconnection.googleapis.com) and default port (443) are + *
  • The default service address (bigqueryconnection.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. + *
  • 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/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceCallableFactory.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceCallableFactory.java rename to google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceCallableFactory.java diff --git a/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java similarity index 99% rename from owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java rename to google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java index fd17eef2..012a6e07 100644 --- a/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java +++ b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java @@ -35,7 +35,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/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceCallableFactory.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceCallableFactory.java rename to google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceCallableFactory.java diff --git a/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceStub.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceStub.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceStub.java rename to google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceStub.java diff --git a/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java rename to google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java index 97910241..ee225deb 100644 --- a/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java +++ b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java @@ -77,13 +77,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. *
* @@ -1193,7 +1193,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListConnectionsPagedResponse extends AbstractPagedListResponse< - ListConnectionsRequest, ListConnectionsResponse, Connection, ListConnectionsPage, + ListConnectionsRequest, + ListConnectionsResponse, + Connection, + ListConnectionsPage, ListConnectionsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1243,7 +1246,10 @@ public ApiFuture createPageAsync( public static class ListConnectionsFixedSizeCollection extends AbstractFixedSizeCollection< - ListConnectionsRequest, ListConnectionsResponse, Connection, ListConnectionsPage, + ListConnectionsRequest, + ListConnectionsResponse, + Connection, + ListConnectionsPage, ListConnectionsFixedSizeCollection> { private ListConnectionsFixedSizeCollection( diff --git a/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java rename to google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java index c1dda4a8..16619b29 100644 --- a/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java +++ b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.bigquery.connection.v1.Connection; @@ -56,10 +55,10 @@ *

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

    - *
  • The default service address (bigqueryconnection.googleapis.com) and default port (443) are + *
  • The default service address (bigqueryconnection.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. + *
  • 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-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/gapic_metadata.json b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/gapic_metadata.json rename to google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/package-info.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/package-info.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/package-info.java rename to google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/package-info.java diff --git a/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStub.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStub.java rename to google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStub.java diff --git a/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java rename to google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java index 0a845838..2174b9e4 100644 --- a/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java +++ b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java @@ -72,10 +72,10 @@ *

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

    - *
  • The default service address (bigqueryconnection.googleapis.com) and default port (443) are + *
  • The default service address (bigqueryconnection.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. + *
  • 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-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceCallableFactory.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceCallableFactory.java rename to google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java rename to google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java index 08551b68..31b7ac5d 100644 --- a/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java +++ b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java @@ -42,7 +42,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceCallableFactory.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceCallableFactory.java rename to google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceStub.java b/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceStub.java rename to google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceStub.java diff --git a/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientHttpJsonTest.java b/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientHttpJsonTest.java rename to google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientTest.java b/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientTest.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientTest.java rename to google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientTest.java diff --git a/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionService.java b/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionService.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionService.java rename to google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionService.java diff --git a/owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionServiceImpl.java b/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionServiceImpl.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionServiceImpl.java rename to google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionServiceImpl.java diff --git a/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientHttpJsonTest.java b/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientHttpJsonTest.java rename to google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientTest.java b/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientTest.java rename to google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionService.java b/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionService.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionService.java rename to google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionService.java diff --git a/owl-bot-staging/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionServiceImpl.java b/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionServiceImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionServiceImpl.java rename to google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionServiceImpl.java diff --git a/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java b/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java new file mode 100644 index 00000000..3c517226 --- /dev/null +++ b/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java @@ -0,0 +1,1216 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.bigquery.connection.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

+ * Manages external data source connections and credentials.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/bigquery/connection/v1/connection.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ConnectionServiceGrpc { + + private ConnectionServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.bigquery.connection.v1.ConnectionService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection> + getCreateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateConnection", + requestType = com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.class, + responseType = com.google.cloud.bigquery.connection.v1.Connection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection> + getCreateConnectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection> + getCreateConnectionMethod; + if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { + ConnectionServiceGrpc.getCreateConnectionMethod = + getCreateConnectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.Connection + .getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("CreateConnection")) + .build(); + } + } + } + return getCreateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.GetConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection> + getGetConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConnection", + requestType = com.google.cloud.bigquery.connection.v1.GetConnectionRequest.class, + responseType = com.google.cloud.bigquery.connection.v1.Connection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.GetConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection> + getGetConnectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.GetConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection> + getGetConnectionMethod; + if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { + ConnectionServiceGrpc.getGetConnectionMethod = + getGetConnectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.GetConnectionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.Connection + .getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("GetConnection")) + .build(); + } + } + } + return getGetConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest, + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse> + getListConnectionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConnections", + requestType = com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.class, + responseType = com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest, + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse> + getListConnectionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest, + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse> + getListConnectionsMethod; + if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { + ConnectionServiceGrpc.getListConnectionsMethod = + getListConnectionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnections")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("ListConnections")) + .build(); + } + } + } + return getListConnectionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection> + getUpdateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConnection", + requestType = com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.class, + responseType = com.google.cloud.bigquery.connection.v1.Connection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection> + getUpdateConnectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection> + getUpdateConnectionMethod; + if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { + ConnectionServiceGrpc.getUpdateConnectionMethod = + getUpdateConnectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.Connection + .getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("UpdateConnection")) + .build(); + } + } + } + return getUpdateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest, + com.google.protobuf.Empty> + getDeleteConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConnection", + requestType = com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest, + com.google.protobuf.Empty> + getDeleteConnectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest, + com.google.protobuf.Empty> + getDeleteConnectionMethod; + if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { + ConnectionServiceGrpc.getDeleteConnectionMethod = + getDeleteConnectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("DeleteConnection")) + .build(); + } + } + } + return getDeleteConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", + requestType = com.google.iam.v1.GetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod() { + io.grpc.MethodDescriptor + getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { + ConnectionServiceGrpc.getGetIamPolicyMethod = + getGetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", + requestType = com.google.iam.v1.SetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod() { + io.grpc.MethodDescriptor + getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { + ConnectionServiceGrpc.getSetIamPolicyMethod = + getSetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", + requestType = com.google.iam.v1.TestIamPermissionsRequest.class, + responseType = com.google.iam.v1.TestIamPermissionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) + == null) { + ConnectionServiceGrpc.getTestIamPermissionsMethod = + getTestIamPermissionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ConnectionServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceStub(channel, callOptions); + } + }; + return ConnectionServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ConnectionServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceBlockingStub(channel, callOptions); + } + }; + return ConnectionServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ConnectionServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceFutureStub(channel, callOptions); + } + }; + return ConnectionServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Manages external data source connections and credentials.
+   * 
+ */ + public abstract static class ConnectionServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a new connection.
+     * 
+ */ + public void createConnection( + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns specified connection.
+     * 
+ */ + public void getConnection( + com.google.cloud.bigquery.connection.v1.GetConnectionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a list of connections in the given project.
+     * 
+ */ + public void listConnections( + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListConnectionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the specified connection. For security reasons, also resets
+     * credential if connection properties are in the update field mask.
+     * 
+ */ + public void updateConnection( + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes connection and associated credential.
+     * 
+ */ + public void deleteConnection( + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
+     * 
+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a `NOT_FOUND` error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTestIamPermissionsMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection>( + this, METHODID_CREATE_CONNECTION))) + .addMethod( + getGetConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1.GetConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection>( + this, METHODID_GET_CONNECTION))) + .addMethod( + getListConnectionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest, + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse>( + this, METHODID_LIST_CONNECTIONS))) + .addMethod( + getUpdateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection>( + this, METHODID_UPDATE_CONNECTION))) + .addMethod( + getDeleteConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_CONNECTION))) + .addMethod( + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( + this, METHODID_GET_IAM_POLICY))) + .addMethod( + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( + this, METHODID_SET_IAM_POLICY))) + .addMethod( + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + this, METHODID_TEST_IAM_PERMISSIONS))) + .build(); + } + } + + /** + * + * + *
+   * Manages external data source connections and credentials.
+   * 
+ */ + public static final class ConnectionServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private ConnectionServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConnectionServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new connection.
+     * 
+ */ + public void createConnection( + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateConnectionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns specified connection.
+     * 
+ */ + public void getConnection( + com.google.cloud.bigquery.connection.v1.GetConnectionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConnectionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a list of connections in the given project.
+     * 
+ */ + public void listConnections( + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListConnectionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the specified connection. For security reasons, also resets
+     * credential if connection properties are in the update field mask.
+     * 
+ */ + public void updateConnection( + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConnectionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes connection and associated credential.
+     * 
+ */ + public void deleteConnection( + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteConnectionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
+     * 
+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a `NOT_FOUND` error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Manages external data source connections and credentials.
+   * 
+ */ + public static final class ConnectionServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ConnectionServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConnectionServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new connection.
+     * 
+ */ + public com.google.cloud.bigquery.connection.v1.Connection createConnection( + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns specified connection.
+     * 
+ */ + public com.google.cloud.bigquery.connection.v1.Connection getConnection( + com.google.cloud.bigquery.connection.v1.GetConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns a list of connections in the given project.
+     * 
+ */ + public com.google.cloud.bigquery.connection.v1.ListConnectionsResponse listConnections( + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListConnectionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the specified connection. For security reasons, also resets
+     * credential if connection properties are in the update field mask.
+     * 
+ */ + public com.google.cloud.bigquery.connection.v1.Connection updateConnection( + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes connection and associated credential.
+     * 
+ */ + public com.google.protobuf.Empty deleteConnection( + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a `NOT_FOUND` error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Manages external data source connections and credentials.
+   * 
+ */ + public static final class ConnectionServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ConnectionServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConnectionServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new connection.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.connection.v1.Connection> + createConnection(com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateConnectionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns specified connection.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.connection.v1.Connection> + getConnection(com.google.cloud.bigquery.connection.v1.GetConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConnectionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns a list of connections in the given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse> + listConnections(com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListConnectionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the specified connection. For security reasons, also resets
+     * credential if connection properties are in the update field mask.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.connection.v1.Connection> + updateConnection(com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateConnectionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes connection and associated credential.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteConnection(com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteConnectionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a `NOT_FOUND` error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.iam.v1.TestIamPermissionsResponse> + testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_CONNECTION = 0; + private static final int METHODID_GET_CONNECTION = 1; + private static final int METHODID_LIST_CONNECTIONS = 2; + private static final int METHODID_UPDATE_CONNECTION = 3; + private static final int METHODID_DELETE_CONNECTION = 4; + private static final int METHODID_GET_IAM_POLICY = 5; + private static final int METHODID_SET_IAM_POLICY = 6; + private static final int METHODID_TEST_IAM_PERMISSIONS = 7; + + 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 ConnectionServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ConnectionServiceImplBase 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_CONNECTION: + serviceImpl.createConnection( + (com.google.cloud.bigquery.connection.v1.CreateConnectionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_CONNECTION: + serviceImpl.getConnection( + (com.google.cloud.bigquery.connection.v1.GetConnectionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CONNECTIONS: + serviceImpl.listConnections( + (com.google.cloud.bigquery.connection.v1.ListConnectionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse>) + responseObserver); + break; + case METHODID_UPDATE_CONNECTION: + serviceImpl.updateConnection( + (com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_CONNECTION: + serviceImpl.deleteConnection( + (com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy( + (com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy( + (com.google.iam.v1.SetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TEST_IAM_PERMISSIONS: + serviceImpl.testIamPermissions( + (com.google.iam.v1.TestIamPermissionsRequest) 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 ConnectionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ConnectionServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ConnectionService"); + } + } + + private static final class ConnectionServiceFileDescriptorSupplier + extends ConnectionServiceBaseDescriptorSupplier { + ConnectionServiceFileDescriptorSupplier() {} + } + + private static final class ConnectionServiceMethodDescriptorSupplier + extends ConnectionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ConnectionServiceMethodDescriptorSupplier(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 (ConnectionServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ConnectionServiceFileDescriptorSupplier()) + .addMethod(getCreateConnectionMethod()) + .addMethod(getGetConnectionMethod()) + .addMethod(getListConnectionsMethod()) + .addMethod(getUpdateConnectionMethod()) + .addMethod(getDeleteConnectionMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java b/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java new file mode 100644 index 00000000..fed7c438 --- /dev/null +++ b/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java @@ -0,0 +1,1417 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.bigquery.connection.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Manages external data source connections and credentials.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/bigquery/connection/v1beta1/connection.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ConnectionServiceGrpc { + + private ConnectionServiceGrpc() {} + + public static final String SERVICE_NAME = + "google.cloud.bigquery.connection.v1beta1.ConnectionService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + getCreateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateConnection", + requestType = + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest + .class, + responseType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + getCreateConnectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + getCreateConnectionMethod; + if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { + ConnectionServiceGrpc.getCreateConnectionMethod = + getCreateConnectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CreateConnectionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .Connection.getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("CreateConnection")) + .build(); + } + } + } + return getCreateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + getGetConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConnection", + requestType = + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.class, + responseType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + getGetConnectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + getGetConnectionMethod; + if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { + ConnectionServiceGrpc.getGetConnectionMethod = + getGetConnectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .GetConnectionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .Connection.getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("GetConnection")) + .build(); + } + } + } + return getGetConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse> + getListConnectionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConnections", + requestType = + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.class, + responseType = + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse + .class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse> + getListConnectionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse> + getListConnectionsMethod; + if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { + ConnectionServiceGrpc.getListConnectionsMethod = + getListConnectionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnections")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("ListConnections")) + .build(); + } + } + } + return getListConnectionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + getUpdateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConnection", + requestType = + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest + .class, + responseType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + getUpdateConnectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + getUpdateConnectionMethod; + if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { + ConnectionServiceGrpc.getUpdateConnectionMethod = + getUpdateConnectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .Connection.getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("UpdateConnection")) + .build(); + } + } + } + return getUpdateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest, + com.google.protobuf.Empty> + getUpdateConnectionCredentialMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConnectionCredential", + requestType = + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest, + com.google.protobuf.Empty> + getUpdateConnectionCredentialMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest, + com.google.protobuf.Empty> + getUpdateConnectionCredentialMethod; + if ((getUpdateConnectionCredentialMethod = + ConnectionServiceGrpc.getUpdateConnectionCredentialMethod) + == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getUpdateConnectionCredentialMethod = + ConnectionServiceGrpc.getUpdateConnectionCredentialMethod) + == null) { + ConnectionServiceGrpc.getUpdateConnectionCredentialMethod = + getUpdateConnectionCredentialMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateConnectionCredential")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier( + "UpdateConnectionCredential")) + .build(); + } + } + } + return getUpdateConnectionCredentialMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest, + com.google.protobuf.Empty> + getDeleteConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConnection", + requestType = + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest + .class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest, + com.google.protobuf.Empty> + getDeleteConnectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest, + com.google.protobuf.Empty> + getDeleteConnectionMethod; + if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { + ConnectionServiceGrpc.getDeleteConnectionMethod = + getDeleteConnectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .DeleteConnectionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("DeleteConnection")) + .build(); + } + } + } + return getDeleteConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", + requestType = com.google.iam.v1.GetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod() { + io.grpc.MethodDescriptor + getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { + ConnectionServiceGrpc.getGetIamPolicyMethod = + getGetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", + requestType = com.google.iam.v1.SetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod() { + io.grpc.MethodDescriptor + getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { + ConnectionServiceGrpc.getSetIamPolicyMethod = + getSetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", + requestType = com.google.iam.v1.TestIamPermissionsRequest.class, + responseType = com.google.iam.v1.TestIamPermissionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) + == null) { + ConnectionServiceGrpc.getTestIamPermissionsMethod = + getTestIamPermissionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ConnectionServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceStub(channel, callOptions); + } + }; + return ConnectionServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ConnectionServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceBlockingStub(channel, callOptions); + } + }; + return ConnectionServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ConnectionServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceFutureStub(channel, callOptions); + } + }; + return ConnectionServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Manages external data source connections and credentials.
+   * 
+ */ + public abstract static class ConnectionServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a new connection.
+     * 
+ */ + public void createConnection( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns specified connection.
+     * 
+ */ + public void getConnection( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a list of connections in the given project.
+     * 
+ */ + public void listConnections( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListConnectionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the specified connection. For security reasons, also resets
+     * credential if connection properties are in the update field mask.
+     * 
+ */ + public void updateConnection( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the credential for the specified connection.
+     * 
+ */ + public void updateConnectionCredential( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest + request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateConnectionCredentialMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes connection and associated credential.
+     * 
+ */ + public void deleteConnection( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest + request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
+     * 
+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a NOT_FOUND error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTestIamPermissionsMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CreateConnectionRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection>( + this, METHODID_CREATE_CONNECTION))) + .addMethod( + getGetConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .GetConnectionRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection>( + this, METHODID_GET_CONNECTION))) + .addMethod( + getListConnectionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsResponse>(this, METHODID_LIST_CONNECTIONS))) + .addMethod( + getUpdateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection>( + this, METHODID_UPDATE_CONNECTION))) + .addMethod( + getUpdateConnectionCredentialMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest, + com.google.protobuf.Empty>(this, METHODID_UPDATE_CONNECTION_CREDENTIAL))) + .addMethod( + getDeleteConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .DeleteConnectionRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_CONNECTION))) + .addMethod( + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( + this, METHODID_GET_IAM_POLICY))) + .addMethod( + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( + this, METHODID_SET_IAM_POLICY))) + .addMethod( + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + this, METHODID_TEST_IAM_PERMISSIONS))) + .build(); + } + } + + /** + * + * + *
+   * Manages external data source connections and credentials.
+   * 
+ */ + public static final class ConnectionServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private ConnectionServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConnectionServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new connection.
+     * 
+ */ + public void createConnection( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateConnectionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns specified connection.
+     * 
+ */ + public void getConnection( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConnectionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a list of connections in the given project.
+     * 
+ */ + public void listConnections( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListConnectionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the specified connection. For security reasons, also resets
+     * credential if connection properties are in the update field mask.
+     * 
+ */ + public void updateConnection( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConnectionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets the credential for the specified connection.
+     * 
+ */ + public void updateConnectionCredential( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest + request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConnectionCredentialMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes connection and associated credential.
+     * 
+ */ + public void deleteConnection( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest + request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteConnectionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
+     * 
+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a NOT_FOUND error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Manages external data source connections and credentials.
+   * 
+ */ + public static final class ConnectionServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ConnectionServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConnectionServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new connection.
+     * 
+ */ + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection createConnection( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns specified connection.
+     * 
+ */ + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConnection( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns a list of connections in the given project.
+     * 
+ */ + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse + listConnections( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListConnectionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the specified connection. For security reasons, also resets
+     * credential if connection properties are in the update field mask.
+     * 
+ */ + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection updateConnection( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the credential for the specified connection.
+     * 
+ */ + public com.google.protobuf.Empty updateConnectionCredential( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConnectionCredentialMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes connection and associated credential.
+     * 
+ */ + public com.google.protobuf.Empty deleteConnection( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a NOT_FOUND error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Manages external data source connections and credentials.
+   * 
+ */ + public static final class ConnectionServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ConnectionServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConnectionServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new connection.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + createConnection( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateConnectionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns specified connection.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + getConnection( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConnectionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns a list of connections in the given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse> + listConnections( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListConnectionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the specified connection. For security reasons, also resets
+     * credential if connection properties are in the update field mask.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + updateConnection( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateConnectionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the credential for the specified connection.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateConnectionCredential( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateConnectionCredentialMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes connection and associated credential.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteConnection( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteConnectionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a NOT_FOUND error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.iam.v1.TestIamPermissionsResponse> + testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_CONNECTION = 0; + private static final int METHODID_GET_CONNECTION = 1; + private static final int METHODID_LIST_CONNECTIONS = 2; + private static final int METHODID_UPDATE_CONNECTION = 3; + private static final int METHODID_UPDATE_CONNECTION_CREDENTIAL = 4; + private static final int METHODID_DELETE_CONNECTION = 5; + private static final int METHODID_GET_IAM_POLICY = 6; + private static final int METHODID_SET_IAM_POLICY = 7; + private static final int METHODID_TEST_IAM_PERMISSIONS = 8; + + 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 ConnectionServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ConnectionServiceImplBase 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_CONNECTION: + serviceImpl.createConnection( + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection>) + responseObserver); + break; + case METHODID_GET_CONNECTION: + serviceImpl.getConnection( + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection>) + responseObserver); + break; + case METHODID_LIST_CONNECTIONS: + serviceImpl.listConnections( + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsResponse>) + responseObserver); + break; + case METHODID_UPDATE_CONNECTION: + serviceImpl.updateConnection( + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection>) + responseObserver); + break; + case METHODID_UPDATE_CONNECTION_CREDENTIAL: + serviceImpl.updateConnectionCredential( + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CONNECTION: + serviceImpl.deleteConnection( + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy( + (com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy( + (com.google.iam.v1.SetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TEST_IAM_PERMISSIONS: + serviceImpl.testIamPermissions( + (com.google.iam.v1.TestIamPermissionsRequest) 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 ConnectionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ConnectionServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ConnectionService"); + } + } + + private static final class ConnectionServiceFileDescriptorSupplier + extends ConnectionServiceBaseDescriptorSupplier { + ConnectionServiceFileDescriptorSupplier() {} + } + + private static final class ConnectionServiceMethodDescriptorSupplier + extends ConnectionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ConnectionServiceMethodDescriptorSupplier(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 (ConnectionServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ConnectionServiceFileDescriptorSupplier()) + .addMethod(getCreateConnectionMethod()) + .addMethod(getGetConnectionMethod()) + .addMethod(getListConnectionsMethod()) + .addMethod(getUpdateConnectionMethod()) + .addMethod(getUpdateConnectionCredentialMethod()) + .addMethod(getDeleteConnectionMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java deleted file mode 100644 index f9bfa808..00000000 --- a/owl-bot-staging/v1/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java +++ /dev/null @@ -1,945 +0,0 @@ -package com.google.cloud.bigquery.connection.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Manages external data source connections and credentials.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/connection/v1/connection.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ConnectionServiceGrpc { - - private ConnectionServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.bigquery.connection.v1.ConnectionService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateConnection", - requestType = com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.class, - responseType = com.google.cloud.bigquery.connection.v1.Connection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateConnectionMethod() { - io.grpc.MethodDescriptor getCreateConnectionMethod; - if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { - ConnectionServiceGrpc.getCreateConnectionMethod = getCreateConnectionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("CreateConnection")) - .build(); - } - } - } - return getCreateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetConnection", - requestType = com.google.cloud.bigquery.connection.v1.GetConnectionRequest.class, - responseType = com.google.cloud.bigquery.connection.v1.Connection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetConnectionMethod() { - io.grpc.MethodDescriptor getGetConnectionMethod; - if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { - ConnectionServiceGrpc.getGetConnectionMethod = getGetConnectionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.GetConnectionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("GetConnection")) - .build(); - } - } - } - return getGetConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor getListConnectionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListConnections", - requestType = com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.class, - responseType = com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListConnectionsMethod() { - io.grpc.MethodDescriptor getListConnectionsMethod; - if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { - ConnectionServiceGrpc.getListConnectionsMethod = getListConnectionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnections")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("ListConnections")) - .build(); - } - } - } - return getListConnectionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateConnection", - requestType = com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.class, - responseType = com.google.cloud.bigquery.connection.v1.Connection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateConnectionMethod() { - io.grpc.MethodDescriptor getUpdateConnectionMethod; - if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { - ConnectionServiceGrpc.getUpdateConnectionMethod = getUpdateConnectionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("UpdateConnection")) - .build(); - } - } - } - return getUpdateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteConnection", - requestType = com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteConnectionMethod() { - io.grpc.MethodDescriptor getDeleteConnectionMethod; - if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { - ConnectionServiceGrpc.getDeleteConnectionMethod = getDeleteConnectionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("DeleteConnection")) - .build(); - } - } - } - return getDeleteConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", - requestType = com.google.iam.v1.GetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetIamPolicyMethod() { - io.grpc.MethodDescriptor getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { - ConnectionServiceGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", - requestType = com.google.iam.v1.SetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetIamPolicyMethod() { - io.grpc.MethodDescriptor getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { - ConnectionServiceGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", - requestType = com.google.iam.v1.TestIamPermissionsRequest.class, - responseType = com.google.iam.v1.TestIamPermissionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) == null) { - ConnectionServiceGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static ConnectionServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceStub(channel, callOptions); - } - }; - return ConnectionServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ConnectionServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceBlockingStub(channel, callOptions); - } - }; - return ConnectionServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static ConnectionServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceFutureStub(channel, callOptions); - } - }; - return ConnectionServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Manages external data source connections and credentials.
-   * 
- */ - public static abstract class ConnectionServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates a new connection.
-     * 
- */ - public void createConnection(com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateConnectionMethod(), responseObserver); - } - - /** - *
-     * Returns specified connection.
-     * 
- */ - public void getConnection(com.google.cloud.bigquery.connection.v1.GetConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConnectionMethod(), responseObserver); - } - - /** - *
-     * Returns a list of connections in the given project.
-     * 
- */ - public void listConnections(com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListConnectionsMethod(), responseObserver); - } - - /** - *
-     * Updates the specified connection. For security reasons, also resets
-     * credential if connection properties are in the update field mask.
-     * 
- */ - public void updateConnection(com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConnectionMethod(), responseObserver); - } - - /** - *
-     * Deletes connection and associated credential.
-     * 
- */ - public void deleteConnection(com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteConnectionMethod(), responseObserver); - } - - /** - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); - } - - /** - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
-     * 
- */ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); - } - - /** - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a `NOT_FOUND` error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection>( - this, METHODID_CREATE_CONNECTION))) - .addMethod( - getGetConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1.GetConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection>( - this, METHODID_GET_CONNECTION))) - .addMethod( - getListConnectionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest, - com.google.cloud.bigquery.connection.v1.ListConnectionsResponse>( - this, METHODID_LIST_CONNECTIONS))) - .addMethod( - getUpdateConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection>( - this, METHODID_UPDATE_CONNECTION))) - .addMethod( - getDeleteConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_CONNECTION))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, - com.google.iam.v1.Policy>( - this, METHODID_GET_IAM_POLICY))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, - com.google.iam.v1.Policy>( - this, METHODID_SET_IAM_POLICY))) - .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - this, METHODID_TEST_IAM_PERMISSIONS))) - .build(); - } - } - - /** - *
-   * Manages external data source connections and credentials.
-   * 
- */ - public static final class ConnectionServiceStub extends io.grpc.stub.AbstractAsyncStub { - private ConnectionServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConnectionServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceStub(channel, callOptions); - } - - /** - *
-     * Creates a new connection.
-     * 
- */ - public void createConnection(com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateConnectionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns specified connection.
-     * 
- */ - public void getConnection(com.google.cloud.bigquery.connection.v1.GetConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConnectionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns a list of connections in the given project.
-     * 
- */ - public void listConnections(com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListConnectionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the specified connection. For security reasons, also resets
-     * credential if connection properties are in the update field mask.
-     * 
- */ - public void updateConnection(com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateConnectionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes connection and associated credential.
-     * 
- */ - public void deleteConnection(com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteConnectionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
-     * 
- */ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a `NOT_FOUND` error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Manages external data source connections and credentials.
-   * 
- */ - public static final class ConnectionServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private ConnectionServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConnectionServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a new connection.
-     * 
- */ - public com.google.cloud.bigquery.connection.v1.Connection createConnection(com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateConnectionMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns specified connection.
-     * 
- */ - public com.google.cloud.bigquery.connection.v1.Connection getConnection(com.google.cloud.bigquery.connection.v1.GetConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConnectionMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns a list of connections in the given project.
-     * 
- */ - public com.google.cloud.bigquery.connection.v1.ListConnectionsResponse listConnections(com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListConnectionsMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the specified connection. For security reasons, also resets
-     * credential if connection properties are in the update field mask.
-     * 
- */ - public com.google.cloud.bigquery.connection.v1.Connection updateConnection(com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateConnectionMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes connection and associated credential.
-     * 
- */ - public com.google.protobuf.Empty deleteConnection(com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteConnectionMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
-     * 
- */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a `NOT_FOUND` error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Manages external data source connections and credentials.
-   * 
- */ - public static final class ConnectionServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private ConnectionServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConnectionServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a new connection.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createConnection( - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateConnectionMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns specified connection.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getConnection( - com.google.cloud.bigquery.connection.v1.GetConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetConnectionMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns a list of connections in the given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listConnections( - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListConnectionsMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the specified connection. For security reasons, also resets
-     * credential if connection properties are in the update field mask.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateConnection( - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateConnectionMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes connection and associated credential.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteConnection( - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteConnectionMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a `NOT_FOUND` error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_CONNECTION = 0; - private static final int METHODID_GET_CONNECTION = 1; - private static final int METHODID_LIST_CONNECTIONS = 2; - private static final int METHODID_UPDATE_CONNECTION = 3; - private static final int METHODID_DELETE_CONNECTION = 4; - private static final int METHODID_GET_IAM_POLICY = 5; - private static final int METHODID_SET_IAM_POLICY = 6; - private static final int METHODID_TEST_IAM_PERMISSIONS = 7; - - 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 ConnectionServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ConnectionServiceImplBase 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_CONNECTION: - serviceImpl.createConnection((com.google.cloud.bigquery.connection.v1.CreateConnectionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CONNECTION: - serviceImpl.getConnection((com.google.cloud.bigquery.connection.v1.GetConnectionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CONNECTIONS: - serviceImpl.listConnections((com.google.cloud.bigquery.connection.v1.ListConnectionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CONNECTION: - serviceImpl.updateConnection((com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CONNECTION: - serviceImpl.deleteConnection((com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) 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 ConnectionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ConnectionServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ConnectionService"); - } - } - - private static final class ConnectionServiceFileDescriptorSupplier - extends ConnectionServiceBaseDescriptorSupplier { - ConnectionServiceFileDescriptorSupplier() {} - } - - private static final class ConnectionServiceMethodDescriptorSupplier - extends ConnectionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ConnectionServiceMethodDescriptorSupplier(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 (ConnectionServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ConnectionServiceFileDescriptorSupplier()) - .addMethod(getCreateConnectionMethod()) - .addMethod(getGetConnectionMethod()) - .addMethod(getListConnectionsMethod()) - .addMethod(getUpdateConnectionMethod()) - .addMethod(getDeleteConnectionMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java deleted file mode 100644 index c912265e..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java +++ /dev/null @@ -1,330 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/connection/v1/connection.proto - -package com.google.cloud.bigquery.connection.v1; - -public final class ConnectionOuterClass { - private ConnectionOuterClass() {} - 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_bigquery_connection_v1_CreateConnectionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_Connection_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_AwsProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/bigquery/connection/v1/co" + - "nnection.proto\022#google.cloud.bigquery.co" + - "nnection.v1\032\034google/api/annotations.prot" + - "o\032\027google/api/client.proto\032\037google/api/f" + - "ield_behavior.proto\032\031google/api/resource" + - ".proto\032\036google/iam/v1/iam_policy.proto\032\032" + - "google/iam/v1/policy.proto\032\033google/proto" + - "buf/empty.proto\032 google/protobuf/field_m" + - "ask.proto\"\272\001\n\027CreateConnectionRequest\0229\n" + - "\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googlea" + - "pis.com/Location\022\032\n\rconnection_id\030\002 \001(\tB" + - "\003\340A\001\022H\n\nconnection\030\003 \001(\0132/.google.cloud." + - "bigquery.connection.v1.ConnectionB\003\340A\002\"Z" + - "\n\024GetConnectionRequest\022B\n\004name\030\001 \001(\tB4\340A" + - "\002\372A.\n,bigqueryconnection.googleapis.com/" + - "Connection\"\177\n\026ListConnectionsRequest\0229\n\006" + - "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + - "is.com/Location\022\026\n\tpage_size\030\004 \001(\005B\003\340A\002\022" + - "\022\n\npage_token\030\003 \001(\t\"x\n\027ListConnectionsRe" + - "sponse\022\027\n\017next_page_token\030\001 \001(\t\022D\n\013conne" + - "ctions\030\002 \003(\0132/.google.cloud.bigquery.con" + - "nection.v1.Connection\"\335\001\n\027UpdateConnecti" + - "onRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,bigquer" + - "yconnection.googleapis.com/Connection\022H\n" + - "\nconnection\030\002 \001(\0132/.google.cloud.bigquer" + - "y.connection.v1.ConnectionB\003\340A\002\0224\n\013updat" + - "e_mask\030\003 \001(\0132\032.google.protobuf.FieldMask" + - "B\003\340A\002\"]\n\027DeleteConnectionRequest\022B\n\004name" + - "\030\001 \001(\tB4\340A\002\372A.\n,bigqueryconnection.googl" + - "eapis.com/Connection\"\342\004\n\nConnection\022\014\n\004n" + - "ame\030\001 \001(\t\022\025\n\rfriendly_name\030\002 \001(\t\022\023\n\013desc" + - "ription\030\003 \001(\t\022L\n\tcloud_sql\030\004 \001(\01327.googl" + - "e.cloud.bigquery.connection.v1.CloudSqlP" + - "ropertiesH\000\022A\n\003aws\030\010 \001(\01322.google.cloud." + - "bigquery.connection.v1.AwsPropertiesH\000\022T" + - "\n\rcloud_spanner\030\025 \001(\0132;.google.cloud.big" + - "query.connection.v1.CloudSpannerProperti" + - "esH\000\022V\n\016cloud_resource\030\026 \001(\0132<.google.cl" + - "oud.bigquery.connection.v1.CloudResource" + - "PropertiesH\000\022\032\n\rcreation_time\030\005 \001(\003B\003\340A\003" + - "\022\037\n\022last_modified_time\030\006 \001(\003B\003\340A\003\022\033\n\016has" + - "_credential\030\007 \001(\010B\003\340A\003:s\352Ap\n,bigquerycon" + - "nection.googleapis.com/Connection\022@proje" + - "cts/{project}/locations/{location}/conne" + - "ctions/{connection}B\014\n\nproperties\"\251\002\n\022Cl" + - "oudSqlProperties\022\023\n\013instance_id\030\001 \001(\t\022\020\n" + - "\010database\030\002 \001(\t\022R\n\004type\030\003 \001(\0162D.google.c" + - "loud.bigquery.connection.v1.CloudSqlProp" + - "erties.DatabaseType\022P\n\ncredential\030\004 \001(\0132" + - "7.google.cloud.bigquery.connection.v1.Cl" + - "oudSqlCredentialB\003\340A\004\"F\n\014DatabaseType\022\035\n" + - "\031DATABASE_TYPE_UNSPECIFIED\020\000\022\014\n\010POSTGRES" + - "\020\001\022\t\n\005MYSQL\020\002\"8\n\022CloudSqlCredential\022\020\n\010u" + - "sername\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"C\n\026Cloud" + - "SpannerProperties\022\020\n\010database\030\001 \001(\t\022\027\n\017u" + - "se_parallelism\030\002 \001(\010\"\313\001\n\rAwsProperties\022V" + - "\n\022cross_account_role\030\002 \001(\01328.google.clou" + - "d.bigquery.connection.v1.AwsCrossAccount" + - "RoleH\000\022I\n\013access_role\030\003 \001(\01322.google.clo" + - "ud.bigquery.connection.v1.AwsAccessRoleH" + - "\000B\027\n\025authentication_method\"^\n\023AwsCrossAc" + - "countRole\022\023\n\013iam_role_id\030\001 \001(\t\022\030\n\013iam_us" + - "er_id\030\002 \001(\tB\003\340A\003\022\030\n\013external_id\030\003 \001(\tB\003\340" + - "A\003\"6\n\rAwsAccessRole\022\023\n\013iam_role_id\030\001 \001(\t" + - "\022\020\n\010identity\030\002 \001(\t\":\n\027CloudResourcePrope" + - "rties\022\037\n\022service_account_id\030\001 \001(\tB\003\340A\0032\314" + - "\r\n\021ConnectionService\022\350\001\n\020CreateConnectio" + - "n\022<.google.cloud.bigquery.connection.v1." + - "CreateConnectionRequest\032/.google.cloud.b" + - "igquery.connection.v1.Connection\"e\202\323\344\223\002=" + - "\"//v1/{parent=projects/*/locations/*}/co" + - "nnections:\nconnection\332A\037parent,connectio" + - "n,connection_id\022\273\001\n\rGetConnection\0229.goog" + - "le.cloud.bigquery.connection.v1.GetConne" + - "ctionRequest\032/.google.cloud.bigquery.con" + - "nection.v1.Connection\">\202\323\344\223\0021\022//v1/{name" + - "=projects/*/locations/*/connections/*}\332A" + - "\004name\022\316\001\n\017ListConnections\022;.google.cloud" + - ".bigquery.connection.v1.ListConnectionsR" + - "equest\032<.google.cloud.bigquery.connectio" + - "n.v1.ListConnectionsResponse\"@\202\323\344\223\0021\022//v" + - "1/{parent=projects/*/locations/*}/connec" + - "tions\332A\006parent\022\344\001\n\020UpdateConnection\022<.go" + - "ogle.cloud.bigquery.connection.v1.Update" + - "ConnectionRequest\032/.google.cloud.bigquer" + - "y.connection.v1.Connection\"a\202\323\344\223\002=2//v1/" + - "{name=projects/*/locations/*/connections" + - "/*}:\nconnection\332A\033name,connection,update" + - "_mask\022\250\001\n\020DeleteConnection\022<.google.clou" + - "d.bigquery.connection.v1.DeleteConnectio" + - "nRequest\032\026.google.protobuf.Empty\">\202\323\344\223\0021" + - "*//v1/{name=projects/*/locations/*/conne" + - "ctions/*}\332A\004name\022\251\001\n\014GetIamPolicy\022\".goog" + - "le.iam.v1.GetIamPolicyRequest\032\025.google.i" + - "am.v1.Policy\"^\202\323\344\223\002E\"@/v1/{resource=proj" + - "ects/*/locations/*/connections/*}:getIam" + - "Policy:\001*\332A\020resource,options\022\250\001\n\014SetIamP" + - "olicy\022\".google.iam.v1.SetIamPolicyReques" + - "t\032\025.google.iam.v1.Policy\"]\202\323\344\223\002E\"@/v1/{r" + - "esource=projects/*/locations/*/connectio" + - "ns/*}:setIamPolicy:\001*\332A\017resource,policy\022" + - "\323\001\n\022TestIamPermissions\022(.google.iam.v1.T" + - "estIamPermissionsRequest\032).google.iam.v1" + - ".TestIamPermissionsResponse\"h\202\323\344\223\002K\"F/v1" + - "/{resource=projects/*/locations/*/connec" + - "tions/*}:testIamPermissions:\001*\332A\024resourc" + - "e,permissions\032~\312A!bigqueryconnection.goo" + - "gleapis.com\322AWhttps://www.googleapis.com" + - "/auth/bigquery,https://www.googleapis.co" + - "m/auth/cloud-platformB\306\001\n\'com.google.clo" + - "ud.bigquery.connection.v1P\001ZMgoogle.gola" + - "ng.org/genproto/googleapis/cloud/bigquer" + - "y/connection/v1;connection\252\002#Google.Clou" + - "d.BigQuery.Connection.V1\312\002#Google\\Cloud\\" + - "BigQuery\\Connection\\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.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor, - new java.lang.String[] { "Parent", "ConnectionId", "Connection", }); - internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor, - new java.lang.String[] { "NextPageToken", "Connections", }); - internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor, - new java.lang.String[] { "Name", "Connection", "UpdateMask", }); - internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_bigquery_connection_v1_Connection_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor, - new java.lang.String[] { "Name", "FriendlyName", "Description", "CloudSql", "Aws", "CloudSpanner", "CloudResource", "CreationTime", "LastModifiedTime", "HasCredential", "Properties", }); - internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor, - new java.lang.String[] { "InstanceId", "Database", "Type", "Credential", }); - internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_descriptor, - new java.lang.String[] { "Username", "Password", }); - internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor, - new java.lang.String[] { "Database", "UseParallelism", }); - internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_bigquery_connection_v1_AwsProperties_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor, - new java.lang.String[] { "CrossAccountRole", "AccessRole", "AuthenticationMethod", }); - internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor, - new java.lang.String[] { "IamRoleId", "IamUserId", "ExternalId", }); - internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor, - new java.lang.String[] { "IamRoleId", "Identity", }); - internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor, - new java.lang.String[] { "ServiceAccountId", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequestOrBuilder.java deleted file mode 100644 index 2ad16f8a..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/connection/v1/connection.proto - -package com.google.cloud.bigquery.connection.v1; - -public interface DeleteConnectionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.DeleteConnectionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the deleted connection, for example:
-   * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the deleted connection, for example:
-   * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequestOrBuilder.java deleted file mode 100644 index 63fae6be..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/connection/v1/connection.proto - -package com.google.cloud.bigquery.connection.v1; - -public interface GetConnectionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.GetConnectionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the requested connection, for example:
-   * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the requested connection, for example:
-   * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java deleted file mode 100644 index 68491d0e..00000000 --- a/owl-bot-staging/v1beta1/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java +++ /dev/null @@ -1,1031 +0,0 @@ -package com.google.cloud.bigquery.connection.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Manages external data source connections and credentials.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/connection/v1beta1/connection.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ConnectionServiceGrpc { - - private ConnectionServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.bigquery.connection.v1beta1.ConnectionService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateConnection", - requestType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest.class, - responseType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateConnectionMethod() { - io.grpc.MethodDescriptor getCreateConnectionMethod; - if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { - ConnectionServiceGrpc.getCreateConnectionMethod = getCreateConnectionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("CreateConnection")) - .build(); - } - } - } - return getCreateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetConnection", - requestType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.class, - responseType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetConnectionMethod() { - io.grpc.MethodDescriptor getGetConnectionMethod; - if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { - ConnectionServiceGrpc.getGetConnectionMethod = getGetConnectionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("GetConnection")) - .build(); - } - } - } - return getGetConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor getListConnectionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListConnections", - requestType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.class, - responseType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListConnectionsMethod() { - io.grpc.MethodDescriptor getListConnectionsMethod; - if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { - ConnectionServiceGrpc.getListConnectionsMethod = getListConnectionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnections")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("ListConnections")) - .build(); - } - } - } - return getListConnectionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateConnection", - requestType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest.class, - responseType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateConnectionMethod() { - io.grpc.MethodDescriptor getUpdateConnectionMethod; - if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { - ConnectionServiceGrpc.getUpdateConnectionMethod = getUpdateConnectionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("UpdateConnection")) - .build(); - } - } - } - return getUpdateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateConnectionCredentialMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateConnectionCredential", - requestType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateConnectionCredentialMethod() { - io.grpc.MethodDescriptor getUpdateConnectionCredentialMethod; - if ((getUpdateConnectionCredentialMethod = ConnectionServiceGrpc.getUpdateConnectionCredentialMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getUpdateConnectionCredentialMethod = ConnectionServiceGrpc.getUpdateConnectionCredentialMethod) == null) { - ConnectionServiceGrpc.getUpdateConnectionCredentialMethod = getUpdateConnectionCredentialMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConnectionCredential")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("UpdateConnectionCredential")) - .build(); - } - } - } - return getUpdateConnectionCredentialMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteConnection", - requestType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteConnectionMethod() { - io.grpc.MethodDescriptor getDeleteConnectionMethod; - if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { - ConnectionServiceGrpc.getDeleteConnectionMethod = getDeleteConnectionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("DeleteConnection")) - .build(); - } - } - } - return getDeleteConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", - requestType = com.google.iam.v1.GetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetIamPolicyMethod() { - io.grpc.MethodDescriptor getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { - ConnectionServiceGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", - requestType = com.google.iam.v1.SetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetIamPolicyMethod() { - io.grpc.MethodDescriptor getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { - ConnectionServiceGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", - requestType = com.google.iam.v1.TestIamPermissionsRequest.class, - responseType = com.google.iam.v1.TestIamPermissionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) == null) { - ConnectionServiceGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static ConnectionServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceStub(channel, callOptions); - } - }; - return ConnectionServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ConnectionServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceBlockingStub(channel, callOptions); - } - }; - return ConnectionServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static ConnectionServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceFutureStub(channel, callOptions); - } - }; - return ConnectionServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Manages external data source connections and credentials.
-   * 
- */ - public static abstract class ConnectionServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates a new connection.
-     * 
- */ - public void createConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateConnectionMethod(), responseObserver); - } - - /** - *
-     * Returns specified connection.
-     * 
- */ - public void getConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConnectionMethod(), responseObserver); - } - - /** - *
-     * Returns a list of connections in the given project.
-     * 
- */ - public void listConnections(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListConnectionsMethod(), responseObserver); - } - - /** - *
-     * Updates the specified connection. For security reasons, also resets
-     * credential if connection properties are in the update field mask.
-     * 
- */ - public void updateConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConnectionMethod(), responseObserver); - } - - /** - *
-     * Sets the credential for the specified connection.
-     * 
- */ - public void updateConnectionCredential(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConnectionCredentialMethod(), responseObserver); - } - - /** - *
-     * Deletes connection and associated credential.
-     * 
- */ - public void deleteConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteConnectionMethod(), responseObserver); - } - - /** - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); - } - - /** - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
-     * 
- */ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); - } - - /** - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a NOT_FOUND error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection>( - this, METHODID_CREATE_CONNECTION))) - .addMethod( - getGetConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection>( - this, METHODID_GET_CONNECTION))) - .addMethod( - getListConnectionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse>( - this, METHODID_LIST_CONNECTIONS))) - .addMethod( - getUpdateConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection>( - this, METHODID_UPDATE_CONNECTION))) - .addMethod( - getUpdateConnectionCredentialMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest, - com.google.protobuf.Empty>( - this, METHODID_UPDATE_CONNECTION_CREDENTIAL))) - .addMethod( - getDeleteConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_CONNECTION))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, - com.google.iam.v1.Policy>( - this, METHODID_GET_IAM_POLICY))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, - com.google.iam.v1.Policy>( - this, METHODID_SET_IAM_POLICY))) - .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - this, METHODID_TEST_IAM_PERMISSIONS))) - .build(); - } - } - - /** - *
-   * Manages external data source connections and credentials.
-   * 
- */ - public static final class ConnectionServiceStub extends io.grpc.stub.AbstractAsyncStub { - private ConnectionServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConnectionServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceStub(channel, callOptions); - } - - /** - *
-     * Creates a new connection.
-     * 
- */ - public void createConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateConnectionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns specified connection.
-     * 
- */ - public void getConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConnectionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns a list of connections in the given project.
-     * 
- */ - public void listConnections(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListConnectionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the specified connection. For security reasons, also resets
-     * credential if connection properties are in the update field mask.
-     * 
- */ - public void updateConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateConnectionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Sets the credential for the specified connection.
-     * 
- */ - public void updateConnectionCredential(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateConnectionCredentialMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes connection and associated credential.
-     * 
- */ - public void deleteConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteConnectionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
-     * 
- */ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a NOT_FOUND error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Manages external data source connections and credentials.
-   * 
- */ - public static final class ConnectionServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private ConnectionServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConnectionServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a new connection.
-     * 
- */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection createConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateConnectionMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns specified connection.
-     * 
- */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConnectionMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns a list of connections in the given project.
-     * 
- */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse listConnections(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListConnectionsMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the specified connection. For security reasons, also resets
-     * credential if connection properties are in the update field mask.
-     * 
- */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection updateConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateConnectionMethod(), getCallOptions(), request); - } - - /** - *
-     * Sets the credential for the specified connection.
-     * 
- */ - public com.google.protobuf.Empty updateConnectionCredential(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateConnectionCredentialMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes connection and associated credential.
-     * 
- */ - public com.google.protobuf.Empty deleteConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteConnectionMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
-     * 
- */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a NOT_FOUND error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Manages external data source connections and credentials.
-   * 
- */ - public static final class ConnectionServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private ConnectionServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConnectionServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a new connection.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateConnectionMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns specified connection.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetConnectionMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns a list of connections in the given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listConnections( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListConnectionsMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the specified connection. For security reasons, also resets
-     * credential if connection properties are in the update field mask.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateConnectionMethod(), getCallOptions()), request); - } - - /** - *
-     * Sets the credential for the specified connection.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateConnectionCredential( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateConnectionCredentialMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes connection and associated credential.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteConnectionMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a NOT_FOUND error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_CONNECTION = 0; - private static final int METHODID_GET_CONNECTION = 1; - private static final int METHODID_LIST_CONNECTIONS = 2; - private static final int METHODID_UPDATE_CONNECTION = 3; - private static final int METHODID_UPDATE_CONNECTION_CREDENTIAL = 4; - private static final int METHODID_DELETE_CONNECTION = 5; - private static final int METHODID_GET_IAM_POLICY = 6; - private static final int METHODID_SET_IAM_POLICY = 7; - private static final int METHODID_TEST_IAM_PERMISSIONS = 8; - - 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 ConnectionServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ConnectionServiceImplBase 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_CONNECTION: - serviceImpl.createConnection((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CONNECTION: - serviceImpl.getConnection((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CONNECTIONS: - serviceImpl.listConnections((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CONNECTION: - serviceImpl.updateConnection((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CONNECTION_CREDENTIAL: - serviceImpl.updateConnectionCredential((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CONNECTION: - serviceImpl.deleteConnection((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) 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 ConnectionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ConnectionServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ConnectionService"); - } - } - - private static final class ConnectionServiceFileDescriptorSupplier - extends ConnectionServiceBaseDescriptorSupplier { - ConnectionServiceFileDescriptorSupplier() {} - } - - private static final class ConnectionServiceMethodDescriptorSupplier - extends ConnectionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ConnectionServiceMethodDescriptorSupplier(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 (ConnectionServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ConnectionServiceFileDescriptorSupplier()) - .addMethod(getCreateConnectionMethod()) - .addMethod(getGetConnectionMethod()) - .addMethod(getListConnectionsMethod()) - .addMethod(getUpdateConnectionMethod()) - .addMethod(getUpdateConnectionCredentialMethod()) - .addMethod(getDeleteConnectionMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java rename to proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java index ab9ba014..ee352f9a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** + * + * *
  * Authentication method for Amazon Web Services (AWS) that uses Google owned
  * Google service account to assume into customer's AWS IAM Role.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.bigquery.connection.v1.AwsAccessRole}
  */
-public final class AwsAccessRole extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AwsAccessRole extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.AwsAccessRole)
     AwsAccessRoleOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AwsAccessRole.newBuilder() to construct.
   private AwsAccessRole(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AwsAccessRole() {
     iamRoleId_ = "";
     identity_ = "";
@@ -27,16 +45,15 @@ private AwsAccessRole() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AwsAccessRole();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private AwsAccessRole(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,25 +72,27 @@ private AwsAccessRole(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            iamRoleId_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              iamRoleId_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            identity_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              identity_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -81,35 +100,40 @@ private AwsAccessRole(
     } 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.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
+        .internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_fieldAccessorTable
+    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
+        .internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.connection.v1.AwsAccessRole.class, com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder.class);
+            com.google.cloud.bigquery.connection.v1.AwsAccessRole.class,
+            com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder.class);
   }
 
   public static final int IAM_ROLE_ID_FIELD_NUMBER = 1;
   private volatile java.lang.Object iamRoleId_;
   /**
+   *
+   *
    * 
    * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
    * Connection.
    * 
* * string iam_role_id = 1; + * * @return The iamRoleId. */ @java.lang.Override @@ -118,30 +142,30 @@ public java.lang.String getIamRoleId() { 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(); iamRoleId_ = s; return s; } } /** + * + * *
    * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
    * Connection.
    * 
* * string iam_role_id = 1; + * * @return The bytes for iamRoleId. */ @java.lang.Override - public com.google.protobuf.ByteString - getIamRoleIdBytes() { + public com.google.protobuf.ByteString getIamRoleIdBytes() { java.lang.Object ref = iamRoleId_; 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); iamRoleId_ = b; return b; } else { @@ -152,12 +176,15 @@ public java.lang.String getIamRoleId() { public static final int IDENTITY_FIELD_NUMBER = 2; private volatile java.lang.Object identity_; /** + * + * *
    * A unique Google-owned and Google-generated identity for the Connection.
    * This identity will be used to access the user's AWS IAM Role.
    * 
* * string identity = 2; + * * @return The identity. */ @java.lang.Override @@ -166,30 +193,30 @@ public java.lang.String getIdentity() { 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(); identity_ = s; return s; } } /** + * + * *
    * A unique Google-owned and Google-generated identity for the Connection.
    * This identity will be used to access the user's AWS IAM Role.
    * 
* * string identity = 2; + * * @return The bytes for identity. */ @java.lang.Override - public com.google.protobuf.ByteString - getIdentityBytes() { + public com.google.protobuf.ByteString getIdentityBytes() { java.lang.Object ref = identity_; 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); identity_ = b; return b; } else { @@ -198,6 +225,7 @@ public java.lang.String getIdentity() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,8 +237,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(iamRoleId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, iamRoleId_); } @@ -240,17 +267,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.bigquery.connection.v1.AwsAccessRole)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.AwsAccessRole other = (com.google.cloud.bigquery.connection.v1.AwsAccessRole) obj; + com.google.cloud.bigquery.connection.v1.AwsAccessRole other = + (com.google.cloud.bigquery.connection.v1.AwsAccessRole) obj; - if (!getIamRoleId() - .equals(other.getIamRoleId())) return false; - if (!getIdentity() - .equals(other.getIdentity())) return false; + if (!getIamRoleId().equals(other.getIamRoleId())) return false; + if (!getIdentity().equals(other.getIdentity())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -272,96 +298,104 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.AwsAccessRole 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.bigquery.connection.v1.AwsAccessRole 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.bigquery.connection.v1.AwsAccessRole parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.AwsAccessRole 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.bigquery.connection.v1.AwsAccessRole parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.AwsAccessRole 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.bigquery.connection.v1.AwsAccessRole parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1.AwsAccessRole parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1.AwsAccessRole 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.bigquery.connection.v1.AwsAccessRole parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1.AwsAccessRole parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1.AwsAccessRole 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.bigquery.connection.v1.AwsAccessRole 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.bigquery.connection.v1.AwsAccessRole 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.bigquery.connection.v1.AwsAccessRole prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.connection.v1.AwsAccessRole 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; } /** + * + * *
    * Authentication method for Amazon Web Services (AWS) that uses Google owned
    * Google service account to assume into customer's AWS IAM Role.
@@ -369,21 +403,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.connection.v1.AwsAccessRole}
    */
-  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.bigquery.connection.v1.AwsAccessRole)
       com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
+          .internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_fieldAccessorTable
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
+          .internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.connection.v1.AwsAccessRole.class, com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder.class);
+              com.google.cloud.bigquery.connection.v1.AwsAccessRole.class,
+              com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.connection.v1.AwsAccessRole.newBuilder()
@@ -391,16 +427,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();
@@ -412,9 +447,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
+          .internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor;
     }
 
     @java.lang.Override
@@ -433,7 +468,8 @@ public com.google.cloud.bigquery.connection.v1.AwsAccessRole build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.connection.v1.AwsAccessRole buildPartial() {
-      com.google.cloud.bigquery.connection.v1.AwsAccessRole result = new com.google.cloud.bigquery.connection.v1.AwsAccessRole(this);
+      com.google.cloud.bigquery.connection.v1.AwsAccessRole result =
+          new com.google.cloud.bigquery.connection.v1.AwsAccessRole(this);
       result.iamRoleId_ = iamRoleId_;
       result.identity_ = identity_;
       onBuilt();
@@ -444,38 +480,39 @@ public com.google.cloud.bigquery.connection.v1.AwsAccessRole 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.bigquery.connection.v1.AwsAccessRole) {
-        return mergeFrom((com.google.cloud.bigquery.connection.v1.AwsAccessRole)other);
+        return mergeFrom((com.google.cloud.bigquery.connection.v1.AwsAccessRole) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -483,7 +520,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.AwsAccessRole other) {
-      if (other == com.google.cloud.bigquery.connection.v1.AwsAccessRole.getDefaultInstance()) return this;
+      if (other == com.google.cloud.bigquery.connection.v1.AwsAccessRole.getDefaultInstance())
+        return this;
       if (!other.getIamRoleId().isEmpty()) {
         iamRoleId_ = other.iamRoleId_;
         onChanged();
@@ -511,7 +549,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.bigquery.connection.v1.AwsAccessRole) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.bigquery.connection.v1.AwsAccessRole) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -523,19 +562,21 @@ public Builder mergeFrom(
 
     private java.lang.Object iamRoleId_ = "";
     /**
+     *
+     *
      * 
      * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
      * Connection.
      * 
* * string iam_role_id = 1; + * * @return The iamRoleId. */ public java.lang.String getIamRoleId() { java.lang.Object ref = iamRoleId_; 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(); iamRoleId_ = s; return s; @@ -544,21 +585,22 @@ public java.lang.String getIamRoleId() { } } /** + * + * *
      * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
      * Connection.
      * 
* * string iam_role_id = 1; + * * @return The bytes for iamRoleId. */ - public com.google.protobuf.ByteString - getIamRoleIdBytes() { + public com.google.protobuf.ByteString getIamRoleIdBytes() { java.lang.Object ref = iamRoleId_; 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); iamRoleId_ = b; return b; } else { @@ -566,57 +608,64 @@ public java.lang.String getIamRoleId() { } } /** + * + * *
      * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
      * Connection.
      * 
* * string iam_role_id = 1; + * * @param value The iamRoleId to set. * @return This builder for chaining. */ - public Builder setIamRoleId( - java.lang.String value) { + public Builder setIamRoleId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + iamRoleId_ = value; onChanged(); return this; } /** + * + * *
      * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
      * Connection.
      * 
* * string iam_role_id = 1; + * * @return This builder for chaining. */ public Builder clearIamRoleId() { - + iamRoleId_ = getDefaultInstance().getIamRoleId(); onChanged(); return this; } /** + * + * *
      * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
      * Connection.
      * 
* * string iam_role_id = 1; + * * @param value The bytes for iamRoleId to set. * @return This builder for chaining. */ - public Builder setIamRoleIdBytes( - com.google.protobuf.ByteString value) { + public Builder setIamRoleIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + iamRoleId_ = value; onChanged(); return this; @@ -624,19 +673,21 @@ public Builder setIamRoleIdBytes( private java.lang.Object identity_ = ""; /** + * + * *
      * A unique Google-owned and Google-generated identity for the Connection.
      * This identity will be used to access the user's AWS IAM Role.
      * 
* * string identity = 2; + * * @return The identity. */ public java.lang.String getIdentity() { java.lang.Object ref = identity_; 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(); identity_ = s; return s; @@ -645,21 +696,22 @@ public java.lang.String getIdentity() { } } /** + * + * *
      * A unique Google-owned and Google-generated identity for the Connection.
      * This identity will be used to access the user's AWS IAM Role.
      * 
* * string identity = 2; + * * @return The bytes for identity. */ - public com.google.protobuf.ByteString - getIdentityBytes() { + public com.google.protobuf.ByteString getIdentityBytes() { java.lang.Object ref = identity_; 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); identity_ = b; return b; } else { @@ -667,64 +719,71 @@ public java.lang.String getIdentity() { } } /** + * + * *
      * A unique Google-owned and Google-generated identity for the Connection.
      * This identity will be used to access the user's AWS IAM Role.
      * 
* * string identity = 2; + * * @param value The identity to set. * @return This builder for chaining. */ - public Builder setIdentity( - java.lang.String value) { + public Builder setIdentity(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + identity_ = value; onChanged(); return this; } /** + * + * *
      * A unique Google-owned and Google-generated identity for the Connection.
      * This identity will be used to access the user's AWS IAM Role.
      * 
* * string identity = 2; + * * @return This builder for chaining. */ public Builder clearIdentity() { - + identity_ = getDefaultInstance().getIdentity(); onChanged(); return this; } /** + * + * *
      * A unique Google-owned and Google-generated identity for the Connection.
      * This identity will be used to access the user's AWS IAM Role.
      * 
* * string identity = 2; + * * @param value The bytes for identity to set. * @return This builder for chaining. */ - public Builder setIdentityBytes( - com.google.protobuf.ByteString value) { + public Builder setIdentityBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + identity_ = 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); } @@ -734,12 +793,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.AwsAccessRole) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.AwsAccessRole) private static final com.google.cloud.bigquery.connection.v1.AwsAccessRole DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.AwsAccessRole(); } @@ -748,16 +807,16 @@ public static com.google.cloud.bigquery.connection.v1.AwsAccessRole getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AwsAccessRole parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AwsAccessRole(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AwsAccessRole parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AwsAccessRole(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -772,6 +831,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.connection.v1.AwsAccessRole getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.java rename to proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.java index 192c1165..0c06ce43 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.java @@ -1,53 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; -public interface AwsAccessRoleOrBuilder extends +public interface AwsAccessRoleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.AwsAccessRole) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
    * Connection.
    * 
* * string iam_role_id = 1; + * * @return The iamRoleId. */ java.lang.String getIamRoleId(); /** + * + * *
    * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
    * Connection.
    * 
* * string iam_role_id = 1; + * * @return The bytes for iamRoleId. */ - com.google.protobuf.ByteString - getIamRoleIdBytes(); + com.google.protobuf.ByteString getIamRoleIdBytes(); /** + * + * *
    * A unique Google-owned and Google-generated identity for the Connection.
    * This identity will be used to access the user's AWS IAM Role.
    * 
* * string identity = 2; + * * @return The identity. */ java.lang.String getIdentity(); /** + * + * *
    * A unique Google-owned and Google-generated identity for the Connection.
    * This identity will be used to access the user's AWS IAM Role.
    * 
* * string identity = 2; + * * @return The bytes for identity. */ - com.google.protobuf.ByteString - getIdentityBytes(); + com.google.protobuf.ByteString getIdentityBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRole.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRole.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRole.java rename to proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRole.java index 6feca24a..47eff443 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRole.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRole.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** + * + * *
  * Authentication method for Amazon Web Services (AWS) that uses Google owned
  * AWS IAM user's access key to assume into customer's AWS IAM Role.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.bigquery.connection.v1.AwsCrossAccountRole}
  */
-public final class AwsCrossAccountRole extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AwsCrossAccountRole extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.AwsCrossAccountRole)
     AwsCrossAccountRoleOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AwsCrossAccountRole.newBuilder() to construct.
   private AwsCrossAccountRole(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AwsCrossAccountRole() {
     iamRoleId_ = "";
     iamUserId_ = "";
@@ -28,16 +46,15 @@ private AwsCrossAccountRole() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AwsCrossAccountRole();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private AwsCrossAccountRole(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,31 +73,34 @@ private AwsCrossAccountRole(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            iamRoleId_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              iamRoleId_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            iamUserId_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              iamUserId_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            externalId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              externalId_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -88,35 +108,40 @@ private AwsCrossAccountRole(
     } 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.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
+        .internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_fieldAccessorTable
+    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
+        .internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.class, com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder.class);
+            com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.class,
+            com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder.class);
   }
 
   public static final int IAM_ROLE_ID_FIELD_NUMBER = 1;
   private volatile java.lang.Object iamRoleId_;
   /**
+   *
+   *
    * 
    * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
    * Connection.
    * 
* * string iam_role_id = 1; + * * @return The iamRoleId. */ @java.lang.Override @@ -125,30 +150,30 @@ public java.lang.String getIamRoleId() { 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(); iamRoleId_ = s; return s; } } /** + * + * *
    * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
    * Connection.
    * 
* * string iam_role_id = 1; + * * @return The bytes for iamRoleId. */ @java.lang.Override - public com.google.protobuf.ByteString - getIamRoleIdBytes() { + public com.google.protobuf.ByteString getIamRoleIdBytes() { java.lang.Object ref = iamRoleId_; 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); iamRoleId_ = b; return b; } else { @@ -159,11 +184,14 @@ public java.lang.String getIamRoleId() { public static final int IAM_USER_ID_FIELD_NUMBER = 2; private volatile java.lang.Object iamUserId_; /** + * + * *
    * Output only. Google-owned AWS IAM User for a Connection.
    * 
* * string iam_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The iamUserId. */ @java.lang.Override @@ -172,29 +200,29 @@ public java.lang.String getIamUserId() { 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(); iamUserId_ = s; return s; } } /** + * + * *
    * Output only. Google-owned AWS IAM User for a Connection.
    * 
* * string iam_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for iamUserId. */ @java.lang.Override - public com.google.protobuf.ByteString - getIamUserIdBytes() { + public com.google.protobuf.ByteString getIamUserIdBytes() { java.lang.Object ref = iamUserId_; 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); iamUserId_ = b; return b; } else { @@ -205,6 +233,8 @@ public java.lang.String getIamUserId() { public static final int EXTERNAL_ID_FIELD_NUMBER = 3; private volatile java.lang.Object externalId_; /** + * + * *
    * Output only. A Google-generated id for representing Connection’s identity in AWS.
    * External Id is also used for preventing the Confused Deputy Problem. See
@@ -212,6 +242,7 @@ public java.lang.String getIamUserId() {
    * 
* * string external_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The externalId. */ @java.lang.Override @@ -220,14 +251,15 @@ public java.lang.String getExternalId() { 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(); externalId_ = s; return s; } } /** + * + * *
    * Output only. A Google-generated id for representing Connection’s identity in AWS.
    * External Id is also used for preventing the Confused Deputy Problem. See
@@ -235,16 +267,15 @@ public java.lang.String getExternalId() {
    * 
* * string external_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for externalId. */ @java.lang.Override - public com.google.protobuf.ByteString - getExternalIdBytes() { + public com.google.protobuf.ByteString getExternalIdBytes() { java.lang.Object ref = externalId_; 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); externalId_ = b; return b; } else { @@ -253,6 +284,7 @@ public java.lang.String getExternalId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,8 +296,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(iamRoleId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, iamRoleId_); } @@ -301,19 +332,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.bigquery.connection.v1.AwsCrossAccountRole)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole other = (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) obj; + com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole other = + (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) obj; - if (!getIamRoleId() - .equals(other.getIamRoleId())) return false; - if (!getIamUserId() - .equals(other.getIamUserId())) return false; - if (!getExternalId() - .equals(other.getExternalId())) return false; + if (!getIamRoleId().equals(other.getIamRoleId())) return false; + if (!getIamUserId().equals(other.getIamUserId())) return false; + if (!getExternalId().equals(other.getExternalId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -337,96 +366,104 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole 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.bigquery.connection.v1.AwsCrossAccountRole 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.bigquery.connection.v1.AwsCrossAccountRole parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole 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.bigquery.connection.v1.AwsCrossAccountRole parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole 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.bigquery.connection.v1.AwsCrossAccountRole parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole 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.bigquery.connection.v1.AwsCrossAccountRole parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole 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.bigquery.connection.v1.AwsCrossAccountRole 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.bigquery.connection.v1.AwsCrossAccountRole 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.bigquery.connection.v1.AwsCrossAccountRole prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole 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; } /** + * + * *
    * Authentication method for Amazon Web Services (AWS) that uses Google owned
    * AWS IAM user's access key to assume into customer's AWS IAM Role.
@@ -434,21 +471,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.connection.v1.AwsCrossAccountRole}
    */
-  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.bigquery.connection.v1.AwsCrossAccountRole)
       com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
+          .internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_fieldAccessorTable
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
+          .internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.class, com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder.class);
+              com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.class,
+              com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.newBuilder()
@@ -456,16 +495,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -479,9 +517,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
+          .internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor;
     }
 
     @java.lang.Override
@@ -500,7 +538,8 @@ public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole buildPartial() {
-      com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole result = new com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole(this);
+      com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole result =
+          new com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole(this);
       result.iamRoleId_ = iamRoleId_;
       result.iamUserId_ = iamUserId_;
       result.externalId_ = externalId_;
@@ -512,38 +551,39 @@ public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole 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.bigquery.connection.v1.AwsCrossAccountRole) {
-        return mergeFrom((com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole)other);
+        return mergeFrom((com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -551,7 +591,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole other) {
-      if (other == com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.getDefaultInstance()) return this;
+      if (other == com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.getDefaultInstance())
+        return this;
       if (!other.getIamRoleId().isEmpty()) {
         iamRoleId_ = other.iamRoleId_;
         onChanged();
@@ -583,7 +624,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -595,19 +637,21 @@ public Builder mergeFrom(
 
     private java.lang.Object iamRoleId_ = "";
     /**
+     *
+     *
      * 
      * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
      * Connection.
      * 
* * string iam_role_id = 1; + * * @return The iamRoleId. */ public java.lang.String getIamRoleId() { java.lang.Object ref = iamRoleId_; 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(); iamRoleId_ = s; return s; @@ -616,21 +660,22 @@ public java.lang.String getIamRoleId() { } } /** + * + * *
      * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
      * Connection.
      * 
* * string iam_role_id = 1; + * * @return The bytes for iamRoleId. */ - public com.google.protobuf.ByteString - getIamRoleIdBytes() { + public com.google.protobuf.ByteString getIamRoleIdBytes() { java.lang.Object ref = iamRoleId_; 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); iamRoleId_ = b; return b; } else { @@ -638,57 +683,64 @@ public java.lang.String getIamRoleId() { } } /** + * + * *
      * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
      * Connection.
      * 
* * string iam_role_id = 1; + * * @param value The iamRoleId to set. * @return This builder for chaining. */ - public Builder setIamRoleId( - java.lang.String value) { + public Builder setIamRoleId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + iamRoleId_ = value; onChanged(); return this; } /** + * + * *
      * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
      * Connection.
      * 
* * string iam_role_id = 1; + * * @return This builder for chaining. */ public Builder clearIamRoleId() { - + iamRoleId_ = getDefaultInstance().getIamRoleId(); onChanged(); return this; } /** + * + * *
      * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
      * Connection.
      * 
* * string iam_role_id = 1; + * * @param value The bytes for iamRoleId to set. * @return This builder for chaining. */ - public Builder setIamRoleIdBytes( - com.google.protobuf.ByteString value) { + public Builder setIamRoleIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + iamRoleId_ = value; onChanged(); return this; @@ -696,18 +748,20 @@ public Builder setIamRoleIdBytes( private java.lang.Object iamUserId_ = ""; /** + * + * *
      * Output only. Google-owned AWS IAM User for a Connection.
      * 
* * string iam_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The iamUserId. */ public java.lang.String getIamUserId() { java.lang.Object ref = iamUserId_; 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(); iamUserId_ = s; return s; @@ -716,20 +770,21 @@ public java.lang.String getIamUserId() { } } /** + * + * *
      * Output only. Google-owned AWS IAM User for a Connection.
      * 
* * string iam_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for iamUserId. */ - public com.google.protobuf.ByteString - getIamUserIdBytes() { + public com.google.protobuf.ByteString getIamUserIdBytes() { java.lang.Object ref = iamUserId_; 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); iamUserId_ = b; return b; } else { @@ -737,54 +792,61 @@ public java.lang.String getIamUserId() { } } /** + * + * *
      * Output only. Google-owned AWS IAM User for a Connection.
      * 
* * string iam_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The iamUserId to set. * @return This builder for chaining. */ - public Builder setIamUserId( - java.lang.String value) { + public Builder setIamUserId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + iamUserId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Google-owned AWS IAM User for a Connection.
      * 
* * string iam_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearIamUserId() { - + iamUserId_ = getDefaultInstance().getIamUserId(); onChanged(); return this; } /** + * + * *
      * Output only. Google-owned AWS IAM User for a Connection.
      * 
* * string iam_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for iamUserId to set. * @return This builder for chaining. */ - public Builder setIamUserIdBytes( - com.google.protobuf.ByteString value) { + public Builder setIamUserIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + iamUserId_ = value; onChanged(); return this; @@ -792,6 +854,8 @@ public Builder setIamUserIdBytes( private java.lang.Object externalId_ = ""; /** + * + * *
      * Output only. A Google-generated id for representing Connection’s identity in AWS.
      * External Id is also used for preventing the Confused Deputy Problem. See
@@ -799,13 +863,13 @@ public Builder setIamUserIdBytes(
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The externalId. */ public java.lang.String getExternalId() { java.lang.Object ref = externalId_; 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(); externalId_ = s; return s; @@ -814,6 +878,8 @@ public java.lang.String getExternalId() { } } /** + * + * *
      * Output only. A Google-generated id for representing Connection’s identity in AWS.
      * External Id is also used for preventing the Confused Deputy Problem. See
@@ -821,15 +887,14 @@ public java.lang.String getExternalId() {
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for externalId. */ - public com.google.protobuf.ByteString - getExternalIdBytes() { + public com.google.protobuf.ByteString getExternalIdBytes() { java.lang.Object ref = externalId_; 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); externalId_ = b; return b; } else { @@ -837,6 +902,8 @@ public java.lang.String getExternalId() { } } /** + * + * *
      * Output only. A Google-generated id for representing Connection’s identity in AWS.
      * External Id is also used for preventing the Confused Deputy Problem. See
@@ -844,20 +911,22 @@ public java.lang.String getExternalId() {
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The externalId to set. * @return This builder for chaining. */ - public Builder setExternalId( - java.lang.String value) { + public Builder setExternalId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + externalId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. A Google-generated id for representing Connection’s identity in AWS.
      * External Id is also used for preventing the Confused Deputy Problem. See
@@ -865,15 +934,18 @@ public Builder setExternalId(
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearExternalId() { - + externalId_ = getDefaultInstance().getExternalId(); onChanged(); return this; } /** + * + * *
      * Output only. A Google-generated id for representing Connection’s identity in AWS.
      * External Id is also used for preventing the Confused Deputy Problem. See
@@ -881,23 +953,23 @@ public Builder clearExternalId() {
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for externalId to set. * @return This builder for chaining. */ - public Builder setExternalIdBytes( - com.google.protobuf.ByteString value) { + public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + externalId_ = 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); } @@ -907,12 +979,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.AwsCrossAccountRole) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.AwsCrossAccountRole) private static final com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole(); } @@ -921,16 +993,16 @@ public static com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AwsCrossAccountRole parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AwsCrossAccountRole(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AwsCrossAccountRole parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AwsCrossAccountRole(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -945,6 +1017,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRoleOrBuilder.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRoleOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRoleOrBuilder.java rename to proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRoleOrBuilder.java index 32003639..b25dd1e0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRoleOrBuilder.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRoleOrBuilder.java @@ -1,55 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; -public interface AwsCrossAccountRoleOrBuilder extends +public interface AwsCrossAccountRoleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.AwsCrossAccountRole) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
    * Connection.
    * 
* * string iam_role_id = 1; + * * @return The iamRoleId. */ java.lang.String getIamRoleId(); /** + * + * *
    * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
    * Connection.
    * 
* * string iam_role_id = 1; + * * @return The bytes for iamRoleId. */ - com.google.protobuf.ByteString - getIamRoleIdBytes(); + com.google.protobuf.ByteString getIamRoleIdBytes(); /** + * + * *
    * Output only. Google-owned AWS IAM User for a Connection.
    * 
* * string iam_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The iamUserId. */ java.lang.String getIamUserId(); /** + * + * *
    * Output only. Google-owned AWS IAM User for a Connection.
    * 
* * string iam_user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for iamUserId. */ - com.google.protobuf.ByteString - getIamUserIdBytes(); + com.google.protobuf.ByteString getIamUserIdBytes(); /** + * + * *
    * Output only. A Google-generated id for representing Connection’s identity in AWS.
    * External Id is also used for preventing the Confused Deputy Problem. See
@@ -57,10 +85,13 @@ public interface AwsCrossAccountRoleOrBuilder extends
    * 
* * string external_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The externalId. */ java.lang.String getExternalId(); /** + * + * *
    * Output only. A Google-generated id for representing Connection’s identity in AWS.
    * External Id is also used for preventing the Confused Deputy Problem. See
@@ -68,8 +99,8 @@ public interface AwsCrossAccountRoleOrBuilder extends
    * 
* * string external_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for externalId. */ - com.google.protobuf.ByteString - getExternalIdBytes(); + com.google.protobuf.ByteString getExternalIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java rename to proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java index acc4c595..19dd4ee9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** + * + * *
  * Connection properties specific to Amazon Web Services (AWS).
  * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.AwsProperties} */ -public final class AwsProperties extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AwsProperties extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.AwsProperties) AwsPropertiesOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AwsProperties.newBuilder() to construct. private AwsProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AwsProperties() { - } + + private AwsProperties() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AwsProperties(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AwsProperties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,41 +68,55 @@ private AwsProperties( case 0: done = true; break; - case 18: { - com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder subBuilder = null; - if (authenticationMethodCase_ == 2) { - subBuilder = ((com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_).toBuilder(); + case 18: + { + com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder subBuilder = null; + if (authenticationMethodCase_ == 2) { + subBuilder = + ((com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) + authenticationMethod_) + .toBuilder(); + } + authenticationMethod_ = + input.readMessage( + com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) + authenticationMethod_); + authenticationMethod_ = subBuilder.buildPartial(); + } + authenticationMethodCase_ = 2; + break; } - authenticationMethod_ = - input.readMessage(com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_); - authenticationMethod_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder subBuilder = null; + if (authenticationMethodCase_ == 3) { + subBuilder = + ((com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_) + .toBuilder(); + } + authenticationMethod_ = + input.readMessage( + com.google.cloud.bigquery.connection.v1.AwsAccessRole.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_); + authenticationMethod_ = subBuilder.buildPartial(); + } + authenticationMethodCase_ = 3; + break; } - authenticationMethodCase_ = 2; - break; - } - case 26: { - com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder subBuilder = null; - if (authenticationMethodCase_ == 3) { - subBuilder = ((com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_).toBuilder(); - } - authenticationMethod_ = - input.readMessage(com.google.cloud.bigquery.connection.v1.AwsAccessRole.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_); - authenticationMethod_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - authenticationMethodCase_ = 3; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,35 +124,40 @@ private AwsProperties( } 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.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsProperties_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_AwsProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.AwsProperties.class, com.google.cloud.bigquery.connection.v1.AwsProperties.Builder.class); + com.google.cloud.bigquery.connection.v1.AwsProperties.class, + com.google.cloud.bigquery.connection.v1.AwsProperties.Builder.class); } private int authenticationMethodCase_ = 0; private java.lang.Object authenticationMethod_; + public enum AuthenticationMethodCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CROSS_ACCOUNT_ROLE(2), ACCESS_ROLE(3), AUTHENTICATIONMETHOD_NOT_SET(0); private final int value; + private AuthenticationMethodCase(int value) { this.value = value; } @@ -138,31 +173,37 @@ public static AuthenticationMethodCase valueOf(int value) { public static AuthenticationMethodCase forNumber(int value) { switch (value) { - case 2: return CROSS_ACCOUNT_ROLE; - case 3: return ACCESS_ROLE; - case 0: return AUTHENTICATIONMETHOD_NOT_SET; - default: return null; + case 2: + return CROSS_ACCOUNT_ROLE; + case 3: + return ACCESS_ROLE; + case 0: + return AUTHENTICATIONMETHOD_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public AuthenticationMethodCase - getAuthenticationMethodCase() { - return AuthenticationMethodCase.forNumber( - authenticationMethodCase_); + public AuthenticationMethodCase getAuthenticationMethodCase() { + return AuthenticationMethodCase.forNumber(authenticationMethodCase_); } public static final int CROSS_ACCOUNT_ROLE_FIELD_NUMBER = 2; /** + * + * *
    * Authentication using Google owned AWS IAM user's access key to assume
    * into customer's AWS IAM Role.
    * 
* * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2; + * * @return Whether the crossAccountRole field is set. */ @java.lang.Override @@ -170,22 +211,27 @@ public boolean hasCrossAccountRole() { return authenticationMethodCase_ == 2; } /** + * + * *
    * Authentication using Google owned AWS IAM user's access key to assume
    * into customer's AWS IAM Role.
    * 
* * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2; + * * @return The crossAccountRole. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole getCrossAccountRole() { if (authenticationMethodCase_ == 2) { - return (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_; + return (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_; } return com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.getDefaultInstance(); } /** + * + * *
    * Authentication using Google owned AWS IAM user's access key to assume
    * into customer's AWS IAM Role.
@@ -194,21 +240,25 @@ public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole getCrossAccou
    * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2;
    */
   @java.lang.Override
-  public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder getCrossAccountRoleOrBuilder() {
+  public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder
+      getCrossAccountRoleOrBuilder() {
     if (authenticationMethodCase_ == 2) {
-       return (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_;
+      return (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_;
     }
     return com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.getDefaultInstance();
   }
 
   public static final int ACCESS_ROLE_FIELD_NUMBER = 3;
   /**
+   *
+   *
    * 
    * Authentication using Google owned service account to assume into
    * customer's AWS IAM Role.
    * 
* * .google.cloud.bigquery.connection.v1.AwsAccessRole access_role = 3; + * * @return Whether the accessRole field is set. */ @java.lang.Override @@ -216,22 +266,27 @@ public boolean hasAccessRole() { return authenticationMethodCase_ == 3; } /** + * + * *
    * Authentication using Google owned service account to assume into
    * customer's AWS IAM Role.
    * 
* * .google.cloud.bigquery.connection.v1.AwsAccessRole access_role = 3; + * * @return The accessRole. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.AwsAccessRole getAccessRole() { if (authenticationMethodCase_ == 3) { - return (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_; + return (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_; } return com.google.cloud.bigquery.connection.v1.AwsAccessRole.getDefaultInstance(); } /** + * + * *
    * Authentication using Google owned service account to assume into
    * customer's AWS IAM Role.
@@ -242,12 +297,13 @@ public com.google.cloud.bigquery.connection.v1.AwsAccessRole getAccessRole() {
   @java.lang.Override
   public com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder getAccessRoleOrBuilder() {
     if (authenticationMethodCase_ == 3) {
-       return (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_;
+      return (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_;
     }
     return com.google.cloud.bigquery.connection.v1.AwsAccessRole.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -259,13 +315,14 @@ 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 (authenticationMethodCase_ == 2) {
-      output.writeMessage(2, (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_);
+      output.writeMessage(
+          2, (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_);
     }
     if (authenticationMethodCase_ == 3) {
-      output.writeMessage(3, (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_);
+      output.writeMessage(
+          3, (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_);
     }
     unknownFields.writeTo(output);
   }
@@ -277,12 +334,15 @@ public int getSerializedSize() {
 
     size = 0;
     if (authenticationMethodCase_ == 2) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              2,
+              (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_);
     }
     if (authenticationMethodCase_ == 3) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              3, (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -292,22 +352,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.bigquery.connection.v1.AwsProperties)) {
       return super.equals(obj);
     }
-    com.google.cloud.bigquery.connection.v1.AwsProperties other = (com.google.cloud.bigquery.connection.v1.AwsProperties) obj;
+    com.google.cloud.bigquery.connection.v1.AwsProperties other =
+        (com.google.cloud.bigquery.connection.v1.AwsProperties) obj;
 
     if (!getAuthenticationMethodCase().equals(other.getAuthenticationMethodCase())) return false;
     switch (authenticationMethodCase_) {
       case 2:
-        if (!getCrossAccountRole()
-            .equals(other.getCrossAccountRole())) return false;
+        if (!getCrossAccountRole().equals(other.getCrossAccountRole())) return false;
         break;
       case 3:
-        if (!getAccessRole()
-            .equals(other.getAccessRole())) return false;
+        if (!getAccessRole().equals(other.getAccessRole())) return false;
         break;
       case 0:
       default:
@@ -341,117 +400,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.bigquery.connection.v1.AwsProperties 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.bigquery.connection.v1.AwsProperties 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.bigquery.connection.v1.AwsProperties parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.connection.v1.AwsProperties 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.bigquery.connection.v1.AwsProperties parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.connection.v1.AwsProperties 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.bigquery.connection.v1.AwsProperties parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.bigquery.connection.v1.AwsProperties parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.connection.v1.AwsProperties 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.bigquery.connection.v1.AwsProperties parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.bigquery.connection.v1.AwsProperties parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.connection.v1.AwsProperties 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.bigquery.connection.v1.AwsProperties 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.bigquery.connection.v1.AwsProperties 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.bigquery.connection.v1.AwsProperties prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.bigquery.connection.v1.AwsProperties 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;
   }
   /**
+   *
+   *
    * 
    * Connection properties specific to Amazon Web Services (AWS).
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.AwsProperties} */ - 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.bigquery.connection.v1.AwsProperties) com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsProperties_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_AwsProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.AwsProperties.class, com.google.cloud.bigquery.connection.v1.AwsProperties.Builder.class); + com.google.cloud.bigquery.connection.v1.AwsProperties.class, + com.google.cloud.bigquery.connection.v1.AwsProperties.Builder.class); } // Construct using com.google.cloud.bigquery.connection.v1.AwsProperties.newBuilder() @@ -459,16 +528,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(); @@ -478,9 +546,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor; } @java.lang.Override @@ -499,7 +567,8 @@ public com.google.cloud.bigquery.connection.v1.AwsProperties build() { @java.lang.Override public com.google.cloud.bigquery.connection.v1.AwsProperties buildPartial() { - com.google.cloud.bigquery.connection.v1.AwsProperties result = new com.google.cloud.bigquery.connection.v1.AwsProperties(this); + com.google.cloud.bigquery.connection.v1.AwsProperties result = + new com.google.cloud.bigquery.connection.v1.AwsProperties(this); if (authenticationMethodCase_ == 2) { if (crossAccountRoleBuilder_ == null) { result.authenticationMethod_ = authenticationMethod_; @@ -523,38 +592,39 @@ public com.google.cloud.bigquery.connection.v1.AwsProperties 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.bigquery.connection.v1.AwsProperties) { - return mergeFrom((com.google.cloud.bigquery.connection.v1.AwsProperties)other); + return mergeFrom((com.google.cloud.bigquery.connection.v1.AwsProperties) other); } else { super.mergeFrom(other); return this; @@ -562,19 +632,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.AwsProperties other) { - if (other == com.google.cloud.bigquery.connection.v1.AwsProperties.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.connection.v1.AwsProperties.getDefaultInstance()) + return this; switch (other.getAuthenticationMethodCase()) { - case CROSS_ACCOUNT_ROLE: { - mergeCrossAccountRole(other.getCrossAccountRole()); - break; - } - case ACCESS_ROLE: { - mergeAccessRole(other.getAccessRole()); - break; - } - case AUTHENTICATIONMETHOD_NOT_SET: { - break; - } + case CROSS_ACCOUNT_ROLE: + { + mergeCrossAccountRole(other.getCrossAccountRole()); + break; + } + case ACCESS_ROLE: + { + mergeAccessRole(other.getAccessRole()); + break; + } + case AUTHENTICATIONMETHOD_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -595,7 +669,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.connection.v1.AwsProperties) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.connection.v1.AwsProperties) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -604,12 +679,12 @@ public Builder mergeFrom( } return this; } + private int authenticationMethodCase_ = 0; private java.lang.Object authenticationMethod_; - public AuthenticationMethodCase - getAuthenticationMethodCase() { - return AuthenticationMethodCase.forNumber( - authenticationMethodCase_); + + public AuthenticationMethodCase getAuthenticationMethodCase() { + return AuthenticationMethodCase.forNumber(authenticationMethodCase_); } public Builder clearAuthenticationMethod() { @@ -619,16 +694,21 @@ public Builder clearAuthenticationMethod() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole, com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder, com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder> crossAccountRoleBuilder_; + com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole, + com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder, + com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder> + crossAccountRoleBuilder_; /** + * + * *
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
      * 
* * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2; + * * @return Whether the crossAccountRole field is set. */ @java.lang.Override @@ -636,19 +716,23 @@ public boolean hasCrossAccountRole() { return authenticationMethodCase_ == 2; } /** + * + * *
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
      * 
* * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2; + * * @return The crossAccountRole. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole getCrossAccountRole() { if (crossAccountRoleBuilder_ == null) { if (authenticationMethodCase_ == 2) { - return (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_; + return (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) + authenticationMethod_; } return com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.getDefaultInstance(); } else { @@ -659,6 +743,8 @@ public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole getCrossAccou } } /** + * + * *
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
@@ -666,7 +752,8 @@ public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole getCrossAccou
      *
      * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2;
      */
-    public Builder setCrossAccountRole(com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole value) {
+    public Builder setCrossAccountRole(
+        com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole value) {
       if (crossAccountRoleBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -680,6 +767,8 @@ public Builder setCrossAccountRole(com.google.cloud.bigquery.connection.v1.AwsCr
       return this;
     }
     /**
+     *
+     *
      * 
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
@@ -699,6 +788,8 @@ public Builder setCrossAccountRole(
       return this;
     }
     /**
+     *
+     *
      * 
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
@@ -706,12 +797,19 @@ public Builder setCrossAccountRole(
      *
      * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2;
      */
-    public Builder mergeCrossAccountRole(com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole value) {
+    public Builder mergeCrossAccountRole(
+        com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole value) {
       if (crossAccountRoleBuilder_ == null) {
-        if (authenticationMethodCase_ == 2 &&
-            authenticationMethod_ != com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.getDefaultInstance()) {
-          authenticationMethod_ = com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.newBuilder((com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_)
-              .mergeFrom(value).buildPartial();
+        if (authenticationMethodCase_ == 2
+            && authenticationMethod_
+                != com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole
+                    .getDefaultInstance()) {
+          authenticationMethod_ =
+              com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.newBuilder(
+                      (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole)
+                          authenticationMethod_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           authenticationMethod_ = value;
         }
@@ -727,6 +825,8 @@ public Builder mergeCrossAccountRole(com.google.cloud.bigquery.connection.v1.Aws
       return this;
     }
     /**
+     *
+     *
      * 
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
@@ -751,6 +851,8 @@ public Builder clearCrossAccountRole() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
@@ -758,10 +860,13 @@ public Builder clearCrossAccountRole() {
      *
      * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2;
      */
-    public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder getCrossAccountRoleBuilder() {
+    public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder
+        getCrossAccountRoleBuilder() {
       return getCrossAccountRoleFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
@@ -770,17 +875,21 @@ public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder getCr
      * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2;
      */
     @java.lang.Override
-    public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder getCrossAccountRoleOrBuilder() {
+    public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder
+        getCrossAccountRoleOrBuilder() {
       if ((authenticationMethodCase_ == 2) && (crossAccountRoleBuilder_ != null)) {
         return crossAccountRoleBuilder_.getMessageOrBuilder();
       } else {
         if (authenticationMethodCase_ == 2) {
-          return (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_;
+          return (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole)
+              authenticationMethod_;
         }
         return com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.getDefaultInstance();
       }
     }
     /**
+     *
+     *
      * 
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
@@ -789,33 +898,46 @@ public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder getC
      * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole, com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder, com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder> 
+            com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole,
+            com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder,
+            com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder>
         getCrossAccountRoleFieldBuilder() {
       if (crossAccountRoleBuilder_ == null) {
         if (!(authenticationMethodCase_ == 2)) {
-          authenticationMethod_ = com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.getDefaultInstance();
+          authenticationMethod_ =
+              com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.getDefaultInstance();
         }
-        crossAccountRoleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole, com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder, com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder>(
+        crossAccountRoleBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole,
+                com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder,
+                com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder>(
                 (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_,
                 getParentForChildren(),
                 isClean());
         authenticationMethod_ = null;
       }
       authenticationMethodCase_ = 2;
-      onChanged();;
+      onChanged();
+      ;
       return crossAccountRoleBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.connection.v1.AwsAccessRole, com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder, com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder> accessRoleBuilder_;
+            com.google.cloud.bigquery.connection.v1.AwsAccessRole,
+            com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder,
+            com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder>
+        accessRoleBuilder_;
     /**
+     *
+     *
      * 
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
      * 
* * .google.cloud.bigquery.connection.v1.AwsAccessRole access_role = 3; + * * @return Whether the accessRole field is set. */ @java.lang.Override @@ -823,12 +945,15 @@ public boolean hasAccessRole() { return authenticationMethodCase_ == 3; } /** + * + * *
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
      * 
* * .google.cloud.bigquery.connection.v1.AwsAccessRole access_role = 3; + * * @return The accessRole. */ @java.lang.Override @@ -846,6 +971,8 @@ public com.google.cloud.bigquery.connection.v1.AwsAccessRole getAccessRole() { } } /** + * + * *
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
@@ -867,6 +994,8 @@ public Builder setAccessRole(com.google.cloud.bigquery.connection.v1.AwsAccessRo
       return this;
     }
     /**
+     *
+     *
      * 
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
@@ -886,6 +1015,8 @@ public Builder setAccessRole(
       return this;
     }
     /**
+     *
+     *
      * 
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
@@ -895,10 +1026,14 @@ public Builder setAccessRole(
      */
     public Builder mergeAccessRole(com.google.cloud.bigquery.connection.v1.AwsAccessRole value) {
       if (accessRoleBuilder_ == null) {
-        if (authenticationMethodCase_ == 3 &&
-            authenticationMethod_ != com.google.cloud.bigquery.connection.v1.AwsAccessRole.getDefaultInstance()) {
-          authenticationMethod_ = com.google.cloud.bigquery.connection.v1.AwsAccessRole.newBuilder((com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_)
-              .mergeFrom(value).buildPartial();
+        if (authenticationMethodCase_ == 3
+            && authenticationMethod_
+                != com.google.cloud.bigquery.connection.v1.AwsAccessRole.getDefaultInstance()) {
+          authenticationMethod_ =
+              com.google.cloud.bigquery.connection.v1.AwsAccessRole.newBuilder(
+                      (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           authenticationMethod_ = value;
         }
@@ -914,6 +1049,8 @@ public Builder mergeAccessRole(com.google.cloud.bigquery.connection.v1.AwsAccess
       return this;
     }
     /**
+     *
+     *
      * 
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
@@ -938,6 +1075,8 @@ public Builder clearAccessRole() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
@@ -949,6 +1088,8 @@ public com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder getAccessRo
       return getAccessRoleFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
@@ -968,6 +1109,8 @@ public com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder getAccessR
       }
     }
     /**
+     *
+     *
      * 
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
@@ -976,26 +1119,33 @@ public com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder getAccessR
      * .google.cloud.bigquery.connection.v1.AwsAccessRole access_role = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.connection.v1.AwsAccessRole, com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder, com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder> 
+            com.google.cloud.bigquery.connection.v1.AwsAccessRole,
+            com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder,
+            com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder>
         getAccessRoleFieldBuilder() {
       if (accessRoleBuilder_ == null) {
         if (!(authenticationMethodCase_ == 3)) {
-          authenticationMethod_ = com.google.cloud.bigquery.connection.v1.AwsAccessRole.getDefaultInstance();
+          authenticationMethod_ =
+              com.google.cloud.bigquery.connection.v1.AwsAccessRole.getDefaultInstance();
         }
-        accessRoleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.connection.v1.AwsAccessRole, com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder, com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder>(
+        accessRoleBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.bigquery.connection.v1.AwsAccessRole,
+                com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder,
+                com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder>(
                 (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_,
                 getParentForChildren(),
                 isClean());
         authenticationMethod_ = null;
       }
       authenticationMethodCase_ = 3;
-      onChanged();;
+      onChanged();
+      ;
       return accessRoleBuilder_;
     }
+
     @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);
     }
 
@@ -1005,12 +1155,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.AwsProperties)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.AwsProperties)
   private static final com.google.cloud.bigquery.connection.v1.AwsProperties DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.AwsProperties();
   }
@@ -1019,16 +1169,16 @@ public static com.google.cloud.bigquery.connection.v1.AwsProperties getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public AwsProperties parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new AwsProperties(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public AwsProperties parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new AwsProperties(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1043,6 +1193,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.bigquery.connection.v1.AwsProperties getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java
similarity index 73%
rename from owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java
rename to proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java
index a057fd62..41ed383b 100644
--- a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java
+++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java
@@ -1,33 +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/bigquery/connection/v1/connection.proto
 
 package com.google.cloud.bigquery.connection.v1;
 
-public interface AwsPropertiesOrBuilder extends
+public interface AwsPropertiesOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.AwsProperties)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Authentication using Google owned AWS IAM user's access key to assume
    * into customer's AWS IAM Role.
    * 
* * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2; + * * @return Whether the crossAccountRole field is set. */ boolean hasCrossAccountRole(); /** + * + * *
    * Authentication using Google owned AWS IAM user's access key to assume
    * into customer's AWS IAM Role.
    * 
* * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2; + * * @return The crossAccountRole. */ com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole getCrossAccountRole(); /** + * + * *
    * Authentication using Google owned AWS IAM user's access key to assume
    * into customer's AWS IAM Role.
@@ -35,29 +59,38 @@ public interface AwsPropertiesOrBuilder extends
    *
    * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2;
    */
-  com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder getCrossAccountRoleOrBuilder();
+  com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder
+      getCrossAccountRoleOrBuilder();
 
   /**
+   *
+   *
    * 
    * Authentication using Google owned service account to assume into
    * customer's AWS IAM Role.
    * 
* * .google.cloud.bigquery.connection.v1.AwsAccessRole access_role = 3; + * * @return Whether the accessRole field is set. */ boolean hasAccessRole(); /** + * + * *
    * Authentication using Google owned service account to assume into
    * customer's AWS IAM Role.
    * 
* * .google.cloud.bigquery.connection.v1.AwsAccessRole access_role = 3; + * * @return The accessRole. */ com.google.cloud.bigquery.connection.v1.AwsAccessRole getAccessRole(); /** + * + * *
    * Authentication using Google owned service account to assume into
    * customer's AWS IAM Role.
@@ -67,5 +100,6 @@ public interface AwsPropertiesOrBuilder extends
    */
   com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder getAccessRoleOrBuilder();
 
-  public com.google.cloud.bigquery.connection.v1.AwsProperties.AuthenticationMethodCase getAuthenticationMethodCase();
+  public com.google.cloud.bigquery.connection.v1.AwsProperties.AuthenticationMethodCase
+      getAuthenticationMethodCase();
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourceProperties.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourceProperties.java
similarity index 72%
rename from owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourceProperties.java
rename to proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourceProperties.java
index 5036ec76..7f8bcf53 100644
--- a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourceProperties.java
+++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourceProperties.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/connection/v1/connection.proto
 
 package com.google.cloud.bigquery.connection.v1;
 
 /**
+ *
+ *
  * 
  * Container for connection properties for delegation of access to GCP
  * resources.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.bigquery.connection.v1.CloudResourceProperties}
  */
-public final class CloudResourceProperties extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CloudResourceProperties extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.CloudResourceProperties)
     CloudResourcePropertiesOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CloudResourceProperties.newBuilder() to construct.
   private CloudResourceProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CloudResourceProperties() {
     serviceAccountId_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CloudResourceProperties();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CloudResourceProperties(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,19 +71,20 @@ private CloudResourceProperties(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            serviceAccountId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              serviceAccountId_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -74,29 +92,33 @@ private CloudResourceProperties(
     } 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.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
+        .internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable
+    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
+        .internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.connection.v1.CloudResourceProperties.class, com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder.class);
+            com.google.cloud.bigquery.connection.v1.CloudResourceProperties.class,
+            com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder.class);
   }
 
   public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 1;
   private volatile java.lang.Object serviceAccountId_;
   /**
+   *
+   *
    * 
    * Output only. The account ID of the service created for the purpose of this connection.
    * The service account does not have any permissions associated with it
@@ -109,6 +131,7 @@ private CloudResourceProperties(
    * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAccountId. */ @java.lang.Override @@ -117,14 +140,15 @@ public java.lang.String getServiceAccountId() { 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(); serviceAccountId_ = s; return s; } } /** + * + * *
    * Output only. The account ID of the service created for the purpose of this connection.
    * The service account does not have any permissions associated with it
@@ -137,16 +161,15 @@ public java.lang.String getServiceAccountId() {
    * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAccountId. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountIdBytes() { + public com.google.protobuf.ByteString getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; 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); serviceAccountId_ = b; return b; } else { @@ -155,6 +178,7 @@ public java.lang.String getServiceAccountId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +190,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(serviceAccountId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAccountId_); } @@ -191,15 +214,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.bigquery.connection.v1.CloudResourceProperties)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.CloudResourceProperties other = (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) obj; + com.google.cloud.bigquery.connection.v1.CloudResourceProperties other = + (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) obj; - if (!getServiceAccountId() - .equals(other.getServiceAccountId())) return false; + if (!getServiceAccountId().equals(other.getServiceAccountId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -219,96 +242,104 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties 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.bigquery.connection.v1.CloudResourceProperties 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.bigquery.connection.v1.CloudResourceProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties 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.bigquery.connection.v1.CloudResourceProperties parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties 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.bigquery.connection.v1.CloudResourceProperties parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties 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.bigquery.connection.v1.CloudResourceProperties parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties 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.bigquery.connection.v1.CloudResourceProperties 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.bigquery.connection.v1.CloudResourceProperties 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.bigquery.connection.v1.CloudResourceProperties prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.connection.v1.CloudResourceProperties 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; } /** + * + * *
    * Container for connection properties for delegation of access to GCP
    * resources.
@@ -316,21 +347,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.connection.v1.CloudResourceProperties}
    */
-  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.bigquery.connection.v1.CloudResourceProperties)
       com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
+          .internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
+          .internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.connection.v1.CloudResourceProperties.class, com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder.class);
+              com.google.cloud.bigquery.connection.v1.CloudResourceProperties.class,
+              com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.connection.v1.CloudResourceProperties.newBuilder()
@@ -338,16 +371,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();
@@ -357,13 +389,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
+          .internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.connection.v1.CloudResourceProperties getDefaultInstanceForType() {
+    public com.google.cloud.bigquery.connection.v1.CloudResourceProperties
+        getDefaultInstanceForType() {
       return com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance();
     }
 
@@ -378,7 +411,8 @@ public com.google.cloud.bigquery.connection.v1.CloudResourceProperties build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.connection.v1.CloudResourceProperties buildPartial() {
-      com.google.cloud.bigquery.connection.v1.CloudResourceProperties result = new com.google.cloud.bigquery.connection.v1.CloudResourceProperties(this);
+      com.google.cloud.bigquery.connection.v1.CloudResourceProperties result =
+          new com.google.cloud.bigquery.connection.v1.CloudResourceProperties(this);
       result.serviceAccountId_ = serviceAccountId_;
       onBuilt();
       return result;
@@ -388,46 +422,50 @@ public com.google.cloud.bigquery.connection.v1.CloudResourceProperties buildPart
     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.bigquery.connection.v1.CloudResourceProperties) {
-        return mergeFrom((com.google.cloud.bigquery.connection.v1.CloudResourceProperties)other);
+        return mergeFrom((com.google.cloud.bigquery.connection.v1.CloudResourceProperties) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.CloudResourceProperties other) {
-      if (other == com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.bigquery.connection.v1.CloudResourceProperties other) {
+      if (other
+          == com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance())
+        return this;
       if (!other.getServiceAccountId().isEmpty()) {
         serviceAccountId_ = other.serviceAccountId_;
         onChanged();
@@ -451,7 +489,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.bigquery.connection.v1.CloudResourceProperties)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -463,6 +503,8 @@ public Builder mergeFrom(
 
     private java.lang.Object serviceAccountId_ = "";
     /**
+     *
+     *
      * 
      * Output only. The account ID of the service created for the purpose of this connection.
      * The service account does not have any permissions associated with it
@@ -475,13 +517,13 @@ public Builder mergeFrom(
      * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAccountId. */ public java.lang.String getServiceAccountId() { java.lang.Object ref = serviceAccountId_; 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(); serviceAccountId_ = s; return s; @@ -490,6 +532,8 @@ public java.lang.String getServiceAccountId() { } } /** + * + * *
      * Output only. The account ID of the service created for the purpose of this connection.
      * The service account does not have any permissions associated with it
@@ -502,15 +546,14 @@ public java.lang.String getServiceAccountId() {
      * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAccountId. */ - public com.google.protobuf.ByteString - getServiceAccountIdBytes() { + public com.google.protobuf.ByteString getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; 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); serviceAccountId_ = b; return b; } else { @@ -518,6 +561,8 @@ public java.lang.String getServiceAccountId() { } } /** + * + * *
      * Output only. The account ID of the service created for the purpose of this connection.
      * The service account does not have any permissions associated with it
@@ -530,20 +575,22 @@ public java.lang.String getServiceAccountId() {
      * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The serviceAccountId to set. * @return This builder for chaining. */ - public Builder setServiceAccountId( - java.lang.String value) { + public Builder setServiceAccountId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccountId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The account ID of the service created for the purpose of this connection.
      * The service account does not have any permissions associated with it
@@ -556,15 +603,18 @@ public Builder setServiceAccountId(
      * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearServiceAccountId() { - + serviceAccountId_ = getDefaultInstance().getServiceAccountId(); onChanged(); return this; } /** + * + * *
      * Output only. The account ID of the service created for the purpose of this connection.
      * The service account does not have any permissions associated with it
@@ -577,23 +627,23 @@ public Builder clearServiceAccountId() {
      * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for serviceAccountId to set. * @return This builder for chaining. */ - public Builder setServiceAccountIdBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceAccountIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountId_ = 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); } @@ -603,30 +653,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.CloudResourceProperties) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.CloudResourceProperties) - private static final com.google.cloud.bigquery.connection.v1.CloudResourceProperties DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.connection.v1.CloudResourceProperties + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.CloudResourceProperties(); } - public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudResourceProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudResourceProperties(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudResourceProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CloudResourceProperties(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -638,9 +690,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudResourceProperties getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.CloudResourceProperties + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourcePropertiesOrBuilder.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourcePropertiesOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourcePropertiesOrBuilder.java rename to proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourcePropertiesOrBuilder.java index c47cefaf..54df72fe 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourcePropertiesOrBuilder.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourcePropertiesOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; -public interface CloudResourcePropertiesOrBuilder extends +public interface CloudResourcePropertiesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.CloudResourceProperties) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The account ID of the service created for the purpose of this connection.
    * The service account does not have any permissions associated with it
@@ -20,10 +38,13 @@ public interface CloudResourcePropertiesOrBuilder extends
    * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAccountId. */ java.lang.String getServiceAccountId(); /** + * + * *
    * Output only. The account ID of the service created for the purpose of this connection.
    * The service account does not have any permissions associated with it
@@ -36,8 +57,8 @@ public interface CloudResourcePropertiesOrBuilder extends
    * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAccountId. */ - com.google.protobuf.ByteString - getServiceAccountIdBytes(); + com.google.protobuf.ByteString getServiceAccountIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.java rename to proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.java index d07548d2..d2d0dbf1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.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/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** + * + * *
  * Connection properties specific to Cloud Spanner.
  * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.CloudSpannerProperties} */ -public final class CloudSpannerProperties extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CloudSpannerProperties extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.CloudSpannerProperties) CloudSpannerPropertiesOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CloudSpannerProperties.newBuilder() to construct. private CloudSpannerProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CloudSpannerProperties() { database_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CloudSpannerProperties(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CloudSpannerProperties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,24 +70,25 @@ private CloudSpannerProperties( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - database_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - useParallelism_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + database_ = s; + break; + } + case 16: + { + useParallelism_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -78,34 +96,39 @@ private CloudSpannerProperties( } 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.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.class, com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder.class); + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.class, + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder.class); } public static final int DATABASE_FIELD_NUMBER = 1; private volatile java.lang.Object database_; /** + * + * *
    * Cloud Spanner database in the form `project/instance/database'
    * 
* * string database = 1; + * * @return The database. */ @java.lang.Override @@ -114,29 +137,29 @@ public java.lang.String getDatabase() { 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(); database_ = s; return s; } } /** + * + * *
    * Cloud Spanner database in the form `project/instance/database'
    * 
* * string database = 1; + * * @return The bytes for database. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatabaseBytes() { + public com.google.protobuf.ByteString getDatabaseBytes() { java.lang.Object ref = database_; 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); database_ = b; return b; } else { @@ -147,11 +170,14 @@ public java.lang.String getDatabase() { public static final int USE_PARALLELISM_FIELD_NUMBER = 2; private boolean useParallelism_; /** + * + * *
    * If parallelism should be used when reading from Cloud Spanner
    * 
* * bool use_parallelism = 2; + * * @return The useParallelism. */ @java.lang.Override @@ -160,6 +186,7 @@ public boolean getUseParallelism() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +198,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(database_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_); } @@ -192,8 +218,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, database_); } if (useParallelism_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, useParallelism_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, useParallelism_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -203,17 +228,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.bigquery.connection.v1.CloudSpannerProperties)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties other = (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) obj; + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties other = + (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) obj; - if (!getDatabase() - .equals(other.getDatabase())) return false; - if (getUseParallelism() - != other.getUseParallelism()) return false; + if (!getDatabase().equals(other.getDatabase())) return false; + if (getUseParallelism() != other.getUseParallelism()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,125 +252,134 @@ public int hashCode() { hash = (37 * hash) + DATABASE_FIELD_NUMBER; hash = (53 * hash) + getDatabase().hashCode(); hash = (37 * hash) + USE_PARALLELISM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUseParallelism()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseParallelism()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.connection.v1.CloudSpannerProperties 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.bigquery.connection.v1.CloudSpannerProperties 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.bigquery.connection.v1.CloudSpannerProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.CloudSpannerProperties 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.bigquery.connection.v1.CloudSpannerProperties parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1.CloudSpannerProperties parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.CloudSpannerProperties 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.bigquery.connection.v1.CloudSpannerProperties parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1.CloudSpannerProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1.CloudSpannerProperties 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.bigquery.connection.v1.CloudSpannerProperties parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1.CloudSpannerProperties parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1.CloudSpannerProperties 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.bigquery.connection.v1.CloudSpannerProperties 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.bigquery.connection.v1.CloudSpannerProperties 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.bigquery.connection.v1.CloudSpannerProperties prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties 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; } /** + * + * *
    * Connection properties specific to Cloud Spanner.
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.CloudSpannerProperties} */ - 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.bigquery.connection.v1.CloudSpannerProperties) com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.class, com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder.class); + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.class, + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder.class); } // Construct using com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.newBuilder() @@ -354,16 +387,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(); @@ -375,13 +407,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties + getDefaultInstanceForType() { return com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.getDefaultInstance(); } @@ -396,7 +429,8 @@ public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties build() { @java.lang.Override public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties buildPartial() { - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties result = new com.google.cloud.bigquery.connection.v1.CloudSpannerProperties(this); + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties result = + new com.google.cloud.bigquery.connection.v1.CloudSpannerProperties(this); result.database_ = database_; result.useParallelism_ = useParallelism_; onBuilt(); @@ -407,38 +441,39 @@ public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties buildParti 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.bigquery.connection.v1.CloudSpannerProperties) { - return mergeFrom((com.google.cloud.bigquery.connection.v1.CloudSpannerProperties)other); + return mergeFrom((com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) other); } else { super.mergeFrom(other); return this; @@ -446,7 +481,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.CloudSpannerProperties other) { - if (other == com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.getDefaultInstance()) return this; + if (other + == com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.getDefaultInstance()) + return this; if (!other.getDatabase().isEmpty()) { database_ = other.database_; onChanged(); @@ -473,7 +510,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -485,18 +524,20 @@ public Builder mergeFrom( private java.lang.Object database_ = ""; /** + * + * *
      * Cloud Spanner database in the form `project/instance/database'
      * 
* * string database = 1; + * * @return The database. */ public java.lang.String getDatabase() { java.lang.Object ref = database_; 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(); database_ = s; return s; @@ -505,20 +546,21 @@ public java.lang.String getDatabase() { } } /** + * + * *
      * Cloud Spanner database in the form `project/instance/database'
      * 
* * string database = 1; + * * @return The bytes for database. */ - public com.google.protobuf.ByteString - getDatabaseBytes() { + public com.google.protobuf.ByteString getDatabaseBytes() { java.lang.Object ref = database_; 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); database_ = b; return b; } else { @@ -526,66 +568,76 @@ public java.lang.String getDatabase() { } } /** + * + * *
      * Cloud Spanner database in the form `project/instance/database'
      * 
* * string database = 1; + * * @param value The database to set. * @return This builder for chaining. */ - public Builder setDatabase( - java.lang.String value) { + public Builder setDatabase(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + database_ = value; onChanged(); return this; } /** + * + * *
      * Cloud Spanner database in the form `project/instance/database'
      * 
* * string database = 1; + * * @return This builder for chaining. */ public Builder clearDatabase() { - + database_ = getDefaultInstance().getDatabase(); onChanged(); return this; } /** + * + * *
      * Cloud Spanner database in the form `project/instance/database'
      * 
* * string database = 1; + * * @param value The bytes for database to set. * @return This builder for chaining. */ - public Builder setDatabaseBytes( - com.google.protobuf.ByteString value) { + public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + database_ = value; onChanged(); return this; } - private boolean useParallelism_ ; + private boolean useParallelism_; /** + * + * *
      * If parallelism should be used when reading from Cloud Spanner
      * 
* * bool use_parallelism = 2; + * * @return The useParallelism. */ @java.lang.Override @@ -593,37 +645,43 @@ public boolean getUseParallelism() { return useParallelism_; } /** + * + * *
      * If parallelism should be used when reading from Cloud Spanner
      * 
* * bool use_parallelism = 2; + * * @param value The useParallelism to set. * @return This builder for chaining. */ public Builder setUseParallelism(boolean value) { - + useParallelism_ = value; onChanged(); return this; } /** + * + * *
      * If parallelism should be used when reading from Cloud Spanner
      * 
* * bool use_parallelism = 2; + * * @return This builder for chaining. */ public Builder clearUseParallelism() { - + useParallelism_ = false; 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); } @@ -633,30 +691,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.CloudSpannerProperties) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.CloudSpannerProperties) - private static final com.google.cloud.bigquery.connection.v1.CloudSpannerProperties DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.connection.v1.CloudSpannerProperties + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.CloudSpannerProperties(); } - public static com.google.cloud.bigquery.connection.v1.CloudSpannerProperties getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1.CloudSpannerProperties + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudSpannerProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudSpannerProperties(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudSpannerProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CloudSpannerProperties(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -668,9 +728,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java rename to proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java index 3bd75fd0..4e33efa2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java @@ -1,38 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; -public interface CloudSpannerPropertiesOrBuilder extends +public interface CloudSpannerPropertiesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.CloudSpannerProperties) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Cloud Spanner database in the form `project/instance/database'
    * 
* * string database = 1; + * * @return The database. */ java.lang.String getDatabase(); /** + * + * *
    * Cloud Spanner database in the form `project/instance/database'
    * 
* * string database = 1; + * * @return The bytes for database. */ - com.google.protobuf.ByteString - getDatabaseBytes(); + com.google.protobuf.ByteString getDatabaseBytes(); /** + * + * *
    * If parallelism should be used when reading from Cloud Spanner
    * 
* * bool use_parallelism = 2; + * * @return The useParallelism. */ boolean getUseParallelism(); diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredential.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredential.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredential.java rename to proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredential.java index f96bd762..a499010f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredential.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredential.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/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** + * + * *
  * Credential info for the Cloud SQL.
  * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.CloudSqlCredential} */ -public final class CloudSqlCredential extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CloudSqlCredential extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.CloudSqlCredential) CloudSqlCredentialOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CloudSqlCredential.newBuilder() to construct. private CloudSqlCredential(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CloudSqlCredential() { username_ = ""; password_ = ""; @@ -26,16 +44,15 @@ private CloudSqlCredential() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CloudSqlCredential(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CloudSqlCredential( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private CloudSqlCredential( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - username_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + username_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + password_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,34 +99,39 @@ private CloudSqlCredential( } 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.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.CloudSqlCredential.class, com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder.class); + com.google.cloud.bigquery.connection.v1.CloudSqlCredential.class, + com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder.class); } public static final int USERNAME_FIELD_NUMBER = 1; private volatile java.lang.Object username_; /** + * + * *
    * The username for the credential.
    * 
* * string username = 1; + * * @return The username. */ @java.lang.Override @@ -116,29 +140,29 @@ public java.lang.String getUsername() { 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(); username_ = s; return s; } } /** + * + * *
    * The username for the credential.
    * 
* * string username = 1; + * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; 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); username_ = b; return b; } else { @@ -149,11 +173,14 @@ public java.lang.String getUsername() { public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** + * + * *
    * The password for the credential.
    * 
* * string password = 2; + * * @return The password. */ @java.lang.Override @@ -162,29 +189,29 @@ public java.lang.String getPassword() { 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(); password_ = s; return s; } } /** + * + * *
    * The password for the credential.
    * 
* * string password = 2; + * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; 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); password_ = b; return b; } else { @@ -193,6 +220,7 @@ public java.lang.String getPassword() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +232,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(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -235,17 +262,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.bigquery.connection.v1.CloudSqlCredential)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.CloudSqlCredential other = (com.google.cloud.bigquery.connection.v1.CloudSqlCredential) obj; + com.google.cloud.bigquery.connection.v1.CloudSqlCredential other = + (com.google.cloud.bigquery.connection.v1.CloudSqlCredential) obj; - if (!getUsername() - .equals(other.getUsername())) return false; - if (!getPassword() - .equals(other.getPassword())) return false; + if (!getUsername().equals(other.getUsername())) return false; + if (!getPassword().equals(other.getPassword())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -267,117 +293,127 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.CloudSqlCredential 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.bigquery.connection.v1.CloudSqlCredential 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.bigquery.connection.v1.CloudSqlCredential parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.CloudSqlCredential 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.bigquery.connection.v1.CloudSqlCredential parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.CloudSqlCredential 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.bigquery.connection.v1.CloudSqlCredential parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1.CloudSqlCredential parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1.CloudSqlCredential 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.bigquery.connection.v1.CloudSqlCredential parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1.CloudSqlCredential parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1.CloudSqlCredential 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.bigquery.connection.v1.CloudSqlCredential 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.bigquery.connection.v1.CloudSqlCredential 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.bigquery.connection.v1.CloudSqlCredential prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.connection.v1.CloudSqlCredential 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; } /** + * + * *
    * Credential info for the Cloud SQL.
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.CloudSqlCredential} */ - 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.bigquery.connection.v1.CloudSqlCredential) com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.CloudSqlCredential.class, com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder.class); + com.google.cloud.bigquery.connection.v1.CloudSqlCredential.class, + com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder.class); } // Construct using com.google.cloud.bigquery.connection.v1.CloudSqlCredential.newBuilder() @@ -385,16 +421,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(); @@ -406,9 +441,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_descriptor; } @java.lang.Override @@ -427,7 +462,8 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlCredential build() { @java.lang.Override public com.google.cloud.bigquery.connection.v1.CloudSqlCredential buildPartial() { - com.google.cloud.bigquery.connection.v1.CloudSqlCredential result = new com.google.cloud.bigquery.connection.v1.CloudSqlCredential(this); + com.google.cloud.bigquery.connection.v1.CloudSqlCredential result = + new com.google.cloud.bigquery.connection.v1.CloudSqlCredential(this); result.username_ = username_; result.password_ = password_; onBuilt(); @@ -438,38 +474,39 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlCredential 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.bigquery.connection.v1.CloudSqlCredential) { - return mergeFrom((com.google.cloud.bigquery.connection.v1.CloudSqlCredential)other); + return mergeFrom((com.google.cloud.bigquery.connection.v1.CloudSqlCredential) other); } else { super.mergeFrom(other); return this; @@ -477,7 +514,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.CloudSqlCredential other) { - if (other == com.google.cloud.bigquery.connection.v1.CloudSqlCredential.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.connection.v1.CloudSqlCredential.getDefaultInstance()) + return this; if (!other.getUsername().isEmpty()) { username_ = other.username_; onChanged(); @@ -505,7 +543,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.connection.v1.CloudSqlCredential) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.connection.v1.CloudSqlCredential) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -517,18 +556,20 @@ public Builder mergeFrom( private java.lang.Object username_ = ""; /** + * + * *
      * The username for the credential.
      * 
* * string username = 1; + * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; 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(); username_ = s; return s; @@ -537,20 +578,21 @@ public java.lang.String getUsername() { } } /** + * + * *
      * The username for the credential.
      * 
* * string username = 1; + * * @return The bytes for username. */ - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; 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); username_ = b; return b; } else { @@ -558,54 +600,61 @@ public java.lang.String getUsername() { } } /** + * + * *
      * The username for the credential.
      * 
* * string username = 1; + * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername( - java.lang.String value) { + public Builder setUsername(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; onChanged(); return this; } /** + * + * *
      * The username for the credential.
      * 
* * string username = 1; + * * @return This builder for chaining. */ public Builder clearUsername() { - + username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** + * + * *
      * The username for the credential.
      * 
* * string username = 1; + * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes( - com.google.protobuf.ByteString value) { + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -613,18 +662,20 @@ public Builder setUsernameBytes( private java.lang.Object password_ = ""; /** + * + * *
      * The password for the credential.
      * 
* * string password = 2; + * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; 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(); password_ = s; return s; @@ -633,20 +684,21 @@ public java.lang.String getPassword() { } } /** + * + * *
      * The password for the credential.
      * 
* * string password = 2; + * * @return The bytes for password. */ - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; 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); password_ = b; return b; } else { @@ -654,61 +706,68 @@ public java.lang.String getPassword() { } } /** + * + * *
      * The password for the credential.
      * 
* * string password = 2; + * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword( - java.lang.String value) { + public Builder setPassword(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; onChanged(); return this; } /** + * + * *
      * The password for the credential.
      * 
* * string password = 2; + * * @return This builder for chaining. */ public Builder clearPassword() { - + password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** + * + * *
      * The password for the credential.
      * 
* * string password = 2; + * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = 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); } @@ -718,12 +777,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.CloudSqlCredential) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.CloudSqlCredential) private static final com.google.cloud.bigquery.connection.v1.CloudSqlCredential DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.CloudSqlCredential(); } @@ -732,16 +791,16 @@ public static com.google.cloud.bigquery.connection.v1.CloudSqlCredential getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudSqlCredential parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudSqlCredential(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudSqlCredential parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CloudSqlCredential(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,6 +815,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.connection.v1.CloudSqlCredential getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredentialOrBuilder.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredentialOrBuilder.java similarity index 54% rename from owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredentialOrBuilder.java rename to proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredentialOrBuilder.java index 2285698d..4ffc1de6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredentialOrBuilder.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredentialOrBuilder.java @@ -1,49 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; -public interface CloudSqlCredentialOrBuilder extends +public interface CloudSqlCredentialOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.CloudSqlCredential) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The username for the credential.
    * 
* * string username = 1; + * * @return The username. */ java.lang.String getUsername(); /** + * + * *
    * The username for the credential.
    * 
* * string username = 1; + * * @return The bytes for username. */ - com.google.protobuf.ByteString - getUsernameBytes(); + com.google.protobuf.ByteString getUsernameBytes(); /** + * + * *
    * The password for the credential.
    * 
* * string password = 2; + * * @return The password. */ java.lang.String getPassword(); /** + * + * *
    * The password for the credential.
    * 
* * string password = 2; + * * @return The bytes for password. */ - com.google.protobuf.ByteString - getPasswordBytes(); + com.google.protobuf.ByteString getPasswordBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.java rename to proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.java index 50b4159d..bf090cba 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.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/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** + * + * *
  * Connection properties specific to the Cloud SQL.
  * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.CloudSqlProperties} */ -public final class CloudSqlProperties extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CloudSqlProperties extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.CloudSqlProperties) CloudSqlPropertiesOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CloudSqlProperties.newBuilder() to construct. private CloudSqlProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CloudSqlProperties() { instanceId_ = ""; database_ = ""; @@ -27,16 +45,15 @@ private CloudSqlProperties() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CloudSqlProperties(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CloudSqlProperties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,44 +72,51 @@ private CloudSqlProperties( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - instanceId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + instanceId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - database_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); + database_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 34: { - com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder subBuilder = null; - if (credential_ != null) { - subBuilder = credential_.toBuilder(); + type_ = rawValue; + break; } - credential_ = input.readMessage(com.google.cloud.bigquery.connection.v1.CloudSqlCredential.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(credential_); - credential_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder subBuilder = null; + if (credential_ != null) { + subBuilder = credential_.toBuilder(); + } + credential_ = + input.readMessage( + com.google.cloud.bigquery.connection.v1.CloudSqlCredential.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(credential_); + credential_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -100,36 +124,41 @@ private CloudSqlProperties( } 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.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.CloudSqlProperties.class, com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder.class); + com.google.cloud.bigquery.connection.v1.CloudSqlProperties.class, + com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder.class); } /** + * + * *
    * Supported Cloud SQL database types.
    * 
* * Protobuf enum {@code google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType} */ - public enum DatabaseType - implements com.google.protobuf.ProtocolMessageEnum { + public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified database type.
      * 
@@ -138,6 +167,8 @@ public enum DatabaseType */ DATABASE_TYPE_UNSPECIFIED(0), /** + * + * *
      * Cloud SQL for PostgreSQL.
      * 
@@ -146,6 +177,8 @@ public enum DatabaseType */ POSTGRES(1), /** + * + * *
      * Cloud SQL for MySQL.
      * 
@@ -157,6 +190,8 @@ public enum DatabaseType ; /** + * + * *
      * Unspecified database type.
      * 
@@ -165,6 +200,8 @@ public enum DatabaseType */ public static final int DATABASE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Cloud SQL for PostgreSQL.
      * 
@@ -173,6 +210,8 @@ public enum DatabaseType */ public static final int POSTGRES_VALUE = 1; /** + * + * *
      * Cloud SQL for MySQL.
      * 
@@ -181,7 +220,6 @@ public enum DatabaseType */ public static final int MYSQL_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -206,49 +244,51 @@ public static DatabaseType valueOf(int value) { */ public static DatabaseType forNumber(int value) { switch (value) { - case 0: return DATABASE_TYPE_UNSPECIFIED; - case 1: return POSTGRES; - case 2: return MYSQL; - default: return null; + case 0: + return DATABASE_TYPE_UNSPECIFIED; + case 1: + return POSTGRES; + case 2: + return MYSQL; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - DatabaseType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DatabaseType findValueByNumber(int number) { - return DatabaseType.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 DatabaseType findValueByNumber(int number) { + return DatabaseType.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() { - return com.google.cloud.bigquery.connection.v1.CloudSqlProperties.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1.CloudSqlProperties.getDescriptor() + .getEnumTypes() + .get(0); } private static final DatabaseType[] VALUES = values(); - public static DatabaseType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static DatabaseType 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; @@ -268,11 +308,14 @@ private DatabaseType(int value) { public static final int INSTANCE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceId_; /** + * + * *
    * Cloud SQL instance ID in the form `project:location:instance`.
    * 
* * string instance_id = 1; + * * @return The instanceId. */ @java.lang.Override @@ -281,29 +324,29 @@ public java.lang.String getInstanceId() { 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(); instanceId_ = s; return s; } } /** + * + * *
    * Cloud SQL instance ID in the form `project:location:instance`.
    * 
* * string instance_id = 1; + * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString - getInstanceIdBytes() { + public com.google.protobuf.ByteString getInstanceIdBytes() { java.lang.Object ref = instanceId_; 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); instanceId_ = b; return b; } else { @@ -314,11 +357,14 @@ public java.lang.String getInstanceId() { public static final int DATABASE_FIELD_NUMBER = 2; private volatile java.lang.Object database_; /** + * + * *
    * Database name.
    * 
* * string database = 2; + * * @return The database. */ @java.lang.Override @@ -327,29 +373,29 @@ public java.lang.String getDatabase() { 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(); database_ = s; return s; } } /** + * + * *
    * Database name.
    * 
* * string database = 2; + * * @return The bytes for database. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatabaseBytes() { + public com.google.protobuf.ByteString getDatabaseBytes() { java.lang.Object ref = database_; 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); database_ = b; return b; } else { @@ -360,38 +406,54 @@ public java.lang.String getDatabase() { public static final int TYPE_FIELD_NUMBER = 3; private int type_; /** + * + * *
    * Type of the Cloud SQL database.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType type = 3; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * Type of the Cloud SQL database.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType type = 3; + * * @return The type. */ - @java.lang.Override public com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType getType() { + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType getType() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType result = com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.valueOf(type_); - return result == null ? com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.UNRECOGNIZED : result; + com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType result = + com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.valueOf(type_); + return result == null + ? com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.UNRECOGNIZED + : result; } public static final int CREDENTIAL_FIELD_NUMBER = 4; private com.google.cloud.bigquery.connection.v1.CloudSqlCredential credential_; /** + * + * *
    * Input only. Cloud SQL credential.
    * 
* - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return Whether the credential field is set. */ @java.lang.Override @@ -399,30 +461,43 @@ public boolean hasCredential() { return credential_ != null; } /** + * + * *
    * Input only. Cloud SQL credential.
    * 
* - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The credential. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.CloudSqlCredential getCredential() { - return credential_ == null ? com.google.cloud.bigquery.connection.v1.CloudSqlCredential.getDefaultInstance() : credential_; + return credential_ == null + ? com.google.cloud.bigquery.connection.v1.CloudSqlCredential.getDefaultInstance() + : credential_; } /** + * + * *
    * Input only. Cloud SQL credential.
    * 
* - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder getCredentialOrBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder + getCredentialOrBuilder() { return getCredential(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -434,15 +509,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, database_); } - if (type_ != com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.DATABASE_TYPE_UNSPECIFIED.getNumber()) { + if (type_ + != com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType + .DATABASE_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, type_); } if (credential_ != null) { @@ -463,13 +540,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, database_); } - if (type_ != com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.DATABASE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, type_); + if (type_ + != com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType + .DATABASE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_); } if (credential_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCredential()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCredential()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -479,22 +557,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.connection.v1.CloudSqlProperties)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.CloudSqlProperties other = (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) obj; + com.google.cloud.bigquery.connection.v1.CloudSqlProperties other = + (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) obj; - if (!getInstanceId() - .equals(other.getInstanceId())) return false; - if (!getDatabase() - .equals(other.getDatabase())) return false; + if (!getInstanceId().equals(other.getInstanceId())) return false; + if (!getDatabase().equals(other.getDatabase())) return false; if (type_ != other.type_) return false; if (hasCredential() != other.hasCredential()) return false; if (hasCredential()) { - if (!getCredential() - .equals(other.getCredential())) return false; + if (!getCredential().equals(other.getCredential())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -523,117 +599,127 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.CloudSqlProperties 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.bigquery.connection.v1.CloudSqlProperties 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.bigquery.connection.v1.CloudSqlProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.CloudSqlProperties 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.bigquery.connection.v1.CloudSqlProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.CloudSqlProperties 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.bigquery.connection.v1.CloudSqlProperties parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1.CloudSqlProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1.CloudSqlProperties 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.bigquery.connection.v1.CloudSqlProperties parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1.CloudSqlProperties parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1.CloudSqlProperties 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.bigquery.connection.v1.CloudSqlProperties 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.bigquery.connection.v1.CloudSqlProperties 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.bigquery.connection.v1.CloudSqlProperties prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.connection.v1.CloudSqlProperties 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; } /** + * + * *
    * Connection properties specific to the Cloud SQL.
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.CloudSqlProperties} */ - 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.bigquery.connection.v1.CloudSqlProperties) com.google.cloud.bigquery.connection.v1.CloudSqlPropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.CloudSqlProperties.class, com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder.class); + com.google.cloud.bigquery.connection.v1.CloudSqlProperties.class, + com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder.class); } // Construct using com.google.cloud.bigquery.connection.v1.CloudSqlProperties.newBuilder() @@ -641,16 +727,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(); @@ -670,9 +755,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor; } @java.lang.Override @@ -691,7 +776,8 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlProperties build() { @java.lang.Override public com.google.cloud.bigquery.connection.v1.CloudSqlProperties buildPartial() { - com.google.cloud.bigquery.connection.v1.CloudSqlProperties result = new com.google.cloud.bigquery.connection.v1.CloudSqlProperties(this); + com.google.cloud.bigquery.connection.v1.CloudSqlProperties result = + new com.google.cloud.bigquery.connection.v1.CloudSqlProperties(this); result.instanceId_ = instanceId_; result.database_ = database_; result.type_ = type_; @@ -708,38 +794,39 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlProperties 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.bigquery.connection.v1.CloudSqlProperties) { - return mergeFrom((com.google.cloud.bigquery.connection.v1.CloudSqlProperties)other); + return mergeFrom((com.google.cloud.bigquery.connection.v1.CloudSqlProperties) other); } else { super.mergeFrom(other); return this; @@ -747,7 +834,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.CloudSqlProperties other) { - if (other == com.google.cloud.bigquery.connection.v1.CloudSqlProperties.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.connection.v1.CloudSqlProperties.getDefaultInstance()) + return this; if (!other.getInstanceId().isEmpty()) { instanceId_ = other.instanceId_; onChanged(); @@ -781,7 +869,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -793,18 +882,20 @@ public Builder mergeFrom( private java.lang.Object instanceId_ = ""; /** + * + * *
      * Cloud SQL instance ID in the form `project:location:instance`.
      * 
* * string instance_id = 1; + * * @return The instanceId. */ public java.lang.String getInstanceId() { java.lang.Object ref = instanceId_; 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(); instanceId_ = s; return s; @@ -813,20 +904,21 @@ public java.lang.String getInstanceId() { } } /** + * + * *
      * Cloud SQL instance ID in the form `project:location:instance`.
      * 
* * string instance_id = 1; + * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString - getInstanceIdBytes() { + public com.google.protobuf.ByteString getInstanceIdBytes() { java.lang.Object ref = instanceId_; 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); instanceId_ = b; return b; } else { @@ -834,54 +926,61 @@ public java.lang.String getInstanceId() { } } /** + * + * *
      * Cloud SQL instance ID in the form `project:location:instance`.
      * 
* * string instance_id = 1; + * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId( - java.lang.String value) { + public Builder setInstanceId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instanceId_ = value; onChanged(); return this; } /** + * + * *
      * Cloud SQL instance ID in the form `project:location:instance`.
      * 
* * string instance_id = 1; + * * @return This builder for chaining. */ public Builder clearInstanceId() { - + instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /** + * + * *
      * Cloud SQL instance ID in the form `project:location:instance`.
      * 
* * string instance_id = 1; + * * @param value The bytes for instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceIdBytes( - com.google.protobuf.ByteString value) { + public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceId_ = value; onChanged(); return this; @@ -889,18 +988,20 @@ public Builder setInstanceIdBytes( private java.lang.Object database_ = ""; /** + * + * *
      * Database name.
      * 
* * string database = 2; + * * @return The database. */ public java.lang.String getDatabase() { java.lang.Object ref = database_; 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(); database_ = s; return s; @@ -909,20 +1010,21 @@ public java.lang.String getDatabase() { } } /** + * + * *
      * Database name.
      * 
* * string database = 2; + * * @return The bytes for database. */ - public com.google.protobuf.ByteString - getDatabaseBytes() { + public com.google.protobuf.ByteString getDatabaseBytes() { java.lang.Object ref = database_; 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); database_ = b; return b; } else { @@ -930,54 +1032,61 @@ public java.lang.String getDatabase() { } } /** + * + * *
      * Database name.
      * 
* * string database = 2; + * * @param value The database to set. * @return This builder for chaining. */ - public Builder setDatabase( - java.lang.String value) { + public Builder setDatabase(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + database_ = value; onChanged(); return this; } /** + * + * *
      * Database name.
      * 
* * string database = 2; + * * @return This builder for chaining. */ public Builder clearDatabase() { - + database_ = getDefaultInstance().getDatabase(); onChanged(); return this; } /** + * + * *
      * Database name.
      * 
* * string database = 2; + * * @param value The bytes for database to set. * @return This builder for chaining. */ - public Builder setDatabaseBytes( - com.google.protobuf.ByteString value) { + public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + database_ = value; onChanged(); return this; @@ -985,73 +1094,93 @@ public Builder setDatabaseBytes( private int type_ = 0; /** + * + * *
      * Type of the Cloud SQL database.
      * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType type = 3; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Type of the Cloud SQL database.
      * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType type = 3; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
      * Type of the Cloud SQL database.
      * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType type = 3; + * * @return The type. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType getType() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType result = com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.valueOf(type_); - return result == null ? com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.UNRECOGNIZED : result; + com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType result = + com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.valueOf(type_); + return result == null + ? com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.UNRECOGNIZED + : result; } /** + * + * *
      * Type of the Cloud SQL database.
      * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType type = 3; + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType value) { + public Builder setType( + com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Type of the Cloud SQL database.
      * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType type = 3; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; @@ -1059,39 +1188,58 @@ public Builder clearType() { private com.google.cloud.bigquery.connection.v1.CloudSqlCredential credential_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudSqlCredential, com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder, com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder> credentialBuilder_; + com.google.cloud.bigquery.connection.v1.CloudSqlCredential, + com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder, + com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder> + credentialBuilder_; /** + * + * *
      * Input only. Cloud SQL credential.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return Whether the credential field is set. */ public boolean hasCredential() { return credentialBuilder_ != null || credential_ != null; } /** + * + * *
      * Input only. Cloud SQL credential.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The credential. */ public com.google.cloud.bigquery.connection.v1.CloudSqlCredential getCredential() { if (credentialBuilder_ == null) { - return credential_ == null ? com.google.cloud.bigquery.connection.v1.CloudSqlCredential.getDefaultInstance() : credential_; + return credential_ == null + ? com.google.cloud.bigquery.connection.v1.CloudSqlCredential.getDefaultInstance() + : credential_; } else { return credentialBuilder_.getMessage(); } } /** + * + * *
      * Input only. Cloud SQL credential.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder setCredential(com.google.cloud.bigquery.connection.v1.CloudSqlCredential value) { if (credentialBuilder_ == null) { @@ -1107,11 +1255,15 @@ public Builder setCredential(com.google.cloud.bigquery.connection.v1.CloudSqlCre return this; } /** + * + * *
      * Input only. Cloud SQL credential.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder setCredential( com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder builderForValue) { @@ -1125,17 +1277,24 @@ public Builder setCredential( return this; } /** + * + * *
      * Input only. Cloud SQL credential.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public Builder mergeCredential(com.google.cloud.bigquery.connection.v1.CloudSqlCredential value) { + public Builder mergeCredential( + com.google.cloud.bigquery.connection.v1.CloudSqlCredential value) { if (credentialBuilder_ == null) { if (credential_ != null) { credential_ = - com.google.cloud.bigquery.connection.v1.CloudSqlCredential.newBuilder(credential_).mergeFrom(value).buildPartial(); + com.google.cloud.bigquery.connection.v1.CloudSqlCredential.newBuilder(credential_) + .mergeFrom(value) + .buildPartial(); } else { credential_ = value; } @@ -1147,11 +1306,15 @@ public Builder mergeCredential(com.google.cloud.bigquery.connection.v1.CloudSqlC return this; } /** + * + * *
      * Input only. Cloud SQL credential.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder clearCredential() { if (credentialBuilder_ == null) { @@ -1165,55 +1328,73 @@ public Builder clearCredential() { return this; } /** + * + * *
      * Input only. Cloud SQL credential.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder getCredentialBuilder() { - + public com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder + getCredentialBuilder() { + onChanged(); return getCredentialFieldBuilder().getBuilder(); } /** + * + * *
      * Input only. Cloud SQL credential.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder getCredentialOrBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder + getCredentialOrBuilder() { if (credentialBuilder_ != null) { return credentialBuilder_.getMessageOrBuilder(); } else { - return credential_ == null ? - com.google.cloud.bigquery.connection.v1.CloudSqlCredential.getDefaultInstance() : credential_; + return credential_ == null + ? com.google.cloud.bigquery.connection.v1.CloudSqlCredential.getDefaultInstance() + : credential_; } } /** + * + * *
      * Input only. Cloud SQL credential.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudSqlCredential, com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder, com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder> + com.google.cloud.bigquery.connection.v1.CloudSqlCredential, + com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder, + com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder> getCredentialFieldBuilder() { if (credentialBuilder_ == null) { - credentialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudSqlCredential, com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder, com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder>( - getCredential(), - getParentForChildren(), - isClean()); + credentialBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.CloudSqlCredential, + com.google.cloud.bigquery.connection.v1.CloudSqlCredential.Builder, + com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder>( + getCredential(), getParentForChildren(), isClean()); credential_ = null; } return credentialBuilder_; } + @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); } @@ -1223,12 +1404,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.CloudSqlProperties) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.CloudSqlProperties) private static final com.google.cloud.bigquery.connection.v1.CloudSqlProperties DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.CloudSqlProperties(); } @@ -1237,16 +1418,16 @@ public static com.google.cloud.bigquery.connection.v1.CloudSqlProperties getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudSqlProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudSqlProperties(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudSqlProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CloudSqlProperties(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1261,6 +1442,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.connection.v1.CloudSqlProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java rename to proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java index e7365035..8c82ed6a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java @@ -1,95 +1,141 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; -public interface CloudSqlPropertiesOrBuilder extends +public interface CloudSqlPropertiesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.CloudSqlProperties) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Cloud SQL instance ID in the form `project:location:instance`.
    * 
* * string instance_id = 1; + * * @return The instanceId. */ java.lang.String getInstanceId(); /** + * + * *
    * Cloud SQL instance ID in the form `project:location:instance`.
    * 
* * string instance_id = 1; + * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString - getInstanceIdBytes(); + com.google.protobuf.ByteString getInstanceIdBytes(); /** + * + * *
    * Database name.
    * 
* * string database = 2; + * * @return The database. */ java.lang.String getDatabase(); /** + * + * *
    * Database name.
    * 
* * string database = 2; + * * @return The bytes for database. */ - com.google.protobuf.ByteString - getDatabaseBytes(); + com.google.protobuf.ByteString getDatabaseBytes(); /** + * + * *
    * Type of the Cloud SQL database.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType type = 3; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * Type of the Cloud SQL database.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType type = 3; + * * @return The type. */ com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType getType(); /** + * + * *
    * Input only. Cloud SQL credential.
    * 
* - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return Whether the credential field is set. */ boolean hasCredential(); /** + * + * *
    * Input only. Cloud SQL credential.
    * 
* - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The credential. */ com.google.cloud.bigquery.connection.v1.CloudSqlCredential getCredential(); /** + * + * *
    * Input only. Cloud SQL credential.
    * 
* - * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder getCredentialOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java rename to proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java index b6fdbd78..98644480 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** + * + * *
  * Configuration parameters to establish connection with an external data
  * source, except the credential attributes.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.bigquery.connection.v1.Connection}
  */
-public final class Connection extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Connection extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.Connection)
     ConnectionOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Connection.newBuilder() to construct.
   private Connection(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Connection() {
     name_ = "";
     friendlyName_ = "";
@@ -28,16 +46,15 @@ private Connection() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Connection();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Connection(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,102 +73,131 @@ private Connection(
           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();
 
-            friendlyName_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              friendlyName_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            description_ = s;
-            break;
-          }
-          case 34: {
-            com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder subBuilder = null;
-            if (propertiesCase_ == 4) {
-              subBuilder = ((com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_).toBuilder();
+              description_ = s;
+              break;
             }
-            properties_ =
-                input.readMessage(com.google.cloud.bigquery.connection.v1.CloudSqlProperties.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_);
-              properties_ = subBuilder.buildPartial();
+          case 34:
+            {
+              com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder subBuilder = null;
+              if (propertiesCase_ == 4) {
+                subBuilder =
+                    ((com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_)
+                        .toBuilder();
+              }
+              properties_ =
+                  input.readMessage(
+                      com.google.cloud.bigquery.connection.v1.CloudSqlProperties.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_);
+                properties_ = subBuilder.buildPartial();
+              }
+              propertiesCase_ = 4;
+              break;
             }
-            propertiesCase_ = 4;
-            break;
-          }
-          case 40: {
-
-            creationTime_ = input.readInt64();
-            break;
-          }
-          case 48: {
-
-            lastModifiedTime_ = input.readInt64();
-            break;
-          }
-          case 56: {
-
-            hasCredential_ = input.readBool();
-            break;
-          }
-          case 66: {
-            com.google.cloud.bigquery.connection.v1.AwsProperties.Builder subBuilder = null;
-            if (propertiesCase_ == 8) {
-              subBuilder = ((com.google.cloud.bigquery.connection.v1.AwsProperties) properties_).toBuilder();
+          case 40:
+            {
+              creationTime_ = input.readInt64();
+              break;
             }
-            properties_ =
-                input.readMessage(com.google.cloud.bigquery.connection.v1.AwsProperties.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.bigquery.connection.v1.AwsProperties) properties_);
-              properties_ = subBuilder.buildPartial();
+          case 48:
+            {
+              lastModifiedTime_ = input.readInt64();
+              break;
             }
-            propertiesCase_ = 8;
-            break;
-          }
-          case 170: {
-            com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder subBuilder = null;
-            if (propertiesCase_ == 21) {
-              subBuilder = ((com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_).toBuilder();
+          case 56:
+            {
+              hasCredential_ = input.readBool();
+              break;
             }
-            properties_ =
-                input.readMessage(com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_);
-              properties_ = subBuilder.buildPartial();
+          case 66:
+            {
+              com.google.cloud.bigquery.connection.v1.AwsProperties.Builder subBuilder = null;
+              if (propertiesCase_ == 8) {
+                subBuilder =
+                    ((com.google.cloud.bigquery.connection.v1.AwsProperties) properties_)
+                        .toBuilder();
+              }
+              properties_ =
+                  input.readMessage(
+                      com.google.cloud.bigquery.connection.v1.AwsProperties.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.bigquery.connection.v1.AwsProperties) properties_);
+                properties_ = subBuilder.buildPartial();
+              }
+              propertiesCase_ = 8;
+              break;
             }
-            propertiesCase_ = 21;
-            break;
-          }
-          case 178: {
-            com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder subBuilder = null;
-            if (propertiesCase_ == 22) {
-              subBuilder = ((com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_).toBuilder();
+          case 170:
+            {
+              com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder subBuilder =
+                  null;
+              if (propertiesCase_ == 21) {
+                subBuilder =
+                    ((com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_)
+                        .toBuilder();
+              }
+              properties_ =
+                  input.readMessage(
+                      com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_);
+                properties_ = subBuilder.buildPartial();
+              }
+              propertiesCase_ = 21;
+              break;
             }
-            properties_ =
-                input.readMessage(com.google.cloud.bigquery.connection.v1.CloudResourceProperties.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_);
-              properties_ = subBuilder.buildPartial();
+          case 178:
+            {
+              com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder subBuilder =
+                  null;
+              if (propertiesCase_ == 22) {
+                subBuilder =
+                    ((com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_)
+                        .toBuilder();
+              }
+              properties_ =
+                  input.readMessage(
+                      com.google.cloud.bigquery.connection.v1.CloudResourceProperties.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_);
+                properties_ = subBuilder.buildPartial();
+              }
+              propertiesCase_ = 22;
+              break;
             }
-            propertiesCase_ = 22;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -159,30 +205,34 @@ private Connection(
     } 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.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
+        .internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_Connection_fieldAccessorTable
+    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
+        .internal_static_google_cloud_bigquery_connection_v1_Connection_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.connection.v1.Connection.class, com.google.cloud.bigquery.connection.v1.Connection.Builder.class);
+            com.google.cloud.bigquery.connection.v1.Connection.class,
+            com.google.cloud.bigquery.connection.v1.Connection.Builder.class);
   }
 
   private int propertiesCase_ = 0;
   private java.lang.Object properties_;
+
   public enum PropertiesCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     CLOUD_SQL(4),
     AWS(8),
@@ -190,6 +240,7 @@ public enum PropertiesCase
     CLOUD_RESOURCE(22),
     PROPERTIES_NOT_SET(0);
     private final int value;
+
     private PropertiesCase(int value) {
       this.value = value;
     }
@@ -205,34 +256,42 @@ public static PropertiesCase valueOf(int value) {
 
     public static PropertiesCase forNumber(int value) {
       switch (value) {
-        case 4: return CLOUD_SQL;
-        case 8: return AWS;
-        case 21: return CLOUD_SPANNER;
-        case 22: return CLOUD_RESOURCE;
-        case 0: return PROPERTIES_NOT_SET;
-        default: return null;
+        case 4:
+          return CLOUD_SQL;
+        case 8:
+          return AWS;
+        case 21:
+          return CLOUD_SPANNER;
+        case 22:
+          return CLOUD_RESOURCE;
+        case 0:
+          return PROPERTIES_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public PropertiesCase
-  getPropertiesCase() {
-    return PropertiesCase.forNumber(
-        propertiesCase_);
+  public PropertiesCase getPropertiesCase() {
+    return PropertiesCase.forNumber(propertiesCase_);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * The resource name of the connection in the form of:
    * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -241,30 +300,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the connection in the form of:
    * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
    * 
* * 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 { @@ -275,11 +334,14 @@ public java.lang.String getName() { public static final int FRIENDLY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object friendlyName_; /** + * + * *
    * User provided display name for the connection.
    * 
* * string friendly_name = 2; + * * @return The friendlyName. */ @java.lang.Override @@ -288,29 +350,29 @@ public java.lang.String getFriendlyName() { 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(); friendlyName_ = s; return s; } } /** + * + * *
    * User provided display name for the connection.
    * 
* * string friendly_name = 2; + * * @return The bytes for friendlyName. */ @java.lang.Override - public com.google.protobuf.ByteString - getFriendlyNameBytes() { + public com.google.protobuf.ByteString getFriendlyNameBytes() { java.lang.Object ref = friendlyName_; 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); friendlyName_ = b; return b; } else { @@ -321,11 +383,14 @@ public java.lang.String getFriendlyName() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * User provided description.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -334,29 +399,29 @@ public java.lang.String getDescription() { 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(); description_ = s; return s; } } /** + * + * *
    * User provided description.
    * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; 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); description_ = b; return b; } else { @@ -366,11 +431,14 @@ public java.lang.String getDescription() { public static final int CLOUD_SQL_FIELD_NUMBER = 4; /** + * + * *
    * Cloud SQL properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties cloud_sql = 4; + * * @return Whether the cloudSql field is set. */ @java.lang.Override @@ -378,21 +446,26 @@ public boolean hasCloudSql() { return propertiesCase_ == 4; } /** + * + * *
    * Cloud SQL properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties cloud_sql = 4; + * * @return The cloudSql. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.CloudSqlProperties getCloudSql() { if (propertiesCase_ == 4) { - return (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_; } return com.google.cloud.bigquery.connection.v1.CloudSqlProperties.getDefaultInstance(); } /** + * + * *
    * Cloud SQL properties.
    * 
@@ -400,20 +473,24 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlProperties getCloudSql() * .google.cloud.bigquery.connection.v1.CloudSqlProperties cloud_sql = 4; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudSqlPropertiesOrBuilder getCloudSqlOrBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudSqlPropertiesOrBuilder + getCloudSqlOrBuilder() { if (propertiesCase_ == 4) { - return (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_; } return com.google.cloud.bigquery.connection.v1.CloudSqlProperties.getDefaultInstance(); } public static final int AWS_FIELD_NUMBER = 8; /** + * + * *
    * Amazon Web Services (AWS) properties.
    * 
* * .google.cloud.bigquery.connection.v1.AwsProperties aws = 8; + * * @return Whether the aws field is set. */ @java.lang.Override @@ -421,21 +498,26 @@ public boolean hasAws() { return propertiesCase_ == 8; } /** + * + * *
    * Amazon Web Services (AWS) properties.
    * 
* * .google.cloud.bigquery.connection.v1.AwsProperties aws = 8; + * * @return The aws. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.AwsProperties getAws() { if (propertiesCase_ == 8) { - return (com.google.cloud.bigquery.connection.v1.AwsProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.AwsProperties) properties_; } return com.google.cloud.bigquery.connection.v1.AwsProperties.getDefaultInstance(); } /** + * + * *
    * Amazon Web Services (AWS) properties.
    * 
@@ -445,18 +527,21 @@ public com.google.cloud.bigquery.connection.v1.AwsProperties getAws() { @java.lang.Override public com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder getAwsOrBuilder() { if (propertiesCase_ == 8) { - return (com.google.cloud.bigquery.connection.v1.AwsProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.AwsProperties) properties_; } return com.google.cloud.bigquery.connection.v1.AwsProperties.getDefaultInstance(); } public static final int CLOUD_SPANNER_FIELD_NUMBER = 21; /** + * + * *
    * Cloud Spanner properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; + * * @return Whether the cloudSpanner field is set. */ @java.lang.Override @@ -464,21 +549,26 @@ public boolean hasCloudSpanner() { return propertiesCase_ == 21; } /** + * + * *
    * Cloud Spanner properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; + * * @return The cloudSpanner. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties getCloudSpanner() { if (propertiesCase_ == 21) { - return (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_; } return com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.getDefaultInstance(); } /** + * + * *
    * Cloud Spanner properties.
    * 
@@ -486,20 +576,24 @@ public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties getCloudSp * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder getCloudSpannerOrBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder + getCloudSpannerOrBuilder() { if (propertiesCase_ == 21) { - return (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_; } return com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.getDefaultInstance(); } public static final int CLOUD_RESOURCE_FIELD_NUMBER = 22; /** + * + * *
    * Cloud Resource properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * * @return Whether the cloudResource field is set. */ @java.lang.Override @@ -507,21 +601,26 @@ public boolean hasCloudResource() { return propertiesCase_ == 22; } /** + * + * *
    * Cloud Resource properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * * @return The cloudResource. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.CloudResourceProperties getCloudResource() { if (propertiesCase_ == 22) { - return (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_; } return com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance(); } /** + * + * *
    * Cloud Resource properties.
    * 
@@ -529,9 +628,10 @@ public com.google.cloud.bigquery.connection.v1.CloudResourceProperties getCloudR * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder getCloudResourceOrBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder + getCloudResourceOrBuilder() { if (propertiesCase_ == 22) { - return (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_; } return com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance(); } @@ -539,11 +639,14 @@ public com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder public static final int CREATION_TIME_FIELD_NUMBER = 5; private long creationTime_; /** + * + * *
    * Output only. The creation timestamp of the connection.
    * 
* * int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The creationTime. */ @java.lang.Override @@ -554,11 +657,14 @@ public long getCreationTime() { public static final int LAST_MODIFIED_TIME_FIELD_NUMBER = 6; private long lastModifiedTime_; /** + * + * *
    * Output only. The last update timestamp of the connection.
    * 
* * int64 last_modified_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The lastModifiedTime. */ @java.lang.Override @@ -569,11 +675,14 @@ public long getLastModifiedTime() { public static final int HAS_CREDENTIAL_FIELD_NUMBER = 7; private boolean hasCredential_; /** + * + * *
    * Output only. True, if credential is configured for this connection.
    * 
* * bool has_credential = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The hasCredential. */ @java.lang.Override @@ -582,6 +691,7 @@ public boolean getHasCredential() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -593,8 +703,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_); } @@ -605,7 +714,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } if (propertiesCase_ == 4) { - output.writeMessage(4, (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_); + output.writeMessage( + 4, (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_); } if (creationTime_ != 0L) { output.writeInt64(5, creationTime_); @@ -620,10 +730,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(8, (com.google.cloud.bigquery.connection.v1.AwsProperties) properties_); } if (propertiesCase_ == 21) { - output.writeMessage(21, (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_); + output.writeMessage( + 21, (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_); } if (propertiesCase_ == 22) { - output.writeMessage(22, (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_); + output.writeMessage( + 22, (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_); } unknownFields.writeTo(output); } @@ -644,32 +756,33 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (propertiesCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_); } if (creationTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, creationTime_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, creationTime_); } if (lastModifiedTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, lastModifiedTime_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, lastModifiedTime_); } if (hasCredential_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, hasCredential_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, hasCredential_); } if (propertiesCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.cloud.bigquery.connection.v1.AwsProperties) properties_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.bigquery.connection.v1.AwsProperties) properties_); } if (propertiesCase_ == 21) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 21, (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_); } if (propertiesCase_ == 22) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 22, (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -679,42 +792,33 @@ 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.bigquery.connection.v1.Connection)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.Connection other = (com.google.cloud.bigquery.connection.v1.Connection) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getFriendlyName() - .equals(other.getFriendlyName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (getCreationTime() - != other.getCreationTime()) return false; - if (getLastModifiedTime() - != other.getLastModifiedTime()) return false; - if (getHasCredential() - != other.getHasCredential()) return false; + com.google.cloud.bigquery.connection.v1.Connection other = + (com.google.cloud.bigquery.connection.v1.Connection) obj; + + if (!getName().equals(other.getName())) return false; + if (!getFriendlyName().equals(other.getFriendlyName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (getCreationTime() != other.getCreationTime()) return false; + if (getLastModifiedTime() != other.getLastModifiedTime()) return false; + if (getHasCredential() != other.getHasCredential()) return false; if (!getPropertiesCase().equals(other.getPropertiesCase())) return false; switch (propertiesCase_) { case 4: - if (!getCloudSql() - .equals(other.getCloudSql())) return false; + if (!getCloudSql().equals(other.getCloudSql())) return false; break; case 8: - if (!getAws() - .equals(other.getAws())) return false; + if (!getAws().equals(other.getAws())) return false; break; case 21: - if (!getCloudSpanner() - .equals(other.getCloudSpanner())) return false; + if (!getCloudSpanner().equals(other.getCloudSpanner())) return false; break; case 22: - if (!getCloudResource() - .equals(other.getCloudResource())) return false; + if (!getCloudResource().equals(other.getCloudResource())) return false; break; case 0: default: @@ -737,14 +841,11 @@ public int hashCode() { hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + CREATION_TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCreationTime()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCreationTime()); hash = (37 * hash) + LAST_MODIFIED_TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLastModifiedTime()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLastModifiedTime()); hash = (37 * hash) + HAS_CREDENTIAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getHasCredential()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasCredential()); switch (propertiesCase_) { case 4: hash = (37 * hash) + CLOUD_SQL_FIELD_NUMBER; @@ -771,96 +872,103 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.Connection 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.bigquery.connection.v1.Connection 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.bigquery.connection.v1.Connection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.Connection 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.bigquery.connection.v1.Connection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.Connection 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.bigquery.connection.v1.Connection parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1.Connection parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1.Connection 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.bigquery.connection.v1.Connection parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1.Connection parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1.Connection 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.bigquery.connection.v1.Connection 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.bigquery.connection.v1.Connection 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.bigquery.connection.v1.Connection prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Configuration parameters to establish connection with an external data
    * source, except the credential attributes.
@@ -868,21 +976,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.connection.v1.Connection}
    */
-  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.bigquery.connection.v1.Connection)
       com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
+          .internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_Connection_fieldAccessorTable
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
+          .internal_static_google_cloud_bigquery_connection_v1_Connection_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.connection.v1.Connection.class, com.google.cloud.bigquery.connection.v1.Connection.Builder.class);
+              com.google.cloud.bigquery.connection.v1.Connection.class,
+              com.google.cloud.bigquery.connection.v1.Connection.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.connection.v1.Connection.newBuilder()
@@ -890,16 +1000,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();
@@ -921,9 +1030,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
+          .internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor;
     }
 
     @java.lang.Override
@@ -942,7 +1051,8 @@ public com.google.cloud.bigquery.connection.v1.Connection build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.connection.v1.Connection buildPartial() {
-      com.google.cloud.bigquery.connection.v1.Connection result = new com.google.cloud.bigquery.connection.v1.Connection(this);
+      com.google.cloud.bigquery.connection.v1.Connection result =
+          new com.google.cloud.bigquery.connection.v1.Connection(this);
       result.name_ = name_;
       result.friendlyName_ = friendlyName_;
       result.description_ = description_;
@@ -986,38 +1096,39 @@ public com.google.cloud.bigquery.connection.v1.Connection 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.bigquery.connection.v1.Connection) {
-        return mergeFrom((com.google.cloud.bigquery.connection.v1.Connection)other);
+        return mergeFrom((com.google.cloud.bigquery.connection.v1.Connection) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1025,7 +1136,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.Connection other) {
-      if (other == com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance()) return this;
+      if (other == com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1048,25 +1160,30 @@ public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.Connection othe
         setHasCredential(other.getHasCredential());
       }
       switch (other.getPropertiesCase()) {
-        case CLOUD_SQL: {
-          mergeCloudSql(other.getCloudSql());
-          break;
-        }
-        case AWS: {
-          mergeAws(other.getAws());
-          break;
-        }
-        case CLOUD_SPANNER: {
-          mergeCloudSpanner(other.getCloudSpanner());
-          break;
-        }
-        case CLOUD_RESOURCE: {
-          mergeCloudResource(other.getCloudResource());
-          break;
-        }
-        case PROPERTIES_NOT_SET: {
-          break;
-        }
+        case CLOUD_SQL:
+          {
+            mergeCloudSql(other.getCloudSql());
+            break;
+          }
+        case AWS:
+          {
+            mergeAws(other.getAws());
+            break;
+          }
+        case CLOUD_SPANNER:
+          {
+            mergeCloudSpanner(other.getCloudSpanner());
+            break;
+          }
+        case CLOUD_RESOURCE:
+          {
+            mergeCloudResource(other.getCloudResource());
+            break;
+          }
+        case PROPERTIES_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1087,7 +1204,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.bigquery.connection.v1.Connection) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.bigquery.connection.v1.Connection) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1096,12 +1214,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int propertiesCase_ = 0;
     private java.lang.Object properties_;
-    public PropertiesCase
-        getPropertiesCase() {
-      return PropertiesCase.forNumber(
-          propertiesCase_);
+
+    public PropertiesCase getPropertiesCase() {
+      return PropertiesCase.forNumber(propertiesCase_);
     }
 
     public Builder clearProperties() {
@@ -1111,22 +1229,23 @@ public Builder clearProperties() {
       return this;
     }
 
-
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the connection in the form of:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* * 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; @@ -1135,21 +1254,22 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the connection in the form of:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* * 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 { @@ -1157,57 +1277,64 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the connection in the form of:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* * 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 of the connection in the form of:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the connection in the form of:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* * 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; @@ -1215,18 +1342,20 @@ public Builder setNameBytes( private java.lang.Object friendlyName_ = ""; /** + * + * *
      * User provided display name for the connection.
      * 
* * string friendly_name = 2; + * * @return The friendlyName. */ public java.lang.String getFriendlyName() { java.lang.Object ref = friendlyName_; 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(); friendlyName_ = s; return s; @@ -1235,20 +1364,21 @@ public java.lang.String getFriendlyName() { } } /** + * + * *
      * User provided display name for the connection.
      * 
* * string friendly_name = 2; + * * @return The bytes for friendlyName. */ - public com.google.protobuf.ByteString - getFriendlyNameBytes() { + public com.google.protobuf.ByteString getFriendlyNameBytes() { java.lang.Object ref = friendlyName_; 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); friendlyName_ = b; return b; } else { @@ -1256,54 +1386,61 @@ public java.lang.String getFriendlyName() { } } /** + * + * *
      * User provided display name for the connection.
      * 
* * string friendly_name = 2; + * * @param value The friendlyName to set. * @return This builder for chaining. */ - public Builder setFriendlyName( - java.lang.String value) { + public Builder setFriendlyName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + friendlyName_ = value; onChanged(); return this; } /** + * + * *
      * User provided display name for the connection.
      * 
* * string friendly_name = 2; + * * @return This builder for chaining. */ public Builder clearFriendlyName() { - + friendlyName_ = getDefaultInstance().getFriendlyName(); onChanged(); return this; } /** + * + * *
      * User provided display name for the connection.
      * 
* * string friendly_name = 2; + * * @param value The bytes for friendlyName to set. * @return This builder for chaining. */ - public Builder setFriendlyNameBytes( - com.google.protobuf.ByteString value) { + public Builder setFriendlyNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + friendlyName_ = value; onChanged(); return this; @@ -1311,18 +1448,20 @@ public Builder setFriendlyNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * User provided description.
      * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; @@ -1331,20 +1470,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * User provided description.
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; 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); description_ = b; return b; } else { @@ -1352,67 +1492,80 @@ public java.lang.String getDescription() { } } /** + * + * *
      * User provided description.
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * User provided description.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * User provided description.
      * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudSqlProperties, com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder, com.google.cloud.bigquery.connection.v1.CloudSqlPropertiesOrBuilder> cloudSqlBuilder_; + com.google.cloud.bigquery.connection.v1.CloudSqlProperties, + com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder, + com.google.cloud.bigquery.connection.v1.CloudSqlPropertiesOrBuilder> + cloudSqlBuilder_; /** + * + * *
      * Cloud SQL properties.
      * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties cloud_sql = 4; + * * @return Whether the cloudSql field is set. */ @java.lang.Override @@ -1420,11 +1573,14 @@ public boolean hasCloudSql() { return propertiesCase_ == 4; } /** + * + * *
      * Cloud SQL properties.
      * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties cloud_sql = 4; + * * @return The cloudSql. */ @java.lang.Override @@ -1442,6 +1598,8 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlProperties getCloudSql() } } /** + * + * *
      * Cloud SQL properties.
      * 
@@ -1462,6 +1620,8 @@ public Builder setCloudSql(com.google.cloud.bigquery.connection.v1.CloudSqlPrope return this; } /** + * + * *
      * Cloud SQL properties.
      * 
@@ -1480,6 +1640,8 @@ public Builder setCloudSql( return this; } /** + * + * *
      * Cloud SQL properties.
      * 
@@ -1488,10 +1650,15 @@ public Builder setCloudSql( */ public Builder mergeCloudSql(com.google.cloud.bigquery.connection.v1.CloudSqlProperties value) { if (cloudSqlBuilder_ == null) { - if (propertiesCase_ == 4 && - properties_ != com.google.cloud.bigquery.connection.v1.CloudSqlProperties.getDefaultInstance()) { - properties_ = com.google.cloud.bigquery.connection.v1.CloudSqlProperties.newBuilder((com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_) - .mergeFrom(value).buildPartial(); + if (propertiesCase_ == 4 + && properties_ + != com.google.cloud.bigquery.connection.v1.CloudSqlProperties + .getDefaultInstance()) { + properties_ = + com.google.cloud.bigquery.connection.v1.CloudSqlProperties.newBuilder( + (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_) + .mergeFrom(value) + .buildPartial(); } else { properties_ = value; } @@ -1507,6 +1674,8 @@ public Builder mergeCloudSql(com.google.cloud.bigquery.connection.v1.CloudSqlPro return this; } /** + * + * *
      * Cloud SQL properties.
      * 
@@ -1530,6 +1699,8 @@ public Builder clearCloudSql() { return this; } /** + * + * *
      * Cloud SQL properties.
      * 
@@ -1540,6 +1711,8 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder getClo return getCloudSqlFieldBuilder().getBuilder(); } /** + * + * *
      * Cloud SQL properties.
      * 
@@ -1547,7 +1720,8 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder getClo * .google.cloud.bigquery.connection.v1.CloudSqlProperties cloud_sql = 4; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudSqlPropertiesOrBuilder getCloudSqlOrBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudSqlPropertiesOrBuilder + getCloudSqlOrBuilder() { if ((propertiesCase_ == 4) && (cloudSqlBuilder_ != null)) { return cloudSqlBuilder_.getMessageOrBuilder(); } else { @@ -1558,6 +1732,8 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlPropertiesOrBuilder getCl } } /** + * + * *
      * Cloud SQL properties.
      * 
@@ -1565,32 +1741,45 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlPropertiesOrBuilder getCl * .google.cloud.bigquery.connection.v1.CloudSqlProperties cloud_sql = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudSqlProperties, com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder, com.google.cloud.bigquery.connection.v1.CloudSqlPropertiesOrBuilder> + com.google.cloud.bigquery.connection.v1.CloudSqlProperties, + com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder, + com.google.cloud.bigquery.connection.v1.CloudSqlPropertiesOrBuilder> getCloudSqlFieldBuilder() { if (cloudSqlBuilder_ == null) { if (!(propertiesCase_ == 4)) { - properties_ = com.google.cloud.bigquery.connection.v1.CloudSqlProperties.getDefaultInstance(); + properties_ = + com.google.cloud.bigquery.connection.v1.CloudSqlProperties.getDefaultInstance(); } - cloudSqlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudSqlProperties, com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder, com.google.cloud.bigquery.connection.v1.CloudSqlPropertiesOrBuilder>( + cloudSqlBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.CloudSqlProperties, + com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder, + com.google.cloud.bigquery.connection.v1.CloudSqlPropertiesOrBuilder>( (com.google.cloud.bigquery.connection.v1.CloudSqlProperties) properties_, getParentForChildren(), isClean()); properties_ = null; } propertiesCase_ = 4; - onChanged();; + onChanged(); + ; return cloudSqlBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.AwsProperties, com.google.cloud.bigquery.connection.v1.AwsProperties.Builder, com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder> awsBuilder_; + com.google.cloud.bigquery.connection.v1.AwsProperties, + com.google.cloud.bigquery.connection.v1.AwsProperties.Builder, + com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder> + awsBuilder_; /** + * + * *
      * Amazon Web Services (AWS) properties.
      * 
* * .google.cloud.bigquery.connection.v1.AwsProperties aws = 8; + * * @return Whether the aws field is set. */ @java.lang.Override @@ -1598,11 +1787,14 @@ public boolean hasAws() { return propertiesCase_ == 8; } /** + * + * *
      * Amazon Web Services (AWS) properties.
      * 
* * .google.cloud.bigquery.connection.v1.AwsProperties aws = 8; + * * @return The aws. */ @java.lang.Override @@ -1620,6 +1812,8 @@ public com.google.cloud.bigquery.connection.v1.AwsProperties getAws() { } } /** + * + * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1640,6 +1834,8 @@ public Builder setAws(com.google.cloud.bigquery.connection.v1.AwsProperties valu return this; } /** + * + * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1658,6 +1854,8 @@ public Builder setAws( return this; } /** + * + * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1666,10 +1864,14 @@ public Builder setAws( */ public Builder mergeAws(com.google.cloud.bigquery.connection.v1.AwsProperties value) { if (awsBuilder_ == null) { - if (propertiesCase_ == 8 && - properties_ != com.google.cloud.bigquery.connection.v1.AwsProperties.getDefaultInstance()) { - properties_ = com.google.cloud.bigquery.connection.v1.AwsProperties.newBuilder((com.google.cloud.bigquery.connection.v1.AwsProperties) properties_) - .mergeFrom(value).buildPartial(); + if (propertiesCase_ == 8 + && properties_ + != com.google.cloud.bigquery.connection.v1.AwsProperties.getDefaultInstance()) { + properties_ = + com.google.cloud.bigquery.connection.v1.AwsProperties.newBuilder( + (com.google.cloud.bigquery.connection.v1.AwsProperties) properties_) + .mergeFrom(value) + .buildPartial(); } else { properties_ = value; } @@ -1685,6 +1887,8 @@ public Builder mergeAws(com.google.cloud.bigquery.connection.v1.AwsProperties va return this; } /** + * + * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1708,6 +1912,8 @@ public Builder clearAws() { return this; } /** + * + * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1718,6 +1924,8 @@ public com.google.cloud.bigquery.connection.v1.AwsProperties.Builder getAwsBuild return getAwsFieldBuilder().getBuilder(); } /** + * + * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1736,6 +1944,8 @@ public com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder getAwsOrBu } } /** + * + * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1743,32 +1953,44 @@ public com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder getAwsOrBu * .google.cloud.bigquery.connection.v1.AwsProperties aws = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.AwsProperties, com.google.cloud.bigquery.connection.v1.AwsProperties.Builder, com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder> + com.google.cloud.bigquery.connection.v1.AwsProperties, + com.google.cloud.bigquery.connection.v1.AwsProperties.Builder, + com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder> getAwsFieldBuilder() { if (awsBuilder_ == null) { if (!(propertiesCase_ == 8)) { properties_ = com.google.cloud.bigquery.connection.v1.AwsProperties.getDefaultInstance(); } - awsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.AwsProperties, com.google.cloud.bigquery.connection.v1.AwsProperties.Builder, com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder>( + awsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.AwsProperties, + com.google.cloud.bigquery.connection.v1.AwsProperties.Builder, + com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder>( (com.google.cloud.bigquery.connection.v1.AwsProperties) properties_, getParentForChildren(), isClean()); properties_ = null; } propertiesCase_ = 8; - onChanged();; + onChanged(); + ; return awsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties, com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder, com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder> cloudSpannerBuilder_; + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties, + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder, + com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder> + cloudSpannerBuilder_; /** + * + * *
      * Cloud Spanner properties.
      * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; + * * @return Whether the cloudSpanner field is set. */ @java.lang.Override @@ -1776,11 +1998,14 @@ public boolean hasCloudSpanner() { return propertiesCase_ == 21; } /** + * + * *
      * Cloud Spanner properties.
      * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; + * * @return The cloudSpanner. */ @java.lang.Override @@ -1798,13 +2023,16 @@ public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties getCloudSp } } /** + * + * *
      * Cloud Spanner properties.
      * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; */ - public Builder setCloudSpanner(com.google.cloud.bigquery.connection.v1.CloudSpannerProperties value) { + public Builder setCloudSpanner( + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties value) { if (cloudSpannerBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1818,6 +2046,8 @@ public Builder setCloudSpanner(com.google.cloud.bigquery.connection.v1.CloudSpan return this; } /** + * + * *
      * Cloud Spanner properties.
      * 
@@ -1836,18 +2066,26 @@ public Builder setCloudSpanner( return this; } /** + * + * *
      * Cloud Spanner properties.
      * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; */ - public Builder mergeCloudSpanner(com.google.cloud.bigquery.connection.v1.CloudSpannerProperties value) { + public Builder mergeCloudSpanner( + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties value) { if (cloudSpannerBuilder_ == null) { - if (propertiesCase_ == 21 && - properties_ != com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.getDefaultInstance()) { - properties_ = com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.newBuilder((com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_) - .mergeFrom(value).buildPartial(); + if (propertiesCase_ == 21 + && properties_ + != com.google.cloud.bigquery.connection.v1.CloudSpannerProperties + .getDefaultInstance()) { + properties_ = + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.newBuilder( + (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_) + .mergeFrom(value) + .buildPartial(); } else { properties_ = value; } @@ -1863,6 +2101,8 @@ public Builder mergeCloudSpanner(com.google.cloud.bigquery.connection.v1.CloudSp return this; } /** + * + * *
      * Cloud Spanner properties.
      * 
@@ -1886,16 +2126,21 @@ public Builder clearCloudSpanner() { return this; } /** + * + * *
      * Cloud Spanner properties.
      * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; */ - public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder getCloudSpannerBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder + getCloudSpannerBuilder() { return getCloudSpannerFieldBuilder().getBuilder(); } /** + * + * *
      * Cloud Spanner properties.
      * 
@@ -1903,7 +2148,8 @@ public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder ge * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder getCloudSpannerOrBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder + getCloudSpannerOrBuilder() { if ((propertiesCase_ == 21) && (cloudSpannerBuilder_ != null)) { return cloudSpannerBuilder_.getMessageOrBuilder(); } else { @@ -1914,6 +2160,8 @@ public com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder g } } /** + * + * *
      * Cloud Spanner properties.
      * 
@@ -1921,32 +2169,46 @@ public com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder g * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties, com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder, com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder> + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties, + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder, + com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder> getCloudSpannerFieldBuilder() { if (cloudSpannerBuilder_ == null) { if (!(propertiesCase_ == 21)) { - properties_ = com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.getDefaultInstance(); + properties_ = + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.getDefaultInstance(); } - cloudSpannerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties, com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder, com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder>( + cloudSpannerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties, + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder, + com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder>( (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_, getParentForChildren(), isClean()); properties_ = null; } propertiesCase_ = 21; - onChanged();; + onChanged(); + ; return cloudSpannerBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudResourceProperties, com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder, com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder> cloudResourceBuilder_; + com.google.cloud.bigquery.connection.v1.CloudResourceProperties, + com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder, + com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder> + cloudResourceBuilder_; /** + * + * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * + * * @return Whether the cloudResource field is set. */ @java.lang.Override @@ -1954,11 +2216,15 @@ public boolean hasCloudResource() { return propertiesCase_ == 22; } /** + * + * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * + * * @return The cloudResource. */ @java.lang.Override @@ -1976,13 +2242,17 @@ public com.google.cloud.bigquery.connection.v1.CloudResourceProperties getCloudR } } /** + * + * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * */ - public Builder setCloudResource(com.google.cloud.bigquery.connection.v1.CloudResourceProperties value) { + public Builder setCloudResource( + com.google.cloud.bigquery.connection.v1.CloudResourceProperties value) { if (cloudResourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1996,11 +2266,14 @@ public Builder setCloudResource(com.google.cloud.bigquery.connection.v1.CloudRes return this; } /** + * + * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * */ public Builder setCloudResource( com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder builderForValue) { @@ -2014,18 +2287,27 @@ public Builder setCloudResource( return this; } /** + * + * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * */ - public Builder mergeCloudResource(com.google.cloud.bigquery.connection.v1.CloudResourceProperties value) { + public Builder mergeCloudResource( + com.google.cloud.bigquery.connection.v1.CloudResourceProperties value) { if (cloudResourceBuilder_ == null) { - if (propertiesCase_ == 22 && - properties_ != com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance()) { - properties_ = com.google.cloud.bigquery.connection.v1.CloudResourceProperties.newBuilder((com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_) - .mergeFrom(value).buildPartial(); + if (propertiesCase_ == 22 + && properties_ + != com.google.cloud.bigquery.connection.v1.CloudResourceProperties + .getDefaultInstance()) { + properties_ = + com.google.cloud.bigquery.connection.v1.CloudResourceProperties.newBuilder( + (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_) + .mergeFrom(value) + .buildPartial(); } else { properties_ = value; } @@ -2041,11 +2323,14 @@ public Builder mergeCloudResource(com.google.cloud.bigquery.connection.v1.CloudR return this; } /** + * + * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * */ public Builder clearCloudResource() { if (cloudResourceBuilder_ == null) { @@ -2064,24 +2349,32 @@ public Builder clearCloudResource() { return this; } /** + * + * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * */ - public com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder getCloudResourceBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder + getCloudResourceBuilder() { return getCloudResourceFieldBuilder().getBuilder(); } /** + * + * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder getCloudResourceOrBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder + getCloudResourceOrBuilder() { if ((propertiesCase_ == 22) && (cloudResourceBuilder_ != null)) { return cloudResourceBuilder_.getMessageOrBuilder(); } else { @@ -2092,38 +2385,51 @@ public com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder } } /** + * + * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudResourceProperties, com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder, com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder> + com.google.cloud.bigquery.connection.v1.CloudResourceProperties, + com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder, + com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder> getCloudResourceFieldBuilder() { if (cloudResourceBuilder_ == null) { if (!(propertiesCase_ == 22)) { - properties_ = com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance(); + properties_ = + com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance(); } - cloudResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudResourceProperties, com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder, com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder>( + cloudResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.CloudResourceProperties, + com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder, + com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder>( (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_, getParentForChildren(), isClean()); properties_ = null; } propertiesCase_ = 22; - onChanged();; + onChanged(); + ; return cloudResourceBuilder_; } - private long creationTime_ ; + private long creationTime_; /** + * + * *
      * Output only. The creation timestamp of the connection.
      * 
* * int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The creationTime. */ @java.lang.Override @@ -2131,42 +2437,51 @@ public long getCreationTime() { return creationTime_; } /** + * + * *
      * Output only. The creation timestamp of the connection.
      * 
* * int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The creationTime to set. * @return This builder for chaining. */ public Builder setCreationTime(long value) { - + creationTime_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The creation timestamp of the connection.
      * 
* * int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearCreationTime() { - + creationTime_ = 0L; onChanged(); return this; } - private long lastModifiedTime_ ; + private long lastModifiedTime_; /** + * + * *
      * Output only. The last update timestamp of the connection.
      * 
* * int64 last_modified_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The lastModifiedTime. */ @java.lang.Override @@ -2174,42 +2489,51 @@ public long getLastModifiedTime() { return lastModifiedTime_; } /** + * + * *
      * Output only. The last update timestamp of the connection.
      * 
* * int64 last_modified_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The lastModifiedTime to set. * @return This builder for chaining. */ public Builder setLastModifiedTime(long value) { - + lastModifiedTime_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The last update timestamp of the connection.
      * 
* * int64 last_modified_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLastModifiedTime() { - + lastModifiedTime_ = 0L; onChanged(); return this; } - private boolean hasCredential_ ; + private boolean hasCredential_; /** + * + * *
      * Output only. True, if credential is configured for this connection.
      * 
* * bool has_credential = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The hasCredential. */ @java.lang.Override @@ -2217,37 +2541,43 @@ public boolean getHasCredential() { return hasCredential_; } /** + * + * *
      * Output only. True, if credential is configured for this connection.
      * 
* * bool has_credential = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The hasCredential to set. * @return This builder for chaining. */ public Builder setHasCredential(boolean value) { - + hasCredential_ = value; onChanged(); return this; } /** + * + * *
      * Output only. True, if credential is configured for this connection.
      * 
* * bool has_credential = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearHasCredential() { - + hasCredential_ = false; 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); } @@ -2257,12 +2587,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.Connection) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.Connection) private static final com.google.cloud.bigquery.connection.v1.Connection DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.Connection(); } @@ -2271,16 +2601,16 @@ public static com.google.cloud.bigquery.connection.v1.Connection getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Connection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Connection(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Connection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Connection(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2295,6 +2625,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.connection.v1.Connection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionName.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionName.java rename to proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java similarity index 82% rename from owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java rename to proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java index 42662f57..9e3e7a5b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java @@ -1,93 +1,132 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; -public interface ConnectionOrBuilder extends +public interface ConnectionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.Connection) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the connection in the form of:
    * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the connection in the form of:
    * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * User provided display name for the connection.
    * 
* * string friendly_name = 2; + * * @return The friendlyName. */ java.lang.String getFriendlyName(); /** + * + * *
    * User provided display name for the connection.
    * 
* * string friendly_name = 2; + * * @return The bytes for friendlyName. */ - com.google.protobuf.ByteString - getFriendlyNameBytes(); + com.google.protobuf.ByteString getFriendlyNameBytes(); /** + * + * *
    * User provided description.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * User provided description.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Cloud SQL properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties cloud_sql = 4; + * * @return Whether the cloudSql field is set. */ boolean hasCloudSql(); /** + * + * *
    * Cloud SQL properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSqlProperties cloud_sql = 4; + * * @return The cloudSql. */ com.google.cloud.bigquery.connection.v1.CloudSqlProperties getCloudSql(); /** + * + * *
    * Cloud SQL properties.
    * 
@@ -97,24 +136,32 @@ public interface ConnectionOrBuilder extends com.google.cloud.bigquery.connection.v1.CloudSqlPropertiesOrBuilder getCloudSqlOrBuilder(); /** + * + * *
    * Amazon Web Services (AWS) properties.
    * 
* * .google.cloud.bigquery.connection.v1.AwsProperties aws = 8; + * * @return Whether the aws field is set. */ boolean hasAws(); /** + * + * *
    * Amazon Web Services (AWS) properties.
    * 
* * .google.cloud.bigquery.connection.v1.AwsProperties aws = 8; + * * @return The aws. */ com.google.cloud.bigquery.connection.v1.AwsProperties getAws(); /** + * + * *
    * Amazon Web Services (AWS) properties.
    * 
@@ -124,85 +171,112 @@ public interface ConnectionOrBuilder extends com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder getAwsOrBuilder(); /** + * + * *
    * Cloud Spanner properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; + * * @return Whether the cloudSpanner field is set. */ boolean hasCloudSpanner(); /** + * + * *
    * Cloud Spanner properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; + * * @return The cloudSpanner. */ com.google.cloud.bigquery.connection.v1.CloudSpannerProperties getCloudSpanner(); /** + * + * *
    * Cloud Spanner properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; */ - com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder getCloudSpannerOrBuilder(); + com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder + getCloudSpannerOrBuilder(); /** + * + * *
    * Cloud Resource properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * * @return Whether the cloudResource field is set. */ boolean hasCloudResource(); /** + * + * *
    * Cloud Resource properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * * @return The cloudResource. */ com.google.cloud.bigquery.connection.v1.CloudResourceProperties getCloudResource(); /** + * + * *
    * Cloud Resource properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; */ - com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder getCloudResourceOrBuilder(); + com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder + getCloudResourceOrBuilder(); /** + * + * *
    * Output only. The creation timestamp of the connection.
    * 
* * int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The creationTime. */ long getCreationTime(); /** + * + * *
    * Output only. The last update timestamp of the connection.
    * 
* * int64 last_modified_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The lastModifiedTime. */ long getLastModifiedTime(); /** + * + * *
    * Output only. True, if credential is configured for this connection.
    * 
* * bool has_credential = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The hasCredential. */ boolean getHasCredential(); diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java new file mode 100644 index 00000000..36b9795a --- /dev/null +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java @@ -0,0 +1,368 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/connection/v1/connection.proto + +package com.google.cloud.bigquery.connection.v1; + +public final class ConnectionOuterClass { + private ConnectionOuterClass() {} + + 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_bigquery_connection_v1_CreateConnectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_Connection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_AwsProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/bigquery/connection/v1/co" + + "nnection.proto\022#google.cloud.bigquery.co" + + "nnection.v1\032\034google/api/annotations.prot" + + "o\032\027google/api/client.proto\032\037google/api/f" + + "ield_behavior.proto\032\031google/api/resource" + + ".proto\032\036google/iam/v1/iam_policy.proto\032\032" + + "google/iam/v1/policy.proto\032\033google/proto" + + "buf/empty.proto\032 google/protobuf/field_m" + + "ask.proto\"\272\001\n\027CreateConnectionRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googlea" + + "pis.com/Location\022\032\n\rconnection_id\030\002 \001(\tB" + + "\003\340A\001\022H\n\nconnection\030\003 \001(\0132/.google.cloud." + + "bigquery.connection.v1.ConnectionB\003\340A\002\"Z" + + "\n\024GetConnectionRequest\022B\n\004name\030\001 \001(\tB4\340A" + + "\002\372A.\n,bigqueryconnection.googleapis.com/" + + "Connection\"\177\n\026ListConnectionsRequest\0229\n\006" + + "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + + "is.com/Location\022\026\n\tpage_size\030\004 \001(\005B\003\340A\002\022" + + "\022\n\npage_token\030\003 \001(\t\"x\n\027ListConnectionsRe" + + "sponse\022\027\n\017next_page_token\030\001 \001(\t\022D\n\013conne" + + "ctions\030\002 \003(\0132/.google.cloud.bigquery.con" + + "nection.v1.Connection\"\335\001\n\027UpdateConnecti" + + "onRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,bigquer" + + "yconnection.googleapis.com/Connection\022H\n" + + "\nconnection\030\002 \001(\0132/.google.cloud.bigquer" + + "y.connection.v1.ConnectionB\003\340A\002\0224\n\013updat" + + "e_mask\030\003 \001(\0132\032.google.protobuf.FieldMask" + + "B\003\340A\002\"]\n\027DeleteConnectionRequest\022B\n\004name" + + "\030\001 \001(\tB4\340A\002\372A.\n,bigqueryconnection.googl" + + "eapis.com/Connection\"\342\004\n\nConnection\022\014\n\004n" + + "ame\030\001 \001(\t\022\025\n\rfriendly_name\030\002 \001(\t\022\023\n\013desc" + + "ription\030\003 \001(\t\022L\n\tcloud_sql\030\004 \001(\01327.googl" + + "e.cloud.bigquery.connection.v1.CloudSqlP" + + "ropertiesH\000\022A\n\003aws\030\010 \001(\01322.google.cloud." + + "bigquery.connection.v1.AwsPropertiesH\000\022T" + + "\n\rcloud_spanner\030\025 \001(\0132;.google.cloud.big" + + "query.connection.v1.CloudSpannerProperti" + + "esH\000\022V\n\016cloud_resource\030\026 \001(\0132<.google.cl" + + "oud.bigquery.connection.v1.CloudResource" + + "PropertiesH\000\022\032\n\rcreation_time\030\005 \001(\003B\003\340A\003" + + "\022\037\n\022last_modified_time\030\006 \001(\003B\003\340A\003\022\033\n\016has" + + "_credential\030\007 \001(\010B\003\340A\003:s\352Ap\n,bigquerycon" + + "nection.googleapis.com/Connection\022@proje" + + "cts/{project}/locations/{location}/conne" + + "ctions/{connection}B\014\n\nproperties\"\251\002\n\022Cl" + + "oudSqlProperties\022\023\n\013instance_id\030\001 \001(\t\022\020\n" + + "\010database\030\002 \001(\t\022R\n\004type\030\003 \001(\0162D.google.c" + + "loud.bigquery.connection.v1.CloudSqlProp" + + "erties.DatabaseType\022P\n\ncredential\030\004 \001(\0132" + + "7.google.cloud.bigquery.connection.v1.Cl" + + "oudSqlCredentialB\003\340A\004\"F\n\014DatabaseType\022\035\n" + + "\031DATABASE_TYPE_UNSPECIFIED\020\000\022\014\n\010POSTGRES" + + "\020\001\022\t\n\005MYSQL\020\002\"8\n\022CloudSqlCredential\022\020\n\010u" + + "sername\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"C\n\026Cloud" + + "SpannerProperties\022\020\n\010database\030\001 \001(\t\022\027\n\017u" + + "se_parallelism\030\002 \001(\010\"\313\001\n\rAwsProperties\022V" + + "\n\022cross_account_role\030\002 \001(\01328.google.clou" + + "d.bigquery.connection.v1.AwsCrossAccount" + + "RoleH\000\022I\n\013access_role\030\003 \001(\01322.google.clo" + + "ud.bigquery.connection.v1.AwsAccessRoleH" + + "\000B\027\n\025authentication_method\"^\n\023AwsCrossAc" + + "countRole\022\023\n\013iam_role_id\030\001 \001(\t\022\030\n\013iam_us" + + "er_id\030\002 \001(\tB\003\340A\003\022\030\n\013external_id\030\003 \001(\tB\003\340" + + "A\003\"6\n\rAwsAccessRole\022\023\n\013iam_role_id\030\001 \001(\t" + + "\022\020\n\010identity\030\002 \001(\t\":\n\027CloudResourcePrope" + + "rties\022\037\n\022service_account_id\030\001 \001(\tB\003\340A\0032\314" + + "\r\n\021ConnectionService\022\350\001\n\020CreateConnectio" + + "n\022<.google.cloud.bigquery.connection.v1." + + "CreateConnectionRequest\032/.google.cloud.b" + + "igquery.connection.v1.Connection\"e\202\323\344\223\002=" + + "\"//v1/{parent=projects/*/locations/*}/co" + + "nnections:\nconnection\332A\037parent,connectio" + + "n,connection_id\022\273\001\n\rGetConnection\0229.goog" + + "le.cloud.bigquery.connection.v1.GetConne" + + "ctionRequest\032/.google.cloud.bigquery.con" + + "nection.v1.Connection\">\202\323\344\223\0021\022//v1/{name" + + "=projects/*/locations/*/connections/*}\332A" + + "\004name\022\316\001\n\017ListConnections\022;.google.cloud" + + ".bigquery.connection.v1.ListConnectionsR" + + "equest\032<.google.cloud.bigquery.connectio" + + "n.v1.ListConnectionsResponse\"@\202\323\344\223\0021\022//v" + + "1/{parent=projects/*/locations/*}/connec" + + "tions\332A\006parent\022\344\001\n\020UpdateConnection\022<.go" + + "ogle.cloud.bigquery.connection.v1.Update" + + "ConnectionRequest\032/.google.cloud.bigquer" + + "y.connection.v1.Connection\"a\202\323\344\223\002=2//v1/" + + "{name=projects/*/locations/*/connections" + + "/*}:\nconnection\332A\033name,connection,update" + + "_mask\022\250\001\n\020DeleteConnection\022<.google.clou" + + "d.bigquery.connection.v1.DeleteConnectio" + + "nRequest\032\026.google.protobuf.Empty\">\202\323\344\223\0021" + + "*//v1/{name=projects/*/locations/*/conne" + + "ctions/*}\332A\004name\022\251\001\n\014GetIamPolicy\022\".goog" + + "le.iam.v1.GetIamPolicyRequest\032\025.google.i" + + "am.v1.Policy\"^\202\323\344\223\002E\"@/v1/{resource=proj" + + "ects/*/locations/*/connections/*}:getIam" + + "Policy:\001*\332A\020resource,options\022\250\001\n\014SetIamP" + + "olicy\022\".google.iam.v1.SetIamPolicyReques" + + "t\032\025.google.iam.v1.Policy\"]\202\323\344\223\002E\"@/v1/{r" + + "esource=projects/*/locations/*/connectio" + + "ns/*}:setIamPolicy:\001*\332A\017resource,policy\022" + + "\323\001\n\022TestIamPermissions\022(.google.iam.v1.T" + + "estIamPermissionsRequest\032).google.iam.v1" + + ".TestIamPermissionsResponse\"h\202\323\344\223\002K\"F/v1" + + "/{resource=projects/*/locations/*/connec" + + "tions/*}:testIamPermissions:\001*\332A\024resourc" + + "e,permissions\032~\312A!bigqueryconnection.goo" + + "gleapis.com\322AWhttps://www.googleapis.com" + + "/auth/bigquery,https://www.googleapis.co" + + "m/auth/cloud-platformB\306\001\n\'com.google.clo" + + "ud.bigquery.connection.v1P\001ZMgoogle.gola" + + "ng.org/genproto/googleapis/cloud/bigquer" + + "y/connection/v1;connection\252\002#Google.Clou" + + "d.BigQuery.Connection.V1\312\002#Google\\Cloud\\" + + "BigQuery\\Connection\\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.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor, + new java.lang.String[] { + "Parent", "ConnectionId", "Connection", + }); + internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor, + new java.lang.String[] { + "NextPageToken", "Connections", + }); + internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor, + new java.lang.String[] { + "Name", "Connection", "UpdateMask", + }); + internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_bigquery_connection_v1_Connection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor, + new java.lang.String[] { + "Name", + "FriendlyName", + "Description", + "CloudSql", + "Aws", + "CloudSpanner", + "CloudResource", + "CreationTime", + "LastModifiedTime", + "HasCredential", + "Properties", + }); + internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor, + new java.lang.String[] { + "InstanceId", "Database", "Type", "Credential", + }); + internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_descriptor, + new java.lang.String[] { + "Username", "Password", + }); + internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor, + new java.lang.String[] { + "Database", "UseParallelism", + }); + internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_bigquery_connection_v1_AwsProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor, + new java.lang.String[] { + "CrossAccountRole", "AccessRole", "AuthenticationMethod", + }); + internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor, + new java.lang.String[] { + "IamRoleId", "IamUserId", "ExternalId", + }); + internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor, + new java.lang.String[] { + "IamRoleId", "Identity", + }); + internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor, + new java.lang.String[] { + "ServiceAccountId", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequest.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequest.java rename to proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequest.java index bb68725a..b05e912d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequest.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequest.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/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** + * + * *
  * The request for [ConnectionService.CreateConnection][google.cloud.bigquery.connection.v1.ConnectionService.CreateConnection].
  * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.CreateConnectionRequest} */ -public final class CreateConnectionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateConnectionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.CreateConnectionRequest) CreateConnectionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateConnectionRequest.newBuilder() to construct. private CreateConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateConnectionRequest() { parent_ = ""; connectionId_ = ""; @@ -26,16 +44,15 @@ private CreateConnectionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateConnectionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateConnectionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,44 @@ private CreateConnectionRequest( 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(); - connectionId_ = s; - break; - } - case 26: { - com.google.cloud.bigquery.connection.v1.Connection.Builder subBuilder = null; - if (connection_ != null) { - subBuilder = connection_.toBuilder(); + parent_ = s; + break; } - connection_ = input.readMessage(com.google.cloud.bigquery.connection.v1.Connection.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(connection_); - connection_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + connectionId_ = s; + break; } + case 26: + { + com.google.cloud.bigquery.connection.v1.Connection.Builder subBuilder = null; + if (connection_ != null) { + subBuilder = connection_.toBuilder(); + } + connection_ = + input.readMessage( + com.google.cloud.bigquery.connection.v1.Connection.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(connection_); + connection_ = 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 +116,42 @@ private CreateConnectionRequest( } 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.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.class, com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.Builder.class); + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.class, + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Parent resource name.
    * Must be in the format `projects/{project_id}/locations/{location_id}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -130,30 +160,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. Parent resource name.
    * Must be in the format `projects/{project_id}/locations/{location_id}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -164,11 +196,14 @@ public java.lang.String getParent() { public static final int CONNECTION_ID_FIELD_NUMBER = 2; private volatile java.lang.Object connectionId_; /** + * + * *
    * Optional. Connection id that should be assigned to the created connection.
    * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The connectionId. */ @java.lang.Override @@ -177,29 +212,29 @@ public java.lang.String getConnectionId() { 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(); connectionId_ = s; return s; } } /** + * + * *
    * Optional. Connection id that should be assigned to the created connection.
    * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for connectionId. */ @java.lang.Override - public com.google.protobuf.ByteString - getConnectionIdBytes() { + public com.google.protobuf.ByteString getConnectionIdBytes() { java.lang.Object ref = connectionId_; 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); connectionId_ = b; return b; } else { @@ -210,11 +245,16 @@ public java.lang.String getConnectionId() { public static final int CONNECTION_FIELD_NUMBER = 3; private com.google.cloud.bigquery.connection.v1.Connection connection_; /** + * + * *
    * Required. Connection to create.
    * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connection field is set. */ @java.lang.Override @@ -222,23 +262,34 @@ public boolean hasConnection() { return connection_ != null; } /** + * + * *
    * Required. Connection to create.
    * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connection. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.Connection getConnection() { - return connection_ == null ? com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() : connection_; + return connection_ == null + ? com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() + : connection_; } /** + * + * *
    * Required. Connection to create.
    * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnectionOrBuilder() { @@ -246,6 +297,7 @@ public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnection } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -257,8 +309,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 +335,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, connectionId_); } if (connection_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getConnection()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConnection()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -295,21 +345,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.bigquery.connection.v1.CreateConnectionRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest other = (com.google.cloud.bigquery.connection.v1.CreateConnectionRequest) obj; + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest other = + (com.google.cloud.bigquery.connection.v1.CreateConnectionRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getConnectionId() - .equals(other.getConnectionId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getConnectionId().equals(other.getConnectionId())) return false; if (hasConnection() != other.hasConnection()) return false; if (hasConnection()) { - if (!getConnection() - .equals(other.getConnection())) return false; + if (!getConnection().equals(other.getConnection())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -336,117 +384,127 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.CreateConnectionRequest 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.bigquery.connection.v1.CreateConnectionRequest 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.bigquery.connection.v1.CreateConnectionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.CreateConnectionRequest 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.bigquery.connection.v1.CreateConnectionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1.CreateConnectionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.CreateConnectionRequest 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.bigquery.connection.v1.CreateConnectionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1.CreateConnectionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1.CreateConnectionRequest 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.bigquery.connection.v1.CreateConnectionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1.CreateConnectionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1.CreateConnectionRequest 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.bigquery.connection.v1.CreateConnectionRequest 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.bigquery.connection.v1.CreateConnectionRequest 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.bigquery.connection.v1.CreateConnectionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for [ConnectionService.CreateConnection][google.cloud.bigquery.connection.v1.ConnectionService.CreateConnection].
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.CreateConnectionRequest} */ - 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.bigquery.connection.v1.CreateConnectionRequest) com.google.cloud.bigquery.connection.v1.CreateConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.class, com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.Builder.class); + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.class, + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.Builder.class); } // Construct using com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.newBuilder() @@ -454,16 +512,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,13 +538,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CreateConnectionRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.CreateConnectionRequest + getDefaultInstanceForType() { return com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.getDefaultInstance(); } @@ -502,7 +560,8 @@ public com.google.cloud.bigquery.connection.v1.CreateConnectionRequest build() { @java.lang.Override public com.google.cloud.bigquery.connection.v1.CreateConnectionRequest buildPartial() { - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest result = new com.google.cloud.bigquery.connection.v1.CreateConnectionRequest(this); + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest result = + new com.google.cloud.bigquery.connection.v1.CreateConnectionRequest(this); result.parent_ = parent_; result.connectionId_ = connectionId_; if (connectionBuilder_ == null) { @@ -518,46 +577,50 @@ public com.google.cloud.bigquery.connection.v1.CreateConnectionRequest buildPart 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.bigquery.connection.v1.CreateConnectionRequest) { - return mergeFrom((com.google.cloud.bigquery.connection.v1.CreateConnectionRequest)other); + return mergeFrom((com.google.cloud.bigquery.connection.v1.CreateConnectionRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.CreateConnectionRequest other) { - if (other == com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest other) { + if (other + == com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -588,7 +651,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.connection.v1.CreateConnectionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.connection.v1.CreateConnectionRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -600,19 +665,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * Must be in the format `projects/{project_id}/locations/{location_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -621,21 +690,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * Must be in the format `projects/{project_id}/locations/{location_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -643,57 +715,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * Must be in the format `projects/{project_id}/locations/{location_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * Must be in the format `projects/{project_id}/locations/{location_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * Must be in the format `projects/{project_id}/locations/{location_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -701,18 +786,20 @@ public Builder setParentBytes( private java.lang.Object connectionId_ = ""; /** + * + * *
      * Optional. Connection id that should be assigned to the created connection.
      * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The connectionId. */ public java.lang.String getConnectionId() { java.lang.Object ref = connectionId_; 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(); connectionId_ = s; return s; @@ -721,20 +808,21 @@ public java.lang.String getConnectionId() { } } /** + * + * *
      * Optional. Connection id that should be assigned to the created connection.
      * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for connectionId. */ - public com.google.protobuf.ByteString - getConnectionIdBytes() { + public com.google.protobuf.ByteString getConnectionIdBytes() { java.lang.Object ref = connectionId_; 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); connectionId_ = b; return b; } else { @@ -742,54 +830,61 @@ public java.lang.String getConnectionId() { } } /** + * + * *
      * Optional. Connection id that should be assigned to the created connection.
      * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The connectionId to set. * @return This builder for chaining. */ - public Builder setConnectionId( - java.lang.String value) { + public Builder setConnectionId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + connectionId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Connection id that should be assigned to the created connection.
      * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearConnectionId() { - + connectionId_ = getDefaultInstance().getConnectionId(); onChanged(); return this; } /** + * + * *
      * Optional. Connection id that should be assigned to the created connection.
      * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for connectionId to set. * @return This builder for chaining. */ - public Builder setConnectionIdBytes( - com.google.protobuf.ByteString value) { + public Builder setConnectionIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + connectionId_ = value; onChanged(); return this; @@ -797,39 +892,58 @@ public Builder setConnectionIdBytes( private com.google.cloud.bigquery.connection.v1.Connection connection_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.Connection, com.google.cloud.bigquery.connection.v1.Connection.Builder, com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder> connectionBuilder_; + com.google.cloud.bigquery.connection.v1.Connection, + com.google.cloud.bigquery.connection.v1.Connection.Builder, + com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder> + connectionBuilder_; /** + * + * *
      * Required. Connection to create.
      * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connection field is set. */ public boolean hasConnection() { return connectionBuilder_ != null || connection_ != null; } /** + * + * *
      * Required. Connection to create.
      * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connection. */ public com.google.cloud.bigquery.connection.v1.Connection getConnection() { if (connectionBuilder_ == null) { - return connection_ == null ? com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() : connection_; + return connection_ == null + ? com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() + : connection_; } else { return connectionBuilder_.getMessage(); } } /** + * + * *
      * Required. Connection to create.
      * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConnection(com.google.cloud.bigquery.connection.v1.Connection value) { if (connectionBuilder_ == null) { @@ -845,11 +959,15 @@ public Builder setConnection(com.google.cloud.bigquery.connection.v1.Connection return this; } /** + * + * *
      * Required. Connection to create.
      * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConnection( com.google.cloud.bigquery.connection.v1.Connection.Builder builderForValue) { @@ -863,17 +981,23 @@ public Builder setConnection( return this; } /** + * + * *
      * Required. Connection to create.
      * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConnection(com.google.cloud.bigquery.connection.v1.Connection value) { if (connectionBuilder_ == null) { if (connection_ != null) { connection_ = - com.google.cloud.bigquery.connection.v1.Connection.newBuilder(connection_).mergeFrom(value).buildPartial(); + com.google.cloud.bigquery.connection.v1.Connection.newBuilder(connection_) + .mergeFrom(value) + .buildPartial(); } else { connection_ = value; } @@ -885,11 +1009,15 @@ public Builder mergeConnection(com.google.cloud.bigquery.connection.v1.Connectio return this; } /** + * + * *
      * Required. Connection to create.
      * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConnection() { if (connectionBuilder_ == null) { @@ -903,55 +1031,71 @@ public Builder clearConnection() { return this; } /** + * + * *
      * Required. Connection to create.
      * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.bigquery.connection.v1.Connection.Builder getConnectionBuilder() { - + onChanged(); return getConnectionFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Connection to create.
      * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnectionOrBuilder() { if (connectionBuilder_ != null) { return connectionBuilder_.getMessageOrBuilder(); } else { - return connection_ == null ? - com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() : connection_; + return connection_ == null + ? com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() + : connection_; } } /** + * + * *
      * Required. Connection to create.
      * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.Connection, com.google.cloud.bigquery.connection.v1.Connection.Builder, com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder> + com.google.cloud.bigquery.connection.v1.Connection, + com.google.cloud.bigquery.connection.v1.Connection.Builder, + com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder> getConnectionFieldBuilder() { if (connectionBuilder_ == null) { - connectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.Connection, com.google.cloud.bigquery.connection.v1.Connection.Builder, com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder>( - getConnection(), - getParentForChildren(), - isClean()); + connectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.Connection, + com.google.cloud.bigquery.connection.v1.Connection.Builder, + com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder>( + getConnection(), getParentForChildren(), isClean()); connection_ = null; } return connectionBuilder_; } + @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,30 +1105,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.CreateConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.CreateConnectionRequest) - private static final com.google.cloud.bigquery.connection.v1.CreateConnectionRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.connection.v1.CreateConnectionRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.CreateConnectionRequest(); } - public static com.google.cloud.bigquery.connection.v1.CreateConnectionRequest getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1.CreateConnectionRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateConnectionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateConnectionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -996,9 +1142,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CreateConnectionRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.CreateConnectionRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequestOrBuilder.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequestOrBuilder.java similarity index 53% rename from owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequestOrBuilder.java rename to proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequestOrBuilder.java index de7fb832..850e155a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequestOrBuilder.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequestOrBuilder.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/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; -public interface CreateConnectionRequestOrBuilder extends +public interface CreateConnectionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.CreateConnectionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * Must be in the format `projects/{project_id}/locations/{location_id}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Parent resource name.
    * Must be in the format `projects/{project_id}/locations/{location_id}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. Connection id that should be assigned to the created connection.
    * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The connectionId. */ java.lang.String getConnectionId(); /** + * + * *
    * Optional. Connection id that should be assigned to the created connection.
    * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for connectionId. */ - com.google.protobuf.ByteString - getConnectionIdBytes(); + com.google.protobuf.ByteString getConnectionIdBytes(); /** + * + * *
    * Required. Connection to create.
    * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connection field is set. */ boolean hasConnection(); /** + * + * *
    * Required. Connection to create.
    * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connection. */ com.google.cloud.bigquery.connection.v1.Connection getConnection(); /** + * + * *
    * Required. Connection to create.
    * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnectionOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequest.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequest.java rename to proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequest.java index 089fb22b..20b6c652 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequest.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequest.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/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** + * + * *
  * The request for [ConnectionService.DeleteConnectionRequest][].
  * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.DeleteConnectionRequest} */ -public final class DeleteConnectionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteConnectionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.DeleteConnectionRequest) DeleteConnectionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteConnectionRequest.newBuilder() to construct. private DeleteConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteConnectionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteConnectionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteConnectionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteConnectionRequest( 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,35 +91,42 @@ private DeleteConnectionRequest( } 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.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.class, com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.Builder.class); + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.class, + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the deleted connection, for example:
    * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the deleted connection, for example:
    * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,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_); } @@ -178,15 +205,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.bigquery.connection.v1.DeleteConnectionRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest other = (com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest) obj; + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest other = + (com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest 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.bigquery.connection.v1.DeleteConnectionRequest 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.bigquery.connection.v1.DeleteConnectionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest 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.bigquery.connection.v1.DeleteConnectionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest 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.bigquery.connection.v1.DeleteConnectionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest 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.bigquery.connection.v1.DeleteConnectionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest 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.bigquery.connection.v1.DeleteConnectionRequest 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.bigquery.connection.v1.DeleteConnectionRequest 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.bigquery.connection.v1.DeleteConnectionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for [ConnectionService.DeleteConnectionRequest][].
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.DeleteConnectionRequest} */ - 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.bigquery.connection.v1.DeleteConnectionRequest) com.google.cloud.bigquery.connection.v1.DeleteConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.class, com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.Builder.class); + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.class, + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.Builder.class); } // Construct using com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.newBuilder() @@ -324,16 +361,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(); @@ -343,13 +379,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest + getDefaultInstanceForType() { return com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.getDefaultInstance(); } @@ -364,7 +401,8 @@ public com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest build() { @java.lang.Override public com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest buildPartial() { - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest result = new com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest(this); + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest result = + new com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +412,50 @@ public com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest buildPart 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.bigquery.connection.v1.DeleteConnectionRequest) { - return mergeFrom((com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest)other); + return mergeFrom((com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest other) { - if (other == com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest other) { + if (other + == com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +479,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +493,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the deleted connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +518,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the deleted connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +543,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the deleted connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the deleted connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Name of the deleted connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + 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); } @@ -559,30 +623,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.DeleteConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.DeleteConnectionRequest) - private static final com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest(); } - public static com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteConnectionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteConnectionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +660,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequestOrBuilder.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequestOrBuilder.java new file mode 100644 index 00000000..7dcb0a56 --- /dev/null +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/connection/v1/connection.proto + +package com.google.cloud.bigquery.connection.v1; + +public interface DeleteConnectionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.DeleteConnectionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the deleted connection, for example:
+   * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the deleted connection, for example:
+   * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequest.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequest.java rename to proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequest.java index cab7ad17..9b986803 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequest.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequest.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/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** + * + * *
  * The request for [ConnectionService.GetConnection][google.cloud.bigquery.connection.v1.ConnectionService.GetConnection].
  * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.GetConnectionRequest} */ -public final class GetConnectionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetConnectionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.GetConnectionRequest) GetConnectionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetConnectionRequest.newBuilder() to construct. private GetConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetConnectionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetConnectionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetConnectionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetConnectionRequest( 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,35 +91,42 @@ private GetConnectionRequest( } 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.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.GetConnectionRequest.class, com.google.cloud.bigquery.connection.v1.GetConnectionRequest.Builder.class); + com.google.cloud.bigquery.connection.v1.GetConnectionRequest.class, + com.google.cloud.bigquery.connection.v1.GetConnectionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the requested connection, for example:
    * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the requested connection, for example:
    * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,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_); } @@ -178,15 +205,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.bigquery.connection.v1.GetConnectionRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.GetConnectionRequest other = (com.google.cloud.bigquery.connection.v1.GetConnectionRequest) obj; + com.google.cloud.bigquery.connection.v1.GetConnectionRequest other = + (com.google.cloud.bigquery.connection.v1.GetConnectionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.GetConnectionRequest 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.bigquery.connection.v1.GetConnectionRequest 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.bigquery.connection.v1.GetConnectionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.GetConnectionRequest 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.bigquery.connection.v1.GetConnectionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.GetConnectionRequest 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.bigquery.connection.v1.GetConnectionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1.GetConnectionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1.GetConnectionRequest 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.bigquery.connection.v1.GetConnectionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1.GetConnectionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1.GetConnectionRequest 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.bigquery.connection.v1.GetConnectionRequest 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.bigquery.connection.v1.GetConnectionRequest 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.bigquery.connection.v1.GetConnectionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.connection.v1.GetConnectionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for [ConnectionService.GetConnection][google.cloud.bigquery.connection.v1.ConnectionService.GetConnection].
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.GetConnectionRequest} */ - 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.bigquery.connection.v1.GetConnectionRequest) com.google.cloud.bigquery.connection.v1.GetConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.GetConnectionRequest.class, com.google.cloud.bigquery.connection.v1.GetConnectionRequest.Builder.class); + com.google.cloud.bigquery.connection.v1.GetConnectionRequest.class, + com.google.cloud.bigquery.connection.v1.GetConnectionRequest.Builder.class); } // Construct using com.google.cloud.bigquery.connection.v1.GetConnectionRequest.newBuilder() @@ -324,16 +361,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(); @@ -343,13 +379,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.GetConnectionRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.GetConnectionRequest + getDefaultInstanceForType() { return com.google.cloud.bigquery.connection.v1.GetConnectionRequest.getDefaultInstance(); } @@ -364,7 +401,8 @@ public com.google.cloud.bigquery.connection.v1.GetConnectionRequest build() { @java.lang.Override public com.google.cloud.bigquery.connection.v1.GetConnectionRequest buildPartial() { - com.google.cloud.bigquery.connection.v1.GetConnectionRequest result = new com.google.cloud.bigquery.connection.v1.GetConnectionRequest(this); + com.google.cloud.bigquery.connection.v1.GetConnectionRequest result = + new com.google.cloud.bigquery.connection.v1.GetConnectionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +412,39 @@ public com.google.cloud.bigquery.connection.v1.GetConnectionRequest 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.bigquery.connection.v1.GetConnectionRequest) { - return mergeFrom((com.google.cloud.bigquery.connection.v1.GetConnectionRequest)other); + return mergeFrom((com.google.cloud.bigquery.connection.v1.GetConnectionRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +452,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.GetConnectionRequest other) { - if (other == com.google.cloud.bigquery.connection.v1.GetConnectionRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.bigquery.connection.v1.GetConnectionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +478,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.connection.v1.GetConnectionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.connection.v1.GetConnectionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +491,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the requested connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +516,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the requested connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +541,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the requested connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the requested connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Name of the requested connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + 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); } @@ -559,12 +621,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.GetConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.GetConnectionRequest) - private static final com.google.cloud.bigquery.connection.v1.GetConnectionRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.connection.v1.GetConnectionRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.GetConnectionRequest(); } @@ -573,16 +636,16 @@ public static com.google.cloud.bigquery.connection.v1.GetConnectionRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetConnectionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetConnectionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +660,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.connection.v1.GetConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequestOrBuilder.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequestOrBuilder.java new file mode 100644 index 00000000..e2b275c5 --- /dev/null +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/connection/v1/connection.proto + +package com.google.cloud.bigquery.connection.v1; + +public interface GetConnectionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.GetConnectionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the requested connection, for example:
+   * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the requested connection, for example:
+   * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequest.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequest.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequest.java rename to proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequest.java index 72e1a4a9..64d77ec7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequest.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequest.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/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** + * + * *
  * The request for [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1.ConnectionService.ListConnections].
  * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.ListConnectionsRequest} */ -public final class ListConnectionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListConnectionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.ListConnectionsRequest) ListConnectionsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListConnectionsRequest.newBuilder() to construct. private ListConnectionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListConnectionsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListConnectionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListConnectionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListConnectionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListConnectionsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 32: { + parent_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + case 32: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ private ListConnectionsRequest( } 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.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.class, com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.Builder.class); + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.class, + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Parent resource name.
    * Must be in the form: `projects/{project_id}/locations/{location_id}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -122,30 +148,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. Parent resource name.
    * Must be in the form: `projects/{project_id}/locations/{location_id}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -156,11 +184,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_; /** + * + * *
    * Required. Page size.
    * 
* * int32 page_size = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The pageSize. */ @java.lang.Override @@ -171,11 +202,14 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -184,29 +218,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; } } /** + * + * *
    * Page 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 { @@ -215,6 +249,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,8 +261,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_); } @@ -253,8 +287,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -264,19 +297,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.bigquery.connection.v1.ListConnectionsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest other = (com.google.cloud.bigquery.connection.v1.ListConnectionsRequest) obj; + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest other = + (com.google.cloud.bigquery.connection.v1.ListConnectionsRequest) 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; } @@ -300,117 +331,127 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.ListConnectionsRequest 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.bigquery.connection.v1.ListConnectionsRequest 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.bigquery.connection.v1.ListConnectionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.ListConnectionsRequest 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.bigquery.connection.v1.ListConnectionsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1.ListConnectionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.ListConnectionsRequest 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.bigquery.connection.v1.ListConnectionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1.ListConnectionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1.ListConnectionsRequest 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.bigquery.connection.v1.ListConnectionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1.ListConnectionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1.ListConnectionsRequest 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.bigquery.connection.v1.ListConnectionsRequest 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.bigquery.connection.v1.ListConnectionsRequest 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.bigquery.connection.v1.ListConnectionsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1.ConnectionService.ListConnections].
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.ListConnectionsRequest} */ - 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.bigquery.connection.v1.ListConnectionsRequest) com.google.cloud.bigquery.connection.v1.ListConnectionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.class, com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.Builder.class); + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.class, + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.Builder.class); } // Construct using com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.newBuilder() @@ -418,16 +459,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(); @@ -441,13 +481,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.ListConnectionsRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.ListConnectionsRequest + getDefaultInstanceForType() { return com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.getDefaultInstance(); } @@ -462,7 +503,8 @@ public com.google.cloud.bigquery.connection.v1.ListConnectionsRequest build() { @java.lang.Override public com.google.cloud.bigquery.connection.v1.ListConnectionsRequest buildPartial() { - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest result = new com.google.cloud.bigquery.connection.v1.ListConnectionsRequest(this); + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest result = + new com.google.cloud.bigquery.connection.v1.ListConnectionsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -474,38 +516,39 @@ public com.google.cloud.bigquery.connection.v1.ListConnectionsRequest buildParti 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.bigquery.connection.v1.ListConnectionsRequest) { - return mergeFrom((com.google.cloud.bigquery.connection.v1.ListConnectionsRequest)other); + return mergeFrom((com.google.cloud.bigquery.connection.v1.ListConnectionsRequest) other); } else { super.mergeFrom(other); return this; @@ -513,7 +556,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.ListConnectionsRequest other) { - if (other == com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -544,7 +589,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.connection.v1.ListConnectionsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.connection.v1.ListConnectionsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -556,19 +603,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * Must be in the form: `projects/{project_id}/locations/{location_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -577,21 +628,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * Must be in the form: `projects/{project_id}/locations/{location_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -599,69 +653,85 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * Must be in the form: `projects/{project_id}/locations/{location_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * Must be in the form: `projects/{project_id}/locations/{location_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * Must be in the form: `projects/{project_id}/locations/{location_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Required. Page size.
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The pageSize. */ @java.lang.Override @@ -669,30 +739,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Required. Page size.
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Required. Page size.
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -700,18 +776,20 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page 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; @@ -720,20 +798,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page 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 { @@ -741,61 +820,68 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page 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; } /** + * + * *
      * Page token.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Page 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); } @@ -805,30 +891,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.ListConnectionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.ListConnectionsRequest) - private static final com.google.cloud.bigquery.connection.v1.ListConnectionsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.connection.v1.ListConnectionsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.ListConnectionsRequest(); } - public static com.google.cloud.bigquery.connection.v1.ListConnectionsRequest getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1.ListConnectionsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListConnectionsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListConnectionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -840,9 +928,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.ListConnectionsRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.ListConnectionsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequestOrBuilder.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequestOrBuilder.java rename to proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequestOrBuilder.java index 5bd07d82..fb517f43 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequestOrBuilder.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequestOrBuilder.java @@ -1,61 +1,94 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; -public interface ListConnectionsRequestOrBuilder extends +public interface ListConnectionsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.ListConnectionsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * Must be in the form: `projects/{project_id}/locations/{location_id}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Parent resource name.
    * Must be in the form: `projects/{project_id}/locations/{location_id}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. Page size.
    * 
* * int32 page_size = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Page 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-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponse.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponse.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponse.java rename to proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponse.java index 307ac0f6..faa0aac7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponse.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponse.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/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** + * + * *
  * The response for [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1.ConnectionService.ListConnections].
  * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.ListConnectionsResponse} */ -public final class ListConnectionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListConnectionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.ListConnectionsResponse) ListConnectionsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListConnectionsResponse.newBuilder() to construct. private ListConnectionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListConnectionsResponse() { nextPageToken_ = ""; connections_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ private ListConnectionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListConnectionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListConnectionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,33 @@ private ListConnectionsResponse( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - connections_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + nextPageToken_ = s; + break; } - connections_.add( - input.readMessage(com.google.cloud.bigquery.connection.v1.Connection.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + connections_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + connections_.add( + input.readMessage( + com.google.cloud.bigquery.connection.v1.Connection.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +106,7 @@ private ListConnectionsResponse( } 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)) { connections_ = java.util.Collections.unmodifiableList(connections_); @@ -94,27 +115,33 @@ private ListConnectionsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.class, com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.Builder.class); + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.class, + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.Builder.class); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 1; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Next page token.
    * 
* * string next_page_token = 1; + * * @return The nextPageToken. */ @java.lang.Override @@ -123,29 +150,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; } } /** + * + * *
    * Next page token.
    * 
* * string next_page_token = 1; + * * @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 { @@ -156,6 +183,8 @@ public java.lang.String getNextPageToken() { public static final int CONNECTIONS_FIELD_NUMBER = 2; private java.util.List connections_; /** + * + * *
    * List of connections.
    * 
@@ -167,6 +196,8 @@ public java.util.List getCon return connections_; } /** + * + * *
    * List of connections.
    * 
@@ -174,11 +205,13 @@ public java.util.List getCon * repeated .google.cloud.bigquery.connection.v1.Connection connections = 2; */ @java.lang.Override - public java.util.List + public java.util.List getConnectionsOrBuilderList() { return connections_; } /** + * + * *
    * List of connections.
    * 
@@ -190,6 +223,8 @@ public int getConnectionsCount() { return connections_.size(); } /** + * + * *
    * List of connections.
    * 
@@ -201,6 +236,8 @@ public com.google.cloud.bigquery.connection.v1.Connection getConnections(int ind return connections_.get(index); } /** + * + * *
    * List of connections.
    * 
@@ -214,6 +251,7 @@ public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnection } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +263,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(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nextPageToken_); } @@ -246,8 +283,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nextPageToken_); } for (int i = 0; i < connections_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, connections_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, connections_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -257,17 +293,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.bigquery.connection.v1.ListConnectionsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.ListConnectionsResponse other = (com.google.cloud.bigquery.connection.v1.ListConnectionsResponse) obj; + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse other = + (com.google.cloud.bigquery.connection.v1.ListConnectionsResponse) obj; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getConnectionsList() - .equals(other.getConnectionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getConnectionsList().equals(other.getConnectionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,117 +326,127 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.ListConnectionsResponse 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.bigquery.connection.v1.ListConnectionsResponse 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.bigquery.connection.v1.ListConnectionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.ListConnectionsResponse 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.bigquery.connection.v1.ListConnectionsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1.ListConnectionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.ListConnectionsResponse 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.bigquery.connection.v1.ListConnectionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1.ListConnectionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1.ListConnectionsResponse 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.bigquery.connection.v1.ListConnectionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1.ListConnectionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1.ListConnectionsResponse 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.bigquery.connection.v1.ListConnectionsResponse 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.bigquery.connection.v1.ListConnectionsResponse 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.bigquery.connection.v1.ListConnectionsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response for [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1.ConnectionService.ListConnections].
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.ListConnectionsResponse} */ - 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.bigquery.connection.v1.ListConnectionsResponse) com.google.cloud.bigquery.connection.v1.ListConnectionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.class, com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.Builder.class); + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.class, + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.Builder.class); } // Construct using com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.newBuilder() @@ -409,17 +454,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) { getConnectionsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,13 +480,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.ListConnectionsResponse getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.ListConnectionsResponse + getDefaultInstanceForType() { return com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.getDefaultInstance(); } @@ -456,7 +502,8 @@ public com.google.cloud.bigquery.connection.v1.ListConnectionsResponse build() { @java.lang.Override public com.google.cloud.bigquery.connection.v1.ListConnectionsResponse buildPartial() { - com.google.cloud.bigquery.connection.v1.ListConnectionsResponse result = new com.google.cloud.bigquery.connection.v1.ListConnectionsResponse(this); + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse result = + new com.google.cloud.bigquery.connection.v1.ListConnectionsResponse(this); int from_bitField0_ = bitField0_; result.nextPageToken_ = nextPageToken_; if (connectionsBuilder_ == null) { @@ -476,46 +523,50 @@ public com.google.cloud.bigquery.connection.v1.ListConnectionsResponse buildPart 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.bigquery.connection.v1.ListConnectionsResponse) { - return mergeFrom((com.google.cloud.bigquery.connection.v1.ListConnectionsResponse)other); + return mergeFrom((com.google.cloud.bigquery.connection.v1.ListConnectionsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.ListConnectionsResponse other) { - if (other == com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse other) { + if (other + == com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.getDefaultInstance()) + return this; if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; onChanged(); @@ -538,9 +589,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.ListConnections connectionsBuilder_ = null; connections_ = other.connections_; bitField0_ = (bitField0_ & ~0x00000001); - connectionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConnectionsFieldBuilder() : null; + connectionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConnectionsFieldBuilder() + : null; } else { connectionsBuilder_.addAllMessages(other.connections_); } @@ -565,7 +617,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.connection.v1.ListConnectionsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.connection.v1.ListConnectionsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -574,22 +628,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Next page token.
      * 
* * string next_page_token = 1; + * * @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; @@ -598,20 +655,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Next page token.
      * 
* * string next_page_token = 1; + * * @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 { @@ -619,72 +677,87 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Next page token.
      * 
* * string next_page_token = 1; + * * @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; } /** + * + * *
      * Next page token.
      * 
* * string next_page_token = 1; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Next page token.
      * 
* * string next_page_token = 1; + * * @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; } private java.util.List connections_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureConnectionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - connections_ = new java.util.ArrayList(connections_); + connections_ = + new java.util.ArrayList( + connections_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.Connection, com.google.cloud.bigquery.connection.v1.Connection.Builder, com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder> connectionsBuilder_; + com.google.cloud.bigquery.connection.v1.Connection, + com.google.cloud.bigquery.connection.v1.Connection.Builder, + com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder> + connectionsBuilder_; /** + * + * *
      * List of connections.
      * 
@@ -699,6 +772,8 @@ public java.util.List getCon } } /** + * + * *
      * List of connections.
      * 
@@ -713,6 +788,8 @@ public int getConnectionsCount() { } } /** + * + * *
      * List of connections.
      * 
@@ -727,6 +804,8 @@ public com.google.cloud.bigquery.connection.v1.Connection getConnections(int ind } } /** + * + * *
      * List of connections.
      * 
@@ -748,6 +827,8 @@ public Builder setConnections( return this; } /** + * + * *
      * List of connections.
      * 
@@ -766,6 +847,8 @@ public Builder setConnections( return this; } /** + * + * *
      * List of connections.
      * 
@@ -786,6 +869,8 @@ public Builder addConnections(com.google.cloud.bigquery.connection.v1.Connection return this; } /** + * + * *
      * List of connections.
      * 
@@ -807,6 +892,8 @@ public Builder addConnections( return this; } /** + * + * *
      * List of connections.
      * 
@@ -825,6 +912,8 @@ public Builder addConnections( return this; } /** + * + * *
      * List of connections.
      * 
@@ -843,6 +932,8 @@ public Builder addConnections( return this; } /** + * + * *
      * List of connections.
      * 
@@ -853,8 +944,7 @@ public Builder addAllConnections( java.lang.Iterable values) { if (connectionsBuilder_ == null) { ensureConnectionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, connections_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connections_); onChanged(); } else { connectionsBuilder_.addAllMessages(values); @@ -862,6 +952,8 @@ public Builder addAllConnections( return this; } /** + * + * *
      * List of connections.
      * 
@@ -879,6 +971,8 @@ public Builder clearConnections() { return this; } /** + * + * *
      * List of connections.
      * 
@@ -896,6 +990,8 @@ public Builder removeConnections(int index) { return this; } /** + * + * *
      * List of connections.
      * 
@@ -907,6 +1003,8 @@ public com.google.cloud.bigquery.connection.v1.Connection.Builder getConnections return getConnectionsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of connections.
      * 
@@ -916,19 +1014,22 @@ public com.google.cloud.bigquery.connection.v1.Connection.Builder getConnections public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnectionsOrBuilder( int index) { if (connectionsBuilder_ == null) { - return connections_.get(index); } else { + return connections_.get(index); + } else { return connectionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of connections.
      * 
* * repeated .google.cloud.bigquery.connection.v1.Connection connections = 2; */ - public java.util.List - getConnectionsOrBuilderList() { + public java.util.List + getConnectionsOrBuilderList() { if (connectionsBuilder_ != null) { return connectionsBuilder_.getMessageOrBuilderList(); } else { @@ -936,6 +1037,8 @@ public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnection } } /** + * + * *
      * List of connections.
      * 
@@ -943,10 +1046,12 @@ public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnection * repeated .google.cloud.bigquery.connection.v1.Connection connections = 2; */ public com.google.cloud.bigquery.connection.v1.Connection.Builder addConnectionsBuilder() { - return getConnectionsFieldBuilder().addBuilder( - com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance()); + return getConnectionsFieldBuilder() + .addBuilder(com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance()); } /** + * + * *
      * List of connections.
      * 
@@ -955,37 +1060,43 @@ public com.google.cloud.bigquery.connection.v1.Connection.Builder addConnections */ public com.google.cloud.bigquery.connection.v1.Connection.Builder addConnectionsBuilder( int index) { - return getConnectionsFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance()); + return getConnectionsFieldBuilder() + .addBuilder( + index, com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance()); } /** + * + * *
      * List of connections.
      * 
* * repeated .google.cloud.bigquery.connection.v1.Connection connections = 2; */ - public java.util.List - getConnectionsBuilderList() { + public java.util.List + getConnectionsBuilderList() { return getConnectionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.Connection, com.google.cloud.bigquery.connection.v1.Connection.Builder, com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder> + com.google.cloud.bigquery.connection.v1.Connection, + com.google.cloud.bigquery.connection.v1.Connection.Builder, + com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder> getConnectionsFieldBuilder() { if (connectionsBuilder_ == null) { - connectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.Connection, com.google.cloud.bigquery.connection.v1.Connection.Builder, com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder>( - connections_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + connectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.Connection, + com.google.cloud.bigquery.connection.v1.Connection.Builder, + com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder>( + connections_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); connections_ = null; } return connectionsBuilder_; } + @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,30 +1106,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.ListConnectionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.ListConnectionsResponse) - private static final com.google.cloud.bigquery.connection.v1.ListConnectionsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.connection.v1.ListConnectionsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.ListConnectionsResponse(); } - public static com.google.cloud.bigquery.connection.v1.ListConnectionsResponse getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1.ListConnectionsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListConnectionsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListConnectionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1030,9 +1143,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.ListConnectionsResponse getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.ListConnectionsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponseOrBuilder.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponseOrBuilder.java rename to proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponseOrBuilder.java index 1c26247d..081a72ca 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponseOrBuilder.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponseOrBuilder.java @@ -1,42 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; -public interface ListConnectionsResponseOrBuilder extends +public interface ListConnectionsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.ListConnectionsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Next page token.
    * 
* * string next_page_token = 1; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Next page token.
    * 
* * string next_page_token = 1; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * List of connections.
    * 
* * repeated .google.cloud.bigquery.connection.v1.Connection connections = 2; */ - java.util.List - getConnectionsList(); + java.util.List getConnectionsList(); /** + * + * *
    * List of connections.
    * 
@@ -45,6 +69,8 @@ public interface ListConnectionsResponseOrBuilder extends */ com.google.cloud.bigquery.connection.v1.Connection getConnections(int index); /** + * + * *
    * List of connections.
    * 
@@ -53,21 +79,24 @@ public interface ListConnectionsResponseOrBuilder extends */ int getConnectionsCount(); /** + * + * *
    * List of connections.
    * 
* * repeated .google.cloud.bigquery.connection.v1.Connection connections = 2; */ - java.util.List + java.util.List getConnectionsOrBuilderList(); /** + * + * *
    * List of connections.
    * 
* * repeated .google.cloud.bigquery.connection.v1.Connection connections = 2; */ - com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnectionsOrBuilder( - int index); + com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnectionsOrBuilder(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/LocationName.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/LocationName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/LocationName.java rename to proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/LocationName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequest.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequest.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequest.java rename to proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequest.java index ae0581bd..cbc73151 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequest.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequest.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/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** + * + * *
  * The request for [ConnectionService.UpdateConnection][google.cloud.bigquery.connection.v1.ConnectionService.UpdateConnection].
  * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.UpdateConnectionRequest} */ -public final class UpdateConnectionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateConnectionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.UpdateConnectionRequest) UpdateConnectionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateConnectionRequest.newBuilder() to construct. private UpdateConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateConnectionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateConnectionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateConnectionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,45 +70,52 @@ private UpdateConnectionRequest( 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: { - com.google.cloud.bigquery.connection.v1.Connection.Builder subBuilder = null; - if (connection_ != null) { - subBuilder = connection_.toBuilder(); - } - connection_ = input.readMessage(com.google.cloud.bigquery.connection.v1.Connection.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(connection_); - connection_ = subBuilder.buildPartial(); + name_ = s; + break; } + case 18: + { + com.google.cloud.bigquery.connection.v1.Connection.Builder subBuilder = null; + if (connection_ != null) { + subBuilder = connection_.toBuilder(); + } + connection_ = + input.readMessage( + com.google.cloud.bigquery.connection.v1.Connection.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(connection_); + connection_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - 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) { @@ -99,35 +123,42 @@ private UpdateConnectionRequest( } 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.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.class, com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.Builder.class); + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.class, + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the connection to update, for example:
    * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -136,30 +167,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the connection to update, for example:
    * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -170,11 +203,16 @@ public java.lang.String getName() { public static final int CONNECTION_FIELD_NUMBER = 2; private com.google.cloud.bigquery.connection.v1.Connection connection_; /** + * + * *
    * Required. Connection containing the updated fields.
    * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connection field is set. */ @java.lang.Override @@ -182,23 +220,34 @@ public boolean hasConnection() { return connection_ != null; } /** + * + * *
    * Required. Connection containing the updated fields.
    * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connection. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.Connection getConnection() { - return connection_ == null ? com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() : connection_; + return connection_ == null + ? com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() + : connection_; } /** + * + * *
    * Required. Connection containing the updated fields.
    * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnectionOrBuilder() { @@ -208,11 +257,15 @@ public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnection public static final int UPDATE_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Update mask for the connection fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -220,11 +273,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Update mask for the connection fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -232,11 +289,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Update mask for the connection fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -244,6 +304,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,8 +316,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_); } @@ -279,12 +339,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (connection_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConnection()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConnection()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -294,24 +352,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest other = (com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest) obj; + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest other = + (com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasConnection() != other.hasConnection()) return false; if (hasConnection()) { - if (!getConnection() - .equals(other.getConnection())) return false; + if (!getConnection().equals(other.getConnection())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -340,117 +396,127 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest 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.bigquery.connection.v1.UpdateConnectionRequest 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.bigquery.connection.v1.UpdateConnectionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest 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.bigquery.connection.v1.UpdateConnectionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest 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.bigquery.connection.v1.UpdateConnectionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest 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.bigquery.connection.v1.UpdateConnectionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest 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.bigquery.connection.v1.UpdateConnectionRequest 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.bigquery.connection.v1.UpdateConnectionRequest 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.bigquery.connection.v1.UpdateConnectionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request for [ConnectionService.UpdateConnection][google.cloud.bigquery.connection.v1.ConnectionService.UpdateConnection].
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.UpdateConnectionRequest} */ - 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.bigquery.connection.v1.UpdateConnectionRequest) com.google.cloud.bigquery.connection.v1.UpdateConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.class, com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.Builder.class); + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.class, + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.Builder.class); } // Construct using com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.newBuilder() @@ -458,16 +524,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(); @@ -489,13 +554,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest + getDefaultInstanceForType() { return com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.getDefaultInstance(); } @@ -510,7 +576,8 @@ public com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest build() { @java.lang.Override public com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest buildPartial() { - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest result = new com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest(this); + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest result = + new com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest(this); result.name_ = name_; if (connectionBuilder_ == null) { result.connection_ = connection_; @@ -530,46 +597,50 @@ public com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest buildPart 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.bigquery.connection.v1.UpdateConnectionRequest) { - return mergeFrom((com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest)other); + return mergeFrom((com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest other) { - if (other == com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest other) { + if (other + == com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -599,7 +670,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -611,19 +684,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the connection to update, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -632,21 +709,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the connection to update, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -654,57 +734,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the connection to update, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the connection to update, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Name of the connection to update, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + 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; @@ -712,39 +805,58 @@ public Builder setNameBytes( private com.google.cloud.bigquery.connection.v1.Connection connection_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.Connection, com.google.cloud.bigquery.connection.v1.Connection.Builder, com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder> connectionBuilder_; + com.google.cloud.bigquery.connection.v1.Connection, + com.google.cloud.bigquery.connection.v1.Connection.Builder, + com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder> + connectionBuilder_; /** + * + * *
      * Required. Connection containing the updated fields.
      * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connection field is set. */ public boolean hasConnection() { return connectionBuilder_ != null || connection_ != null; } /** + * + * *
      * Required. Connection containing the updated fields.
      * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connection. */ public com.google.cloud.bigquery.connection.v1.Connection getConnection() { if (connectionBuilder_ == null) { - return connection_ == null ? com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() : connection_; + return connection_ == null + ? com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() + : connection_; } else { return connectionBuilder_.getMessage(); } } /** + * + * *
      * Required. Connection containing the updated fields.
      * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConnection(com.google.cloud.bigquery.connection.v1.Connection value) { if (connectionBuilder_ == null) { @@ -760,11 +872,15 @@ public Builder setConnection(com.google.cloud.bigquery.connection.v1.Connection return this; } /** + * + * *
      * Required. Connection containing the updated fields.
      * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConnection( com.google.cloud.bigquery.connection.v1.Connection.Builder builderForValue) { @@ -778,17 +894,23 @@ public Builder setConnection( return this; } /** + * + * *
      * Required. Connection containing the updated fields.
      * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConnection(com.google.cloud.bigquery.connection.v1.Connection value) { if (connectionBuilder_ == null) { if (connection_ != null) { connection_ = - com.google.cloud.bigquery.connection.v1.Connection.newBuilder(connection_).mergeFrom(value).buildPartial(); + com.google.cloud.bigquery.connection.v1.Connection.newBuilder(connection_) + .mergeFrom(value) + .buildPartial(); } else { connection_ = value; } @@ -800,11 +922,15 @@ public Builder mergeConnection(com.google.cloud.bigquery.connection.v1.Connectio return this; } /** + * + * *
      * Required. Connection containing the updated fields.
      * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConnection() { if (connectionBuilder_ == null) { @@ -818,48 +944,64 @@ public Builder clearConnection() { return this; } /** + * + * *
      * Required. Connection containing the updated fields.
      * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.bigquery.connection.v1.Connection.Builder getConnectionBuilder() { - + onChanged(); return getConnectionFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Connection containing the updated fields.
      * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnectionOrBuilder() { if (connectionBuilder_ != null) { return connectionBuilder_.getMessageOrBuilder(); } else { - return connection_ == null ? - com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() : connection_; + return connection_ == null + ? com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() + : connection_; } } /** + * + * *
      * Required. Connection containing the updated fields.
      * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.Connection, com.google.cloud.bigquery.connection.v1.Connection.Builder, com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder> + com.google.cloud.bigquery.connection.v1.Connection, + com.google.cloud.bigquery.connection.v1.Connection.Builder, + com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder> getConnectionFieldBuilder() { if (connectionBuilder_ == null) { - connectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.Connection, com.google.cloud.bigquery.connection.v1.Connection.Builder, com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder>( - getConnection(), - getParentForChildren(), - isClean()); + connectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.Connection, + com.google.cloud.bigquery.connection.v1.Connection.Builder, + com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder>( + getConnection(), getParentForChildren(), isClean()); connection_ = null; } return connectionBuilder_; @@ -867,39 +1009,55 @@ public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnection private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -915,14 +1073,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -933,17 +1093,20 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -955,11 +1118,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -973,55 +1139,68 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1031,30 +1210,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.UpdateConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.UpdateConnectionRequest) - private static final com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest(); } - public static com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateConnectionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateConnectionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1066,9 +1247,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequestOrBuilder.java b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequestOrBuilder.java rename to proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequestOrBuilder.java index 60267c6c..3ef85f0d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequestOrBuilder.java +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequestOrBuilder.java @@ -1,85 +1,135 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; -public interface UpdateConnectionRequestOrBuilder extends +public interface UpdateConnectionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.UpdateConnectionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the connection to update, for example:
    * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Name of the connection to update, for example:
    * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. Connection containing the updated fields.
    * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connection field is set. */ boolean hasConnection(); /** + * + * *
    * Required. Connection containing the updated fields.
    * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connection. */ com.google.cloud.bigquery.connection.v1.Connection getConnection(); /** + * + * *
    * Required. Connection containing the updated fields.
    * 
* - * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnectionOrBuilder(); /** + * + * *
    * Required. Update mask for the connection fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Update mask for the connection fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Update mask for the connection fields to be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto b/proto-google-cloud-bigqueryconnection-v1/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto rename to proto-google-cloud-bigqueryconnection-v1/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionName.java b/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionName.java rename to proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java b/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java similarity index 59% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java rename to proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java index 1f1c7864..881474a1 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java +++ b/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java @@ -1,3 +1,18 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1beta1/connection.proto @@ -5,104 +20,135 @@ public final class ConnectionProto { private ConnectionProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } - public interface CreateConnectionRequestOrBuilder extends + + public interface CreateConnectionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1beta1.CreateConnectionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. Parent resource name.
      * Must be in the format `projects/{project_id}/locations/{location_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
      * Required. Parent resource name.
      * Must be in the format `projects/{project_id}/locations/{location_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
      * Optional. Connection id that should be assigned to the created connection.
      * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The connectionId. */ java.lang.String getConnectionId(); /** + * + * *
      * Optional. Connection id that should be assigned to the created connection.
      * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for connectionId. */ - com.google.protobuf.ByteString - getConnectionIdBytes(); + com.google.protobuf.ByteString getConnectionIdBytes(); /** + * + * *
      * Required. Connection to create.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connection field is set. */ boolean hasConnection(); /** + * + * *
      * Required. Connection to create.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connection. */ com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConnection(); /** + * + * *
      * Required. Connection to create.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder getConnectionOrBuilder(); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder + getConnectionOrBuilder(); } /** + * + * *
    * The request for [ConnectionService.CreateConnection][google.cloud.bigquery.connection.v1beta1.ConnectionService.CreateConnection].
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.CreateConnectionRequest} */ - public static final class CreateConnectionRequest extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class CreateConnectionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1beta1.CreateConnectionRequest) CreateConnectionRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateConnectionRequest.newBuilder() to construct. private CreateConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateConnectionRequest() { parent_ = ""; connectionId_ = ""; @@ -110,16 +156,15 @@ private CreateConnectionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateConnectionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateConnectionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -138,38 +183,46 @@ private CreateConnectionRequest( 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(); - connectionId_ = s; - break; - } - case 26: { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder subBuilder = null; - if (connection_ != null) { - subBuilder = connection_.toBuilder(); + connectionId_ = s; + break; } - connection_ = input.readMessage(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(connection_); - connection_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder + subBuilder = null; + if (connection_ != null) { + subBuilder = connection_.toBuilder(); + } + connection_ = + input.readMessage( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(connection_); + connection_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -177,35 +230,44 @@ private CreateConnectionRequest( } 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.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest.Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest + .class, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest + .Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
      * Required. Parent resource name.
      * Must be in the format `projects/{project_id}/locations/{location_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -214,30 +276,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. Parent resource name.
      * Must be in the format `projects/{project_id}/locations/{location_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -248,11 +312,14 @@ public java.lang.String getParent() { public static final int CONNECTION_ID_FIELD_NUMBER = 2; private volatile java.lang.Object connectionId_; /** + * + * *
      * Optional. Connection id that should be assigned to the created connection.
      * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The connectionId. */ @java.lang.Override @@ -261,29 +328,29 @@ public java.lang.String getConnectionId() { 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(); connectionId_ = s; return s; } } /** + * + * *
      * Optional. Connection id that should be assigned to the created connection.
      * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for connectionId. */ @java.lang.Override - public com.google.protobuf.ByteString - getConnectionIdBytes() { + public com.google.protobuf.ByteString getConnectionIdBytes() { java.lang.Object ref = connectionId_; 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); connectionId_ = b; return b; } else { @@ -294,11 +361,16 @@ public java.lang.String getConnectionId() { public static final int CONNECTION_FIELD_NUMBER = 3; private com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection connection_; /** + * + * *
      * Required. Connection to create.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connection field is set. */ @java.lang.Override @@ -306,30 +378,44 @@ public boolean hasConnection() { return connection_ != null; } /** + * + * *
      * Required. Connection to create.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connection. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConnection() { - return connection_ == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance() : connection_; + return connection_ == null + ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection + .getDefaultInstance() + : connection_; } /** + * + * *
      * Required. Connection to create.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder getConnectionOrBuilder() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder + getConnectionOrBuilder() { return getConnection(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,8 +427,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_); } @@ -368,8 +453,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, connectionId_); } if (connection_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getConnection()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConnection()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -379,21 +463,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest)) { + if (!(obj + instanceof + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest other = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest) obj; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest other = + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest) + obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getConnectionId() - .equals(other.getConnectionId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getConnectionId().equals(other.getConnectionId())) return false; if (hasConnection() != other.hasConnection()) return false; if (hasConnection()) { - if (!getConnection() - .equals(other.getConnection())) return false; + if (!getConnection().equals(other.getConnection())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -419,88 +504,114 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CreateConnectionRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CreateConnectionRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CreateConnectionRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CreateConnectionRequest + 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.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CreateConnectionRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CreateConnectionRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CreateConnectionRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CreateConnectionRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CreateConnectionRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CreateConnectionRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CreateConnectionRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CreateConnectionRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + 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.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest + 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 @@ -510,44 +621,52 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The request for [ConnectionService.CreateConnection][google.cloud.bigquery.connection.v1beta1.ConnectionService.CreateConnection].
      * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.CreateConnectionRequest} */ - 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.bigquery.connection.v1beta1.CreateConnectionRequest) - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_descriptor; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CreateConnectionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest.Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest + .class, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest + .Builder.class); } - // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest.newBuilder() + // Construct using + // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -565,19 +684,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest.getDefaultInstance(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest build() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest result = buildPartial(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest + build() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -585,8 +708,12 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnec } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest buildPartial() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest result = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest(this); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest + buildPartial() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest + result = + new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CreateConnectionRequest(this); result.parent_ = parent_; result.connectionId_ = connectionId_; if (connectionBuilder_ == null) { @@ -602,46 +729,57 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnec 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.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest) { - return mergeFrom((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest)other); + if (other + instanceof + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest) { + return mergeFrom( + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest other) { - if (other == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest + other) { + if (other + == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -668,11 +806,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest parsedMessage = null; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -684,19 +825,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
        * Required. Parent resource name.
        * Must be in the format `projects/{project_id}/locations/{location_id}`
        * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -705,21 +850,24 @@ public java.lang.String getParent() { } } /** + * + * *
        * Required. Parent resource name.
        * Must be in the format `projects/{project_id}/locations/{location_id}`
        * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -727,57 +875,70 @@ public java.lang.String getParent() { } } /** + * + * *
        * Required. Parent resource name.
        * Must be in the format `projects/{project_id}/locations/{location_id}`
        * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
        * Required. Parent resource name.
        * Must be in the format `projects/{project_id}/locations/{location_id}`
        * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
        * Required. Parent resource name.
        * Must be in the format `projects/{project_id}/locations/{location_id}`
        * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -785,18 +946,20 @@ public Builder setParentBytes( private java.lang.Object connectionId_ = ""; /** + * + * *
        * Optional. Connection id that should be assigned to the created connection.
        * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The connectionId. */ public java.lang.String getConnectionId() { java.lang.Object ref = connectionId_; 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(); connectionId_ = s; return s; @@ -805,20 +968,21 @@ public java.lang.String getConnectionId() { } } /** + * + * *
        * Optional. Connection id that should be assigned to the created connection.
        * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for connectionId. */ - public com.google.protobuf.ByteString - getConnectionIdBytes() { + public com.google.protobuf.ByteString getConnectionIdBytes() { java.lang.Object ref = connectionId_; 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); connectionId_ = b; return b; } else { @@ -826,54 +990,61 @@ public java.lang.String getConnectionId() { } } /** + * + * *
        * Optional. Connection id that should be assigned to the created connection.
        * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The connectionId to set. * @return This builder for chaining. */ - public Builder setConnectionId( - java.lang.String value) { + public Builder setConnectionId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + connectionId_ = value; onChanged(); return this; } /** + * + * *
        * Optional. Connection id that should be assigned to the created connection.
        * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearConnectionId() { - + connectionId_ = getDefaultInstance().getConnectionId(); onChanged(); return this; } /** + * + * *
        * Optional. Connection id that should be assigned to the created connection.
        * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for connectionId to set. * @return This builder for chaining. */ - public Builder setConnectionIdBytes( - com.google.protobuf.ByteString value) { + public Builder setConnectionIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + connectionId_ = value; onChanged(); return this; @@ -881,41 +1052,63 @@ public Builder setConnectionIdBytes( private com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection connection_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> connectionBuilder_; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> + connectionBuilder_; /** + * + * *
        * Required. Connection to create.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connection field is set. */ public boolean hasConnection() { return connectionBuilder_ != null || connection_ != null; } /** + * + * *
        * Required. Connection to create.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connection. */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConnection() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection + getConnection() { if (connectionBuilder_ == null) { - return connection_ == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance() : connection_; + return connection_ == null + ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection + .getDefaultInstance() + : connection_; } else { return connectionBuilder_.getMessage(); } } /** + * + * *
        * Required. Connection to create.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection value) { + public Builder setConnection( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection value) { if (connectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -929,14 +1122,19 @@ public Builder setConnection(com.google.cloud.bigquery.connection.v1beta1.Connec return this; } /** + * + * *
        * Required. Connection to create.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder builderForValue) { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder + builderForValue) { if (connectionBuilder_ == null) { connection_ = builderForValue.build(); onChanged(); @@ -947,17 +1145,25 @@ public Builder setConnection( return this; } /** + * + * *
        * Required. Connection to create.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection value) { + public Builder mergeConnection( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection value) { if (connectionBuilder_ == null) { if (connection_ != null) { connection_ = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.newBuilder(connection_).mergeFrom(value).buildPartial(); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.newBuilder( + connection_) + .mergeFrom(value) + .buildPartial(); } else { connection_ = value; } @@ -969,11 +1175,15 @@ public Builder mergeConnection(com.google.cloud.bigquery.connection.v1beta1.Conn return this; } /** + * + * *
        * Required. Connection to create.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConnection() { if (connectionBuilder_ == null) { @@ -987,52 +1197,72 @@ public Builder clearConnection() { return this; } /** + * + * *
        * Required. Connection to create.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder getConnectionBuilder() { - + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder + getConnectionBuilder() { + onChanged(); return getConnectionFieldBuilder().getBuilder(); } /** + * + * *
        * Required. Connection to create.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder getConnectionOrBuilder() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder + getConnectionOrBuilder() { if (connectionBuilder_ != null) { return connectionBuilder_.getMessageOrBuilder(); } else { - return connection_ == null ? - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance() : connection_; + return connection_ == null + ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection + .getDefaultInstance() + : connection_; } } /** + * + * *
        * Required. Connection to create.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> getConnectionFieldBuilder() { if (connectionBuilder_ == null) { - connectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder>( - getConnection(), - getParentForChildren(), - isClean()); + connectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder>( + getConnection(), getParentForChildren(), isClean()); connection_ = null; } return connectionBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1045,30 +1275,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1beta1.CreateConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1beta1.CreateConnectionRequest) - private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CreateConnectionRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CreateConnectionRequest(); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CreateConnectionRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateConnectionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateConnectionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1080,70 +1316,82 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface GetConnectionRequestOrBuilder extends + public interface GetConnectionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1beta1.GetConnectionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. Name of the requested connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * Required. Name of the requested connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } /** + * + * *
    * The request for [ConnectionService.GetConnection][google.cloud.bigquery.connection.v1beta1.ConnectionService.GetConnection].
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.GetConnectionRequest} */ - public static final class GetConnectionRequest extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GetConnectionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1beta1.GetConnectionRequest) GetConnectionRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetConnectionRequest.newBuilder() to construct. private GetConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetConnectionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetConnectionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetConnectionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1162,19 +1410,20 @@ private GetConnectionRequest( 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) { @@ -1182,35 +1431,44 @@ private GetConnectionRequest( } 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.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest + .class, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest + .Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
      * Required. Name of the requested connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -1219,30 +1477,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
      * Required. Name of the requested connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1251,6 +1511,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1262,8 +1523,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_); } @@ -1287,15 +1547,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.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest)) { + if (!(obj + instanceof + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest other = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest) obj; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest other = + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1314,88 +1576,102 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest + 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.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + 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.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest + 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 @@ -1405,44 +1681,51 @@ protected Builder newBuilderForType( return builder; } /** - *
+     *
+     *
+     * 
      * The request for [ConnectionService.GetConnection][google.cloud.bigquery.connection.v1beta1.ConnectionService.GetConnection].
      * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.GetConnectionRequest} */ - 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.bigquery.connection.v1beta1.GetConnectionRequest) com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest + .class, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest + .Builder.class); } - // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.newBuilder() + // Construct using + // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1452,19 +1735,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.getDefaultInstance(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest build() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest result = buildPartial(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest + build() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1472,8 +1759,11 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectio } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest buildPartial() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest result = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest(this); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest + buildPartial() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest result = + new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest( + this); result.name_ = name_; onBuilt(); return result; @@ -1483,46 +1773,56 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectio 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.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest) { - return mergeFrom((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest)other); + if (other + instanceof + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest) { + return mergeFrom( + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest other) { - if (other == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest other) { + if (other + == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1542,11 +1842,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest parsedMessage = null; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1558,19 +1861,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
        * Required. Name of the requested connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1579,21 +1886,24 @@ public java.lang.String getName() { } } /** + * + * *
        * Required. Name of the requested connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1601,61 +1911,75 @@ public java.lang.String getName() { } } /** + * + * *
        * Required. Name of the requested connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
        * Required. Name of the requested connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
        * Required. Name of the requested connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + 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) { @@ -1668,30 +1992,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1beta1.GetConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1beta1.GetConnectionRequest) - private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .GetConnectionRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest(); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetConnectionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetConnectionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1703,101 +2031,130 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ListConnectionsRequestOrBuilder extends + public interface ListConnectionsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1beta1.ListConnectionsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. Parent resource name.
      * Must be in the form: `projects/{project_id}/locations/{location_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
      * Required. Parent resource name.
      * Must be in the form: `projects/{project_id}/locations/{location_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
      * Required. Maximum number of results per page.
      * 
* - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the maxResults field is set. */ boolean hasMaxResults(); /** + * + * *
      * Required. Maximum number of results per page.
      * 
* - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The maxResults. */ com.google.protobuf.UInt32Value getMaxResults(); /** + * + * *
      * Required. Maximum number of results per page.
      * 
* - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.UInt32ValueOrBuilder getMaxResultsOrBuilder(); /** + * + * *
      * Page token.
      * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
      * Page token.
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } /** + * + * *
    * The request for [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1beta1.ConnectionService.ListConnections].
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.ListConnectionsRequest} */ - public static final class ListConnectionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ListConnectionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1beta1.ListConnectionsRequest) ListConnectionsRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListConnectionsRequest.newBuilder() to construct. private ListConnectionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListConnectionsRequest() { parent_ = ""; pageToken_ = ""; @@ -1805,16 +2162,15 @@ private ListConnectionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListConnectionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListConnectionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1833,38 +2189,42 @@ private ListConnectionsRequest( 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: { - com.google.protobuf.UInt32Value.Builder subBuilder = null; - if (maxResults_ != null) { - subBuilder = maxResults_.toBuilder(); + parent_ = s; + break; } - maxResults_ = input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maxResults_); - maxResults_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.UInt32Value.Builder subBuilder = null; + if (maxResults_ != null) { + subBuilder = maxResults_.toBuilder(); + } + maxResults_ = + input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxResults_); + maxResults_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - 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) { @@ -1872,35 +2232,44 @@ private ListConnectionsRequest( } 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.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest + .class, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest + .Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
      * Required. Parent resource name.
      * Must be in the form: `projects/{project_id}/locations/{location_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -1909,30 +2278,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. Parent resource name.
      * Must be in the form: `projects/{project_id}/locations/{location_id}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1943,11 +2314,15 @@ public java.lang.String getParent() { public static final int MAX_RESULTS_FIELD_NUMBER = 2; private com.google.protobuf.UInt32Value maxResults_; /** + * + * *
      * Required. Maximum number of results per page.
      * 
* - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the maxResults field is set. */ @java.lang.Override @@ -1955,23 +2330,32 @@ public boolean hasMaxResults() { return maxResults_ != null; } /** + * + * *
      * Required. Maximum number of results per page.
      * 
* - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The maxResults. */ @java.lang.Override public com.google.protobuf.UInt32Value getMaxResults() { - return maxResults_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxResults_; + return maxResults_ == null + ? com.google.protobuf.UInt32Value.getDefaultInstance() + : maxResults_; } /** + * + * *
      * Required. Maximum number of results per page.
      * 
* - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.UInt32ValueOrBuilder getMaxResultsOrBuilder() { @@ -1981,11 +2365,14 @@ public com.google.protobuf.UInt32ValueOrBuilder getMaxResultsOrBuilder() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
      * Page token.
      * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -1994,29 +2381,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; } } /** + * + * *
      * Page 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 { @@ -2025,6 +2412,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2036,8 +2424,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_); } @@ -2060,8 +2447,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (maxResults_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMaxResults()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxResults()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -2074,22 +2460,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest)) { + if (!(obj + instanceof + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest other = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest) obj; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest other = + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasMaxResults() != other.hasMaxResults()) return false; if (hasMaxResults()) { - if (!getMaxResults() - .equals(other.getMaxResults())) return false; + if (!getMaxResults().equals(other.getMaxResults())) return false; } - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2114,88 +2500,114 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsRequest + 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.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + 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.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest + 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 @@ -2205,44 +2617,52 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The request for [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1beta1.ConnectionService.ListConnections].
      * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.ListConnectionsRequest} */ - 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.bigquery.connection.v1beta1.ListConnectionsRequest) - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_descriptor; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest + .class, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest + .Builder.class); } - // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.newBuilder() + // Construct using + // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -2260,19 +2680,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.getDefaultInstance(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest build() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest result = buildPartial(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest + build() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2280,8 +2704,11 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnecti } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest buildPartial() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest result = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest(this); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest + buildPartial() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest result = + new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest( + this); result.parent_ = parent_; if (maxResultsBuilder_ == null) { result.maxResults_ = maxResults_; @@ -2297,46 +2724,57 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnecti 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.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest) { - return mergeFrom((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest)other); + if (other + instanceof + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest) { + return mergeFrom( + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest other) { - if (other == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest + other) { + if (other + == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -2363,11 +2801,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest parsedMessage = null; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2379,19 +2820,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
        * Required. Parent resource name.
        * Must be in the form: `projects/{project_id}/locations/{location_id}`
        * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -2400,21 +2845,24 @@ public java.lang.String getParent() { } } /** + * + * *
        * Required. Parent resource name.
        * Must be in the form: `projects/{project_id}/locations/{location_id}`
        * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -2422,57 +2870,70 @@ public java.lang.String getParent() { } } /** + * + * *
        * Required. Parent resource name.
        * Must be in the form: `projects/{project_id}/locations/{location_id}`
        * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
        * Required. Parent resource name.
        * Must be in the form: `projects/{project_id}/locations/{location_id}`
        * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
        * Required. Parent resource name.
        * Must be in the form: `projects/{project_id}/locations/{location_id}`
        * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -2480,39 +2941,58 @@ public Builder setParentBytes( private com.google.protobuf.UInt32Value maxResults_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> maxResultsBuilder_; + com.google.protobuf.UInt32Value, + com.google.protobuf.UInt32Value.Builder, + com.google.protobuf.UInt32ValueOrBuilder> + maxResultsBuilder_; /** + * + * *
        * Required. Maximum number of results per page.
        * 
* - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the maxResults field is set. */ public boolean hasMaxResults() { return maxResultsBuilder_ != null || maxResults_ != null; } /** + * + * *
        * Required. Maximum number of results per page.
        * 
* - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The maxResults. */ public com.google.protobuf.UInt32Value getMaxResults() { if (maxResultsBuilder_ == null) { - return maxResults_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxResults_; + return maxResults_ == null + ? com.google.protobuf.UInt32Value.getDefaultInstance() + : maxResults_; } else { return maxResultsBuilder_.getMessage(); } } /** + * + * *
        * Required. Maximum number of results per page.
        * 
* - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMaxResults(com.google.protobuf.UInt32Value value) { if (maxResultsBuilder_ == null) { @@ -2528,14 +3008,17 @@ public Builder setMaxResults(com.google.protobuf.UInt32Value value) { return this; } /** + * + * *
        * Required. Maximum number of results per page.
        * 
* - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setMaxResults( - com.google.protobuf.UInt32Value.Builder builderForValue) { + public Builder setMaxResults(com.google.protobuf.UInt32Value.Builder builderForValue) { if (maxResultsBuilder_ == null) { maxResults_ = builderForValue.build(); onChanged(); @@ -2546,17 +3029,23 @@ public Builder setMaxResults( return this; } /** + * + * *
        * Required. Maximum number of results per page.
        * 
* - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeMaxResults(com.google.protobuf.UInt32Value value) { if (maxResultsBuilder_ == null) { if (maxResults_ != null) { maxResults_ = - com.google.protobuf.UInt32Value.newBuilder(maxResults_).mergeFrom(value).buildPartial(); + com.google.protobuf.UInt32Value.newBuilder(maxResults_) + .mergeFrom(value) + .buildPartial(); } else { maxResults_ = value; } @@ -2568,11 +3057,15 @@ public Builder mergeMaxResults(com.google.protobuf.UInt32Value value) { return this; } /** + * + * *
        * Required. Maximum number of results per page.
        * 
* - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearMaxResults() { if (maxResultsBuilder_ == null) { @@ -2586,48 +3079,64 @@ public Builder clearMaxResults() { return this; } /** + * + * *
        * Required. Maximum number of results per page.
        * 
* - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.UInt32Value.Builder getMaxResultsBuilder() { - + onChanged(); return getMaxResultsFieldBuilder().getBuilder(); } /** + * + * *
        * Required. Maximum number of results per page.
        * 
* - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.UInt32ValueOrBuilder getMaxResultsOrBuilder() { if (maxResultsBuilder_ != null) { return maxResultsBuilder_.getMessageOrBuilder(); } else { - return maxResults_ == null ? - com.google.protobuf.UInt32Value.getDefaultInstance() : maxResults_; + return maxResults_ == null + ? com.google.protobuf.UInt32Value.getDefaultInstance() + : maxResults_; } } /** + * + * *
        * Required. Maximum number of results per page.
        * 
* - * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.protobuf.UInt32Value max_results = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> + com.google.protobuf.UInt32Value, + com.google.protobuf.UInt32Value.Builder, + com.google.protobuf.UInt32ValueOrBuilder> getMaxResultsFieldBuilder() { if (maxResultsBuilder_ == null) { - maxResultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( - getMaxResults(), - getParentForChildren(), - isClean()); + maxResultsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.UInt32Value, + com.google.protobuf.UInt32Value.Builder, + com.google.protobuf.UInt32ValueOrBuilder>( + getMaxResults(), getParentForChildren(), isClean()); maxResults_ = null; } return maxResultsBuilder_; @@ -2635,18 +3144,20 @@ public com.google.protobuf.UInt32ValueOrBuilder getMaxResultsOrBuilder() { private java.lang.Object pageToken_ = ""; /** + * + * *
        * Page 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; @@ -2655,20 +3166,21 @@ public java.lang.String getPageToken() { } } /** + * + * *
        * Page 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 { @@ -2676,58 +3188,66 @@ public java.lang.String getPageToken() { } } /** + * + * *
        * Page 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; } /** + * + * *
        * Page token.
        * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
        * Page 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) { @@ -2740,30 +3260,35 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1beta1.ListConnectionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1beta1.ListConnectionsRequest) - private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest(); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListConnectionsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListConnectionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2775,54 +3300,67 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ListConnectionsResponseOrBuilder extends + public interface ListConnectionsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1beta1.ListConnectionsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Next page token.
      * 
* * string next_page_token = 1; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
      * Next page token.
      * 
* * string next_page_token = 1; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
      * List of connections.
      * 
* * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ - java.util.List + java.util.List getConnectionsList(); /** + * + * *
      * List of connections.
      * 
* * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConnections(int index); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConnections( + int index); /** + * + * *
      * List of connections.
      * 
@@ -2831,40 +3369,49 @@ public interface ListConnectionsResponseOrBuilder extends */ int getConnectionsCount(); /** + * + * *
      * List of connections.
      * 
* * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ - java.util.List + java.util.List< + ? extends + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> getConnectionsOrBuilderList(); /** + * + * *
      * List of connections.
      * 
* * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder getConnectionsOrBuilder( - int index); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder + getConnectionsOrBuilder(int index); } /** + * + * *
    * The response for [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1beta1.ConnectionService.ListConnections].
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.ListConnectionsResponse} */ - public static final class ListConnectionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ListConnectionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1beta1.ListConnectionsResponse) ListConnectionsResponseOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListConnectionsResponse.newBuilder() to construct. private ListConnectionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListConnectionsResponse() { nextPageToken_ = ""; connections_ = java.util.Collections.emptyList(); @@ -2872,16 +3419,15 @@ private ListConnectionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListConnectionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListConnectionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -2901,28 +3447,36 @@ private ListConnectionsResponse( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - connections_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + nextPageToken_ = s; + break; } - connections_.add( - input.readMessage(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + connections_ = + new java.util.ArrayList< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .Connection>(); + mutable_bitField0_ |= 0x00000001; + } + connections_.add( + input.readMessage( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection + .parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2930,8 +3484,7 @@ private ListConnectionsResponse( } 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)) { connections_ = java.util.Collections.unmodifiableList(connections_); @@ -2940,27 +3493,35 @@ private ListConnectionsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse.Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse + .class, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse + .Builder.class); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 1; private volatile java.lang.Object nextPageToken_; /** + * + * *
      * Next page token.
      * 
* * string next_page_token = 1; + * * @return The nextPageToken. */ @java.lang.Override @@ -2969,29 +3530,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; } } /** + * + * *
      * Next page token.
      * 
* * string next_page_token = 1; + * * @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 { @@ -3000,8 +3561,11 @@ public java.lang.String getNextPageToken() { } public static final int CONNECTIONS_FIELD_NUMBER = 2; - private java.util.List connections_; + private java.util.List + connections_; /** + * + * *
      * List of connections.
      * 
@@ -3009,10 +3573,13 @@ public java.lang.String getNextPageToken() { * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ @java.lang.Override - public java.util.List getConnectionsList() { + public java.util.List + getConnectionsList() { return connections_; } /** + * + * *
      * List of connections.
      * 
@@ -3020,11 +3587,15 @@ public java.util.Listrepeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> getConnectionsOrBuilderList() { return connections_; } /** + * + * *
      * List of connections.
      * 
@@ -3036,6 +3607,8 @@ public int getConnectionsCount() { return connections_.size(); } /** + * + * *
      * List of connections.
      * 
@@ -3043,10 +3616,13 @@ public int getConnectionsCount() { * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConnections(int index) { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConnections( + int index) { return connections_.get(index); } /** + * + * *
      * List of connections.
      * 
@@ -3054,12 +3630,13 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection g * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder getConnectionsOrBuilder( - int index) { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder + getConnectionsOrBuilder(int index) { return connections_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3071,8 +3648,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(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nextPageToken_); } @@ -3092,8 +3668,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nextPageToken_); } for (int i = 0; i < connections_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, connections_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, connections_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3103,17 +3678,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.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse)) { + if (!(obj + instanceof + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse other = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse) obj; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse other = + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse) + obj; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getConnectionsList() - .equals(other.getConnectionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getConnectionsList().equals(other.getConnectionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3136,88 +3713,114 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsResponse + 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.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + 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.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse + 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 @@ -3227,45 +3830,54 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The response for [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1beta1.ConnectionService.ListConnections].
      * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.ListConnectionsResponse} */ - 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.bigquery.connection.v1beta1.ListConnectionsResponse) - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_descriptor; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse.Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse + .class, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse + .Builder.class); } - // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse.newBuilder() + // Construct using + // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getConnectionsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -3281,19 +3893,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse getDefaultInstanceForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse.getDefaultInstance(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse + getDefaultInstanceForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse build() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse result = buildPartial(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse + build() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3301,8 +3917,12 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnecti } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse buildPartial() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse result = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse(this); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse + buildPartial() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse + result = + new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsResponse(this); int from_bitField0_ = bitField0_; result.nextPageToken_ = nextPageToken_; if (connectionsBuilder_ == null) { @@ -3322,46 +3942,57 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnecti 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.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse) { - return mergeFrom((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse)other); + if (other + instanceof + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse) { + return mergeFrom( + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse other) { - if (other == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse + other) { + if (other + == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse + .getDefaultInstance()) return this; if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; onChanged(); @@ -3384,9 +4015,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.connection.v1beta1.Connection connectionsBuilder_ = null; connections_ = other.connections_; bitField0_ = (bitField0_ & ~0x00000001); - connectionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConnectionsFieldBuilder() : null; + connectionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConnectionsFieldBuilder() + : null; } else { connectionsBuilder_.addAllMessages(other.connections_); } @@ -3407,11 +4039,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse parsedMessage = null; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3420,22 +4055,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object nextPageToken_ = ""; /** + * + * *
        * Next page token.
        * 
* * string next_page_token = 1; + * * @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; @@ -3444,20 +4082,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
        * Next page token.
        * 
* * string next_page_token = 1; + * * @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 { @@ -3465,79 +4104,97 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
        * Next page token.
        * 
* * string next_page_token = 1; + * * @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; } /** + * + * *
        * Next page token.
        * 
* * string next_page_token = 1; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
        * Next page token.
        * 
* * string next_page_token = 1; + * * @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; } - private java.util.List connections_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + connections_ = java.util.Collections.emptyList(); + private void ensureConnectionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - connections_ = new java.util.ArrayList(connections_); + connections_ = + new java.util.ArrayList< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection>( + connections_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> connectionsBuilder_; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> + connectionsBuilder_; /** + * + * *
        * List of connections.
        * 
* * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ - public java.util.List getConnectionsList() { + public java.util.List + getConnectionsList() { if (connectionsBuilder_ == null) { return java.util.Collections.unmodifiableList(connections_); } else { @@ -3545,6 +4202,8 @@ public java.util.List * List of connections. *
@@ -3559,13 +4218,16 @@ public int getConnectionsCount() { } } /** + * + * *
        * List of connections.
        * 
* * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConnections(int index) { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConnections( + int index) { if (connectionsBuilder_ == null) { return connections_.get(index); } else { @@ -3573,6 +4235,8 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection g } } /** + * + * *
        * List of connections.
        * 
@@ -3580,7 +4244,8 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection g * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ public Builder setConnections( - int index, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection value) { + int index, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection value) { if (connectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3594,6 +4259,8 @@ public Builder setConnections( return this; } /** + * + * *
        * List of connections.
        * 
@@ -3601,7 +4268,9 @@ public Builder setConnections( * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ public Builder setConnections( - int index, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder builderForValue) { + int index, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder + builderForValue) { if (connectionsBuilder_ == null) { ensureConnectionsIsMutable(); connections_.set(index, builderForValue.build()); @@ -3612,13 +4281,16 @@ public Builder setConnections( return this; } /** + * + * *
        * List of connections.
        * 
* * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ - public Builder addConnections(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection value) { + public Builder addConnections( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection value) { if (connectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3632,6 +4304,8 @@ public Builder addConnections(com.google.cloud.bigquery.connection.v1beta1.Conne return this; } /** + * + * *
        * List of connections.
        * 
@@ -3639,7 +4313,8 @@ public Builder addConnections(com.google.cloud.bigquery.connection.v1beta1.Conne * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ public Builder addConnections( - int index, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection value) { + int index, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection value) { if (connectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3653,6 +4328,8 @@ public Builder addConnections( return this; } /** + * + * *
        * List of connections.
        * 
@@ -3660,7 +4337,8 @@ public Builder addConnections( * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ public Builder addConnections( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder builderForValue) { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder + builderForValue) { if (connectionsBuilder_ == null) { ensureConnectionsIsMutable(); connections_.add(builderForValue.build()); @@ -3671,6 +4349,8 @@ public Builder addConnections( return this; } /** + * + * *
        * List of connections.
        * 
@@ -3678,7 +4358,9 @@ public Builder addConnections( * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ public Builder addConnections( - int index, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder builderForValue) { + int index, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder + builderForValue) { if (connectionsBuilder_ == null) { ensureConnectionsIsMutable(); connections_.add(index, builderForValue.build()); @@ -3689,6 +4371,8 @@ public Builder addConnections( return this; } /** + * + * *
        * List of connections.
        * 
@@ -3696,11 +4380,12 @@ public Builder addConnections( * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ public Builder addAllConnections( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + values) { if (connectionsBuilder_ == null) { ensureConnectionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, connections_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connections_); onChanged(); } else { connectionsBuilder_.addAllMessages(values); @@ -3708,6 +4393,8 @@ public Builder addAllConnections( return this; } /** + * + * *
        * List of connections.
        * 
@@ -3725,6 +4412,8 @@ public Builder clearConnections() { return this; } /** + * + * *
        * List of connections.
        * 
@@ -3742,39 +4431,48 @@ public Builder removeConnections(int index) { return this; } /** + * + * *
        * List of connections.
        * 
* * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder getConnectionsBuilder( - int index) { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder + getConnectionsBuilder(int index) { return getConnectionsFieldBuilder().getBuilder(index); } /** + * + * *
        * List of connections.
        * 
* * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder getConnectionsOrBuilder( - int index) { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder + getConnectionsOrBuilder(int index) { if (connectionsBuilder_ == null) { - return connections_.get(index); } else { + return connections_.get(index); + } else { return connectionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * List of connections.
        * 
* * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ - public java.util.List - getConnectionsOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> + getConnectionsOrBuilderList() { if (connectionsBuilder_ != null) { return connectionsBuilder_.getMessageOrBuilderList(); } else { @@ -3782,45 +4480,64 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOr } } /** + * + * *
        * List of connections.
        * 
* * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder addConnectionsBuilder() { - return getConnectionsFieldBuilder().addBuilder( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance()); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder + addConnectionsBuilder() { + return getConnectionsFieldBuilder() + .addBuilder( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection + .getDefaultInstance()); } /** + * + * *
        * List of connections.
        * 
* * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder addConnectionsBuilder( - int index) { - return getConnectionsFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance()); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder + addConnectionsBuilder(int index) { + return getConnectionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection + .getDefaultInstance()); } /** + * + * *
        * List of connections.
        * 
* * repeated .google.cloud.bigquery.connection.v1beta1.Connection connections = 2; */ - public java.util.List - getConnectionsBuilderList() { + public java.util.List< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder> + getConnectionsBuilderList() { return getConnectionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> getConnectionsFieldBuilder() { if (connectionsBuilder_ == null) { - connectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder>( + connectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder>( connections_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3829,6 +4546,7 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.B } return connectionsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3841,30 +4559,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1beta1.ListConnectionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1beta1.ListConnectionsResponse) - private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsResponse(); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListConnectionsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListConnectionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3876,124 +4600,162 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface UpdateConnectionRequestOrBuilder extends + public interface UpdateConnectionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1beta1.UpdateConnectionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. Name of the connection to update, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * Required. Name of the connection to update, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
      * Required. Connection containing the updated fields.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connection field is set. */ boolean hasConnection(); /** + * + * *
      * Required. Connection containing the updated fields.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connection. */ com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConnection(); /** + * + * *
      * Required. Connection containing the updated fields.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder getConnectionOrBuilder(); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder + getConnectionOrBuilder(); /** + * + * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } /** + * + * *
    * The request for [ConnectionService.UpdateConnection][google.cloud.bigquery.connection.v1beta1.ConnectionService.UpdateConnection].
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.UpdateConnectionRequest} */ - public static final class UpdateConnectionRequest extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class UpdateConnectionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1beta1.UpdateConnectionRequest) UpdateConnectionRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateConnectionRequest.newBuilder() to construct. private UpdateConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateConnectionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateConnectionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateConnectionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -4012,45 +4774,54 @@ private UpdateConnectionRequest( 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: { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder subBuilder = null; - if (connection_ != null) { - subBuilder = connection_.toBuilder(); - } - connection_ = input.readMessage(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(connection_); - connection_ = subBuilder.buildPartial(); + name_ = s; + break; } - - break; - } - case 26: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); + case 18: + { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder + subBuilder = null; + if (connection_ != null) { + subBuilder = connection_.toBuilder(); + } + connection_ = + input.readMessage( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(connection_); + connection_ = subBuilder.buildPartial(); + } + + break; } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + case 26: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4058,35 +4829,44 @@ private UpdateConnectionRequest( } 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.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest.Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest + .class, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest + .Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
      * Required. Name of the connection to update, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -4095,30 +4875,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
      * Required. Name of the connection to update, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -4129,11 +4911,16 @@ public java.lang.String getName() { public static final int CONNECTION_FIELD_NUMBER = 2; private com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection connection_; /** + * + * *
      * Required. Connection containing the updated fields.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connection field is set. */ @java.lang.Override @@ -4141,37 +4928,54 @@ public boolean hasConnection() { return connection_ != null; } /** + * + * *
      * Required. Connection containing the updated fields.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connection. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConnection() { - return connection_ == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance() : connection_; + return connection_ == null + ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection + .getDefaultInstance() + : connection_; } /** + * + * *
      * Required. Connection containing the updated fields.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder getConnectionOrBuilder() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder + getConnectionOrBuilder() { return getConnection(); } public static final int UPDATE_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -4179,11 +4983,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -4191,11 +4999,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
      * Required. Update mask for the connection fields to be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -4203,6 +5014,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4214,8 +5026,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_); } @@ -4238,12 +5049,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (connection_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConnection()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConnection()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4253,24 +5062,25 @@ 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.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest)) { + if (!(obj + instanceof + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest other = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest) obj; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest other = + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest) + obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasConnection() != other.hasConnection()) return false; if (hasConnection()) { - if (!getConnection() - .equals(other.getConnection())) return false; + if (!getConnection().equals(other.getConnection())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -4298,88 +5108,114 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionRequest + 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.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + 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.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest + 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 @@ -4389,44 +5225,52 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The request for [ConnectionService.UpdateConnection][google.cloud.bigquery.connection.v1beta1.ConnectionService.UpdateConnection].
      * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.UpdateConnectionRequest} */ - 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.bigquery.connection.v1beta1.UpdateConnectionRequest) - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_descriptor; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest.Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest + .class, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest + .Builder.class); } - // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest.newBuilder() + // Construct using + // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -4448,19 +5292,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest.getDefaultInstance(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest build() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest result = buildPartial(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest + build() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4468,8 +5316,12 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnec } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest buildPartial() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest result = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest(this); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest + buildPartial() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest + result = + new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionRequest(this); result.name_ = name_; if (connectionBuilder_ == null) { result.connection_ = connection_; @@ -4489,46 +5341,57 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnec 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.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest) { - return mergeFrom((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest)other); + if (other + instanceof + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest) { + return mergeFrom( + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest other) { - if (other == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest + other) { + if (other + == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -4554,11 +5417,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest parsedMessage = null; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4570,19 +5436,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
        * Required. Name of the connection to update, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -4591,21 +5461,24 @@ public java.lang.String getName() { } } /** + * + * *
        * Required. Name of the connection to update, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -4613,57 +5486,70 @@ public java.lang.String getName() { } } /** + * + * *
        * Required. Name of the connection to update, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
        * Required. Name of the connection to update, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
        * Required. Name of the connection to update, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + 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; @@ -4671,41 +5557,63 @@ public Builder setNameBytes( private com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection connection_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> connectionBuilder_; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> + connectionBuilder_; /** + * + * *
        * Required. Connection containing the updated fields.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connection field is set. */ public boolean hasConnection() { return connectionBuilder_ != null || connection_ != null; } /** + * + * *
        * Required. Connection containing the updated fields.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connection. */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConnection() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection + getConnection() { if (connectionBuilder_ == null) { - return connection_ == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance() : connection_; + return connection_ == null + ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection + .getDefaultInstance() + : connection_; } else { return connectionBuilder_.getMessage(); } } /** + * + * *
        * Required. Connection containing the updated fields.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection value) { + public Builder setConnection( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection value) { if (connectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4719,14 +5627,19 @@ public Builder setConnection(com.google.cloud.bigquery.connection.v1beta1.Connec return this; } /** + * + * *
        * Required. Connection containing the updated fields.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder builderForValue) { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder + builderForValue) { if (connectionBuilder_ == null) { connection_ = builderForValue.build(); onChanged(); @@ -4737,17 +5650,25 @@ public Builder setConnection( return this; } /** + * + * *
        * Required. Connection containing the updated fields.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection value) { + public Builder mergeConnection( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection value) { if (connectionBuilder_ == null) { if (connection_ != null) { connection_ = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.newBuilder(connection_).mergeFrom(value).buildPartial(); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.newBuilder( + connection_) + .mergeFrom(value) + .buildPartial(); } else { connection_ = value; } @@ -4759,11 +5680,15 @@ public Builder mergeConnection(com.google.cloud.bigquery.connection.v1beta1.Conn return this; } /** + * + * *
        * Required. Connection containing the updated fields.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConnection() { if (connectionBuilder_ == null) { @@ -4777,48 +5702,67 @@ public Builder clearConnection() { return this; } /** + * + * *
        * Required. Connection containing the updated fields.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder getConnectionBuilder() { - + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder + getConnectionBuilder() { + onChanged(); return getConnectionFieldBuilder().getBuilder(); } /** + * + * *
        * Required. Connection containing the updated fields.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder getConnectionOrBuilder() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder + getConnectionOrBuilder() { if (connectionBuilder_ != null) { return connectionBuilder_.getMessageOrBuilder(); } else { - return connection_ == null ? - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance() : connection_; + return connection_ == null + ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection + .getDefaultInstance() + : connection_; } } /** + * + * *
        * Required. Connection containing the updated fields.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder> getConnectionFieldBuilder() { if (connectionBuilder_ == null) { - connectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder>( - getConnection(), - getParentForChildren(), - isClean()); + connectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder>( + getConnection(), getParentForChildren(), isClean()); connection_ = null; } return connectionBuilder_; @@ -4826,39 +5770,55 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOr private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
        * Required. Update mask for the connection fields to be updated.
        * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
        * Required. Update mask for the connection fields to be updated.
        * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
        * Required. Update mask for the connection fields to be updated.
        * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -4874,14 +5834,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
        * Required. Update mask for the connection fields to be updated.
        * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -4892,17 +5854,22 @@ public Builder setUpdateMask( return this; } /** + * + * *
        * Required. Update mask for the connection fields to be updated.
        * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_) + .mergeFrom(value) + .buildPartial(); } else { updateMask_ = value; } @@ -4914,11 +5881,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
        * Required. Update mask for the connection fields to be updated.
        * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -4932,52 +5902,66 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
        * Required. Update mask for the connection fields to be updated.
        * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
        * Required. Update mask for the connection fields to be updated.
        * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
        * Required. Update mask for the connection fields to be updated.
        * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4990,30 +5974,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1beta1.UpdateConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1beta1.UpdateConnectionRequest) - private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionRequest(); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateConnectionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateConnectionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5025,97 +6015,124 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface UpdateConnectionCredentialRequestOrBuilder extends + public interface UpdateConnectionCredentialRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1beta1.UpdateConnectionCredentialRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. Name of the connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}/credential`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * Required. Name of the connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}/credential`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
      * Required. Credential to use with the connection.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the credential field is set. */ boolean hasCredential(); /** + * + * *
      * Required. Credential to use with the connection.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The credential. */ - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential getCredential(); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + getCredential(); /** + * + * *
      * Required. Credential to use with the connection.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredentialOrBuilder getCredentialOrBuilder(); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredentialOrBuilder + getCredentialOrBuilder(); } /** + * + * *
    * The request for [ConnectionService.UpdateConnectionCredential][google.cloud.bigquery.connection.v1beta1.ConnectionService.UpdateConnectionCredential].
    * 
* - * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.UpdateConnectionCredentialRequest} + * Protobuf type {@code + * google.cloud.bigquery.connection.v1beta1.UpdateConnectionCredentialRequest} */ - public static final class UpdateConnectionCredentialRequest extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class UpdateConnectionCredentialRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1beta1.UpdateConnectionCredentialRequest) UpdateConnectionCredentialRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateConnectionCredentialRequest.newBuilder() to construct. - private UpdateConnectionCredentialRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateConnectionCredentialRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateConnectionCredentialRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateConnectionCredentialRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateConnectionCredentialRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -5134,32 +6151,40 @@ private UpdateConnectionCredentialRequest( 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: { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.Builder subBuilder = null; - if (credential_ != null) { - subBuilder = credential_.toBuilder(); + name_ = s; + break; } - credential_ = input.readMessage(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(credential_); - credential_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + .Builder + subBuilder = null; + if (credential_ != null) { + subBuilder = credential_.toBuilder(); + } + credential_ = + input.readMessage( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ConnectionCredential.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(credential_); + credential_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -5167,35 +6192,42 @@ private UpdateConnectionCredentialRequest( } 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.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest.Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest.class, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
      * Required. Name of the connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}/credential`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -5204,30 +6236,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
      * Required. Name of the connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}/credential`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -5236,13 +6268,19 @@ public java.lang.String getName() { } public static final int CREDENTIAL_FIELD_NUMBER = 2; - private com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential credential_; + private com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + credential_; /** + * + * *
      * Required. Credential to use with the connection.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the credential field is set. */ @java.lang.Override @@ -5250,30 +6288,46 @@ public boolean hasCredential() { return credential_ != null; } /** + * + * *
      * Required. Credential to use with the connection.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The credential. */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential getCredential() { - return credential_ == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.getDefaultInstance() : credential_; + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + getCredential() { + return credential_ == null + ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + .getDefaultInstance() + : credential_; } /** + * + * *
      * Required. Credential to use with the connection.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredentialOrBuilder getCredentialOrBuilder() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ConnectionCredentialOrBuilder + getCredentialOrBuilder() { return getCredential(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5285,8 +6339,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_); } @@ -5306,8 +6359,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (credential_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCredential()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCredential()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -5317,19 +6369,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.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest)) { + if (!(obj + instanceof + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest other = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest) obj; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest + other = + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest) + obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCredential() != other.hasCredential()) return false; if (hasCredential()) { - if (!getCredential() - .equals(other.getCredential())) return false; + if (!getCredential().equals(other.getCredential())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -5353,88 +6410,115 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest + 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.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + 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.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest + 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 @@ -5444,44 +6528,53 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The request for [ConnectionService.UpdateConnectionCredential][google.cloud.bigquery.connection.v1beta1.ConnectionService.UpdateConnectionCredential].
      * 
* - * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.UpdateConnectionCredentialRequest} + * Protobuf type {@code + * google.cloud.bigquery.connection.v1beta1.UpdateConnectionCredentialRequest} */ - 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.bigquery.connection.v1beta1.UpdateConnectionCredentialRequest) - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_descriptor; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest.Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest.class, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest.Builder.class); } - // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest.newBuilder() + // Construct using + // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -5497,19 +6590,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest.getDefaultInstance(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest build() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest result = buildPartial(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest + build() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -5517,8 +6617,14 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnec } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest buildPartial() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest result = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest(this); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest + buildPartial() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest + result = + new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest(this); result.name_ = name_; if (credentialBuilder_ == null) { result.credential_ = credential_; @@ -5533,46 +6639,60 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnec 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.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest) { - return mergeFrom((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest)other); + if (other + instanceof + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest) { + return mergeFrom( + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest other) { - if (other == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest + other) { + if (other + == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -5595,11 +6715,16 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest parsedMessage = null; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -5611,19 +6736,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
        * Required. Name of the connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}/credential`
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -5632,21 +6759,22 @@ public java.lang.String getName() { } } /** + * + * *
        * Required. Name of the connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}/credential`
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -5654,99 +6782,131 @@ public java.lang.String getName() { } } /** + * + * *
        * Required. Name of the connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}/credential`
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
        * Required. Name of the connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}/credential`
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
        * Required. Name of the connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}/credential`
        * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential credential_; + private com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + credential_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredentialOrBuilder> credentialBuilder_; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + .Builder, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ConnectionCredentialOrBuilder> + credentialBuilder_; /** + * + * *
        * Required. Credential to use with the connection.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the credential field is set. */ public boolean hasCredential() { return credentialBuilder_ != null || credential_ != null; } /** + * + * *
        * Required. Credential to use with the connection.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The credential. */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential getCredential() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + getCredential() { if (credentialBuilder_ == null) { - return credential_ == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.getDefaultInstance() : credential_; + return credential_ == null + ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + .getDefaultInstance() + : credential_; } else { return credentialBuilder_.getMessage(); } } /** + * + * *
        * Required. Credential to use with the connection.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setCredential(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential value) { + public Builder setCredential( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential value) { if (credentialBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5760,14 +6920,19 @@ public Builder setCredential(com.google.cloud.bigquery.connection.v1beta1.Connec return this; } /** + * + * *
        * Required. Credential to use with the connection.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCredential( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.Builder builderForValue) { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.Builder + builderForValue) { if (credentialBuilder_ == null) { credential_ = builderForValue.build(); onChanged(); @@ -5778,17 +6943,25 @@ public Builder setCredential( return this; } /** + * + * *
        * Required. Credential to use with the connection.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeCredential(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential value) { + public Builder mergeCredential( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential value) { if (credentialBuilder_ == null) { if (credential_ != null) { credential_ = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.newBuilder(credential_).mergeFrom(value).buildPartial(); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + .newBuilder(credential_) + .mergeFrom(value) + .buildPartial(); } else { credential_ = value; } @@ -5800,11 +6973,15 @@ public Builder mergeCredential(com.google.cloud.bigquery.connection.v1beta1.Conn return this; } /** + * + * *
        * Required. Credential to use with the connection.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCredential() { if (credentialBuilder_ == null) { @@ -5818,52 +6995,78 @@ public Builder clearCredential() { return this; } /** + * + * *
        * Required. Credential to use with the connection.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.Builder getCredentialBuilder() { - + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + .Builder + getCredentialBuilder() { + onChanged(); return getCredentialFieldBuilder().getBuilder(); } /** + * + * *
        * Required. Credential to use with the connection.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredentialOrBuilder getCredentialOrBuilder() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ConnectionCredentialOrBuilder + getCredentialOrBuilder() { if (credentialBuilder_ != null) { return credentialBuilder_.getMessageOrBuilder(); } else { - return credential_ == null ? - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.getDefaultInstance() : credential_; + return credential_ == null + ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + .getDefaultInstance() + : credential_; } } /** + * + * *
        * Required. Credential to use with the connection.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.connection.v1beta1.ConnectionCredential credential = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredentialOrBuilder> + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + .Builder, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ConnectionCredentialOrBuilder> getCredentialFieldBuilder() { if (credentialBuilder_ == null) { - credentialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredentialOrBuilder>( - getCredential(), - getParentForChildren(), - isClean()); + credentialBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + .Builder, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ConnectionCredentialOrBuilder>( + getCredential(), getParentForChildren(), isClean()); credential_ = null; } return credentialBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5876,30 +7079,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1beta1.UpdateConnectionCredentialRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1beta1.UpdateConnectionCredentialRequest) - private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest(); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateConnectionCredentialRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateConnectionCredentialRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateConnectionCredentialRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateConnectionCredentialRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5911,70 +7120,83 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface DeleteConnectionRequestOrBuilder extends + public interface DeleteConnectionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1beta1.DeleteConnectionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. Name of the deleted connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * Required. Name of the deleted connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } /** + * + * *
    * The request for [ConnectionService.DeleteConnectionRequest][].
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.DeleteConnectionRequest} */ - public static final class DeleteConnectionRequest extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class DeleteConnectionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1beta1.DeleteConnectionRequest) DeleteConnectionRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteConnectionRequest.newBuilder() to construct. private DeleteConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteConnectionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteConnectionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteConnectionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -5993,19 +7215,20 @@ private DeleteConnectionRequest( 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) { @@ -6013,35 +7236,44 @@ private DeleteConnectionRequest( } 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.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest.Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest + .class, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest + .Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
      * Required. Name of the deleted connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -6050,30 +7282,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
      * Required. Name of the deleted connection, for example:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -6082,6 +7316,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6093,8 +7328,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_); } @@ -6118,15 +7352,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest)) { + if (!(obj + instanceof + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest other = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest) obj; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest other = + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest) + obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -6145,88 +7382,114 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .DeleteConnectionRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .DeleteConnectionRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .DeleteConnectionRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .DeleteConnectionRequest + 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.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .DeleteConnectionRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .DeleteConnectionRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .DeleteConnectionRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .DeleteConnectionRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .DeleteConnectionRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .DeleteConnectionRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .DeleteConnectionRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .DeleteConnectionRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + 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.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest + 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 @@ -6236,44 +7499,52 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The request for [ConnectionService.DeleteConnectionRequest][].
      * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.DeleteConnectionRequest} */ - 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.bigquery.connection.v1beta1.DeleteConnectionRequest) - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_descriptor; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .DeleteConnectionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest.Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest + .class, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest + .Builder.class); } - // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest.newBuilder() + // Construct using + // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -6283,19 +7554,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest.getDefaultInstance(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest build() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest result = buildPartial(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest + build() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -6303,8 +7578,12 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnec } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest buildPartial() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest result = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest(this); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest + buildPartial() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest + result = + new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .DeleteConnectionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -6314,46 +7593,57 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnec 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.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest) { - return mergeFrom((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest)other); + if (other + instanceof + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest) { + return mergeFrom( + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest other) { - if (other == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest + other) { + if (other + == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -6373,11 +7663,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest parsedMessage = null; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -6389,19 +7682,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
        * Required. Name of the deleted connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -6410,21 +7707,24 @@ public java.lang.String getName() { } } /** + * + * *
        * Required. Name of the deleted connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -6432,61 +7732,75 @@ public java.lang.String getName() { } } /** + * + * *
        * Required. Name of the deleted connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
        * Required. Name of the deleted connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
        * Required. Name of the deleted connection, for example:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + 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) { @@ -6499,30 +7813,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1beta1.DeleteConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1beta1.DeleteConnectionRequest) - private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .DeleteConnectionRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .DeleteConnectionRequest(); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .DeleteConnectionRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteConnectionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteConnectionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6534,138 +7854,175 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ConnectionOrBuilder extends + public interface ConnectionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1beta1.Connection) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The resource name of the connection in the form of:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * The resource name of the connection in the form of:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
      * User provided display name for the connection.
      * 
* * string friendly_name = 2; + * * @return The friendlyName. */ java.lang.String getFriendlyName(); /** + * + * *
      * User provided display name for the connection.
      * 
* * string friendly_name = 2; + * * @return The bytes for friendlyName. */ - com.google.protobuf.ByteString - getFriendlyNameBytes(); + com.google.protobuf.ByteString getFriendlyNameBytes(); /** + * + * *
      * User provided description.
      * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
      * User provided description.
      * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
      * Cloud SQL properties.
      * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4; + * * @return Whether the cloudSql field is set. */ boolean hasCloudSql(); /** + * + * *
      * Cloud SQL properties.
      * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4; + * * @return The cloudSql. */ com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties getCloudSql(); /** + * + * *
      * Cloud SQL properties.
      * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4; */ - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlPropertiesOrBuilder getCloudSqlOrBuilder(); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlPropertiesOrBuilder + getCloudSqlOrBuilder(); /** + * + * *
      * Output only. The creation timestamp of the connection.
      * 
* * int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The creationTime. */ long getCreationTime(); /** + * + * *
      * Output only. The last update timestamp of the connection.
      * 
* * int64 last_modified_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The lastModifiedTime. */ long getLastModifiedTime(); /** + * + * *
      * Output only. True, if credential is configured for this connection.
      * 
* * bool has_credential = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The hasCredential. */ boolean getHasCredential(); - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.PropertiesCase getPropertiesCase(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.PropertiesCase + getPropertiesCase(); } /** + * + * *
    * Configuration parameters to establish connection with an external data
    * source, except the credential attributes.
@@ -6673,15 +8030,16 @@ public interface ConnectionOrBuilder extends
    *
    * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.Connection}
    */
-  public static final class Connection extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class Connection extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1beta1.Connection)
       ConnectionOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use Connection.newBuilder() to construct.
     private Connection(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private Connection() {
       name_ = "";
       friendlyName_ = "";
@@ -6690,16 +8048,15 @@ private Connection() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Connection();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private Connection(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -6718,60 +8075,76 @@ private Connection(
             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();
 
-              friendlyName_ = s;
-              break;
-            }
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
+                friendlyName_ = s;
+                break;
+              }
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
-            }
-            case 34: {
-              com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.Builder subBuilder = null;
-              if (propertiesCase_ == 4) {
-                subBuilder = ((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) properties_).toBuilder();
+                description_ = s;
+                break;
               }
-              properties_ =
-                  input.readMessage(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) properties_);
-                properties_ = subBuilder.buildPartial();
+            case 34:
+              {
+                com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties
+                        .Builder
+                    subBuilder = null;
+                if (propertiesCase_ == 4) {
+                  subBuilder =
+                      ((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto
+                                  .CloudSqlProperties)
+                              properties_)
+                          .toBuilder();
+                }
+                properties_ =
+                    input.readMessage(
+                        com.google.cloud.bigquery.connection.v1beta1.ConnectionProto
+                            .CloudSqlProperties.parser(),
+                        extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom(
+                      (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto
+                              .CloudSqlProperties)
+                          properties_);
+                  properties_ = subBuilder.buildPartial();
+                }
+                propertiesCase_ = 4;
+                break;
               }
-              propertiesCase_ = 4;
-              break;
-            }
-            case 40: {
-
-              creationTime_ = input.readInt64();
-              break;
-            }
-            case 48: {
-
-              lastModifiedTime_ = input.readInt64();
-              break;
-            }
-            case 56: {
-
-              hasCredential_ = input.readBool();
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+            case 40:
+              {
+                creationTime_ = input.readInt64();
+                break;
+              }
+            case 48:
+              {
+                lastModifiedTime_ = input.readInt64();
+                break;
+              }
+            case 56:
+              {
+                hasCredential_ = input.readBool();
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -6779,34 +8152,40 @@ private Connection(
       } 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.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_Connection_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto
+          .internal_static_google_cloud_bigquery_connection_v1beta1_Connection_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_Connection_fieldAccessorTable
+      return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto
+          .internal_static_google_cloud_bigquery_connection_v1beta1_Connection_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder.class);
+              com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class,
+              com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder
+                  .class);
     }
 
     private int propertiesCase_ = 0;
     private java.lang.Object properties_;
+
     public enum PropertiesCase
-        implements com.google.protobuf.Internal.EnumLite,
+        implements
+            com.google.protobuf.Internal.EnumLite,
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       CLOUD_SQL(4),
       PROPERTIES_NOT_SET(0);
       private final int value;
+
       private PropertiesCase(int value) {
         this.value = value;
       }
@@ -6822,31 +8201,36 @@ public static PropertiesCase valueOf(int value) {
 
       public static PropertiesCase forNumber(int value) {
         switch (value) {
-          case 4: return CLOUD_SQL;
-          case 0: return PROPERTIES_NOT_SET;
-          default: return null;
+          case 4:
+            return CLOUD_SQL;
+          case 0:
+            return PROPERTIES_NOT_SET;
+          default:
+            return null;
         }
       }
+
       public int getNumber() {
         return this.value;
       }
     };
 
-    public PropertiesCase
-    getPropertiesCase() {
-      return PropertiesCase.forNumber(
-          propertiesCase_);
+    public PropertiesCase getPropertiesCase() {
+      return PropertiesCase.forNumber(propertiesCase_);
     }
 
     public static final int NAME_FIELD_NUMBER = 1;
     private volatile java.lang.Object name_;
     /**
+     *
+     *
      * 
      * The resource name of the connection in the form of:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -6855,30 +8239,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
      * The resource name of the connection in the form of:
      * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
      * 
* * 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 { @@ -6889,11 +8273,14 @@ public java.lang.String getName() { public static final int FRIENDLY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object friendlyName_; /** + * + * *
      * User provided display name for the connection.
      * 
* * string friendly_name = 2; + * * @return The friendlyName. */ @java.lang.Override @@ -6902,29 +8289,29 @@ public java.lang.String getFriendlyName() { 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(); friendlyName_ = s; return s; } } /** + * + * *
      * User provided display name for the connection.
      * 
* * string friendly_name = 2; + * * @return The bytes for friendlyName. */ @java.lang.Override - public com.google.protobuf.ByteString - getFriendlyNameBytes() { + public com.google.protobuf.ByteString getFriendlyNameBytes() { java.lang.Object ref = friendlyName_; 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); friendlyName_ = b; return b; } else { @@ -6935,11 +8322,14 @@ public java.lang.String getFriendlyName() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
      * User provided description.
      * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -6948,29 +8338,29 @@ public java.lang.String getDescription() { 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(); description_ = s; return s; } } /** + * + * *
      * User provided description.
      * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; 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); description_ = b; return b; } else { @@ -6980,11 +8370,14 @@ public java.lang.String getDescription() { public static final int CLOUD_SQL_FIELD_NUMBER = 4; /** + * + * *
      * Cloud SQL properties.
      * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4; + * * @return Whether the cloudSql field is set. */ @java.lang.Override @@ -6992,21 +8385,29 @@ public boolean hasCloudSql() { return propertiesCase_ == 4; } /** + * + * *
      * Cloud SQL properties.
      * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4; + * * @return The cloudSql. */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties getCloudSql() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + getCloudSql() { if (propertiesCase_ == 4) { - return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) properties_; + return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) + properties_; } - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.getDefaultInstance(); + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .getDefaultInstance(); } /** + * + * *
      * Cloud SQL properties.
      * 
@@ -7014,21 +8415,27 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProp * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlPropertiesOrBuilder getCloudSqlOrBuilder() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlPropertiesOrBuilder + getCloudSqlOrBuilder() { if (propertiesCase_ == 4) { - return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) properties_; + return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) + properties_; } - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.getDefaultInstance(); + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .getDefaultInstance(); } public static final int CREATION_TIME_FIELD_NUMBER = 5; private long creationTime_; /** + * + * *
      * Output only. The creation timestamp of the connection.
      * 
* * int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The creationTime. */ @java.lang.Override @@ -7039,11 +8446,14 @@ public long getCreationTime() { public static final int LAST_MODIFIED_TIME_FIELD_NUMBER = 6; private long lastModifiedTime_; /** + * + * *
      * Output only. The last update timestamp of the connection.
      * 
* * int64 last_modified_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The lastModifiedTime. */ @java.lang.Override @@ -7054,11 +8464,14 @@ public long getLastModifiedTime() { public static final int HAS_CREDENTIAL_FIELD_NUMBER = 7; private boolean hasCredential_; /** + * + * *
      * Output only. True, if credential is configured for this connection.
      * 
* * bool has_credential = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The hasCredential. */ @java.lang.Override @@ -7067,6 +8480,7 @@ public boolean getHasCredential() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7078,8 +8492,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_); } @@ -7090,7 +8503,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } if (propertiesCase_ == 4) { - output.writeMessage(4, (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) properties_); + output.writeMessage( + 4, + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) + properties_); } if (creationTime_ != 0L) { output.writeInt64(5, creationTime_); @@ -7120,20 +8536,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (propertiesCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) properties_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) + properties_); } if (creationTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, creationTime_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, creationTime_); } if (lastModifiedTime_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, lastModifiedTime_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, lastModifiedTime_); } if (hasCredential_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, hasCredential_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, hasCredential_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -7143,30 +8559,25 @@ 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.bigquery.connection.v1beta1.ConnectionProto.Connection)) { + if (!(obj + instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection other = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getFriendlyName() - .equals(other.getFriendlyName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (getCreationTime() - != other.getCreationTime()) return false; - if (getLastModifiedTime() - != other.getLastModifiedTime()) return false; - if (getHasCredential() - != other.getHasCredential()) return false; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection other = + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection) obj; + + if (!getName().equals(other.getName())) return false; + if (!getFriendlyName().equals(other.getFriendlyName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (getCreationTime() != other.getCreationTime()) return false; + if (getLastModifiedTime() != other.getLastModifiedTime()) return false; + if (getHasCredential() != other.getHasCredential()) return false; if (!getPropertiesCase().equals(other.getPropertiesCase())) return false; switch (propertiesCase_) { case 4: - if (!getCloudSql() - .equals(other.getCloudSql())) return false; + if (!getCloudSql().equals(other.getCloudSql())) return false; break; case 0: default: @@ -7189,14 +8600,11 @@ public int hashCode() { hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + CREATION_TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCreationTime()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCreationTime()); hash = (37 * hash) + LAST_MODIFIED_TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLastModifiedTime()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLastModifiedTime()); hash = (37 * hash) + HAS_CREDENTIAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getHasCredential()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasCredential()); switch (propertiesCase_) { case 4: hash = (37 * hash) + CLOUD_SQL_FIELD_NUMBER; @@ -7211,87 +8619,95 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection 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.bigquery.connection.v1beta1.ConnectionProto.Connection 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.bigquery.connection.v1beta1.ConnectionProto.Connection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection 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.bigquery.connection.v1beta1.ConnectionProto.Connection parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection 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.bigquery.connection.v1beta1.ConnectionProto.Connection parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection 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.bigquery.connection.v1beta1.ConnectionProto.Connection parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection 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.bigquery.connection.v1beta1.ConnectionProto.Connection 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.bigquery.connection.v1beta1.ConnectionProto.Connection prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection 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 @@ -7301,6 +8717,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Configuration parameters to establish connection with an external data
      * source, except the credential attributes.
@@ -7308,38 +8726,42 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.Connection}
      */
-    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.bigquery.connection.v1beta1.Connection)
         com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_Connection_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto
+            .internal_static_google_cloud_bigquery_connection_v1beta1_Connection_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_Connection_fieldAccessorTable
+        return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto
+            .internal_static_google_cloud_bigquery_connection_v1beta1_Connection_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder.class);
+                com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class,
+                com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.Builder
+                    .class);
       }
 
-      // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.newBuilder()
+      // Construct using
+      // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -7361,19 +8783,22 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_Connection_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto
+            .internal_static_google_cloud_bigquery_connection_v1beta1_Connection_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getDefaultInstanceForType() {
-        return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance();
+      public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection
+          getDefaultInstanceForType() {
+        return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection
+            .getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection build() {
-        com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection result = buildPartial();
+        com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -7381,8 +8806,10 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection b
       }
 
       @java.lang.Override
-      public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection buildPartial() {
-        com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection result = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection(this);
+      public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection
+          buildPartial() {
+        com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection result =
+            new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection(this);
         result.name_ = name_;
         result.friendlyName_ = friendlyName_;
         result.description_ = description_;
@@ -7405,46 +8832,54 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection b
       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.bigquery.connection.v1beta1.ConnectionProto.Connection) {
-          return mergeFrom((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection)other);
+        if (other
+            instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection) {
+          return mergeFrom(
+              (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection other) {
-        if (other == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection other) {
+        if (other
+            == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection
+                .getDefaultInstance()) return this;
         if (!other.getName().isEmpty()) {
           name_ = other.name_;
           onChanged();
@@ -7467,13 +8902,15 @@ public Builder mergeFrom(com.google.cloud.bigquery.connection.v1beta1.Connection
           setHasCredential(other.getHasCredential());
         }
         switch (other.getPropertiesCase()) {
-          case CLOUD_SQL: {
-            mergeCloudSql(other.getCloudSql());
-            break;
-          }
-          case PROPERTIES_NOT_SET: {
-            break;
-          }
+          case CLOUD_SQL:
+            {
+              mergeCloudSql(other.getCloudSql());
+              break;
+            }
+          case PROPERTIES_NOT_SET:
+            {
+              break;
+            }
         }
         this.mergeUnknownFields(other.unknownFields);
         onChanged();
@@ -7490,11 +8927,14 @@ public Builder mergeFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
-        com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection parsedMessage = null;
+        com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection parsedMessage =
+            null;
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -7503,12 +8943,12 @@ public Builder mergeFrom(
         }
         return this;
       }
+
       private int propertiesCase_ = 0;
       private java.lang.Object properties_;
-      public PropertiesCase
-          getPropertiesCase() {
-        return PropertiesCase.forNumber(
-            propertiesCase_);
+
+      public PropertiesCase getPropertiesCase() {
+        return PropertiesCase.forNumber(propertiesCase_);
       }
 
       public Builder clearProperties() {
@@ -7518,22 +8958,23 @@ public Builder clearProperties() {
         return this;
       }
 
-
       private java.lang.Object name_ = "";
       /**
+       *
+       *
        * 
        * The resource name of the connection in the form of:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* * 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; @@ -7542,21 +8983,22 @@ public java.lang.String getName() { } } /** + * + * *
        * The resource name of the connection in the form of:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* * 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 { @@ -7564,57 +9006,64 @@ public java.lang.String getName() { } } /** + * + * *
        * The resource name of the connection in the form of:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* * 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 of the connection in the form of:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
        * The resource name of the connection in the form of:
        * `projects/{project_id}/locations/{location_id}/connections/{connection_id}`
        * 
* * 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; @@ -7622,18 +9071,20 @@ public Builder setNameBytes( private java.lang.Object friendlyName_ = ""; /** + * + * *
        * User provided display name for the connection.
        * 
* * string friendly_name = 2; + * * @return The friendlyName. */ public java.lang.String getFriendlyName() { java.lang.Object ref = friendlyName_; 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(); friendlyName_ = s; return s; @@ -7642,20 +9093,21 @@ public java.lang.String getFriendlyName() { } } /** + * + * *
        * User provided display name for the connection.
        * 
* * string friendly_name = 2; + * * @return The bytes for friendlyName. */ - public com.google.protobuf.ByteString - getFriendlyNameBytes() { + public com.google.protobuf.ByteString getFriendlyNameBytes() { java.lang.Object ref = friendlyName_; 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); friendlyName_ = b; return b; } else { @@ -7663,54 +9115,61 @@ public java.lang.String getFriendlyName() { } } /** + * + * *
        * User provided display name for the connection.
        * 
* * string friendly_name = 2; + * * @param value The friendlyName to set. * @return This builder for chaining. */ - public Builder setFriendlyName( - java.lang.String value) { + public Builder setFriendlyName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + friendlyName_ = value; onChanged(); return this; } /** + * + * *
        * User provided display name for the connection.
        * 
* * string friendly_name = 2; + * * @return This builder for chaining. */ public Builder clearFriendlyName() { - + friendlyName_ = getDefaultInstance().getFriendlyName(); onChanged(); return this; } /** + * + * *
        * User provided display name for the connection.
        * 
* * string friendly_name = 2; + * * @param value The bytes for friendlyName to set. * @return This builder for chaining. */ - public Builder setFriendlyNameBytes( - com.google.protobuf.ByteString value) { + public Builder setFriendlyNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + friendlyName_ = value; onChanged(); return this; @@ -7718,18 +9177,20 @@ public Builder setFriendlyNameBytes( private java.lang.Object description_ = ""; /** + * + * *
        * User provided description.
        * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; @@ -7738,20 +9199,21 @@ public java.lang.String getDescription() { } } /** + * + * *
        * User provided description.
        * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; 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); description_ = b; return b; } else { @@ -7759,67 +9221,82 @@ public java.lang.String getDescription() { } } /** + * + * *
        * User provided description.
        * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
        * User provided description.
        * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
        * User provided description.
        * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlPropertiesOrBuilder> cloudSqlBuilder_; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .Builder, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CloudSqlPropertiesOrBuilder> + cloudSqlBuilder_; /** + * + * *
        * Cloud SQL properties.
        * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4; + * * @return Whether the cloudSql field is set. */ @java.lang.Override @@ -7827,35 +9304,45 @@ public boolean hasCloudSql() { return propertiesCase_ == 4; } /** + * + * *
        * Cloud SQL properties.
        * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4; + * * @return The cloudSql. */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties getCloudSql() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + getCloudSql() { if (cloudSqlBuilder_ == null) { if (propertiesCase_ == 4) { - return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) properties_; + return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) + properties_; } - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.getDefaultInstance(); + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .getDefaultInstance(); } else { if (propertiesCase_ == 4) { return cloudSqlBuilder_.getMessage(); } - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.getDefaultInstance(); + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .getDefaultInstance(); } } /** + * + * *
        * Cloud SQL properties.
        * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4; */ - public Builder setCloudSql(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties value) { + public Builder setCloudSql( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties value) { if (cloudSqlBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7869,6 +9356,8 @@ public Builder setCloudSql(com.google.cloud.bigquery.connection.v1beta1.Connecti return this; } /** + * + * *
        * Cloud SQL properties.
        * 
@@ -7876,7 +9365,8 @@ public Builder setCloudSql(com.google.cloud.bigquery.connection.v1beta1.Connecti * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4; */ public Builder setCloudSql( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.Builder builderForValue) { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.Builder + builderForValue) { if (cloudSqlBuilder_ == null) { properties_ = builderForValue.build(); onChanged(); @@ -7887,18 +9377,29 @@ public Builder setCloudSql( return this; } /** + * + * *
        * Cloud SQL properties.
        * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4; */ - public Builder mergeCloudSql(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties value) { + public Builder mergeCloudSql( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties value) { if (cloudSqlBuilder_ == null) { - if (propertiesCase_ == 4 && - properties_ != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.getDefaultInstance()) { - properties_ = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.newBuilder((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) properties_) - .mergeFrom(value).buildPartial(); + if (propertiesCase_ == 4 + && properties_ + != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .getDefaultInstance()) { + properties_ = + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .newBuilder( + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CloudSqlProperties) + properties_) + .mergeFrom(value) + .buildPartial(); } else { properties_ = value; } @@ -7914,6 +9415,8 @@ public Builder mergeCloudSql(com.google.cloud.bigquery.connection.v1beta1.Connec return this; } /** + * + * *
        * Cloud SQL properties.
        * 
@@ -7937,16 +9440,21 @@ public Builder clearCloudSql() { return this; } /** + * + * *
        * Cloud SQL properties.
        * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4; */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.Builder getCloudSqlBuilder() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.Builder + getCloudSqlBuilder() { return getCloudSqlFieldBuilder().getBuilder(); } /** + * + * *
        * Cloud SQL properties.
        * 
@@ -7954,17 +9462,23 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProp * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlPropertiesOrBuilder getCloudSqlOrBuilder() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CloudSqlPropertiesOrBuilder + getCloudSqlOrBuilder() { if ((propertiesCase_ == 4) && (cloudSqlBuilder_ != null)) { return cloudSqlBuilder_.getMessageOrBuilder(); } else { if (propertiesCase_ == 4) { - return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) properties_; + return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) + properties_; } - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.getDefaultInstance(); + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .getDefaultInstance(); } } /** + * + * *
        * Cloud SQL properties.
        * 
@@ -7972,31 +9486,47 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProp * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties cloud_sql = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlPropertiesOrBuilder> + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .Builder, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CloudSqlPropertiesOrBuilder> getCloudSqlFieldBuilder() { if (cloudSqlBuilder_ == null) { if (!(propertiesCase_ == 4)) { - properties_ = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.getDefaultInstance(); + properties_ = + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .getDefaultInstance(); } - cloudSqlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlPropertiesOrBuilder>( - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) properties_, + cloudSqlBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .Builder, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CloudSqlPropertiesOrBuilder>( + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) + properties_, getParentForChildren(), isClean()); properties_ = null; } propertiesCase_ = 4; - onChanged();; + onChanged(); + ; return cloudSqlBuilder_; } - private long creationTime_ ; + private long creationTime_; /** + * + * *
        * Output only. The creation timestamp of the connection.
        * 
* * int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The creationTime. */ @java.lang.Override @@ -8004,42 +9534,51 @@ public long getCreationTime() { return creationTime_; } /** + * + * *
        * Output only. The creation timestamp of the connection.
        * 
* * int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The creationTime to set. * @return This builder for chaining. */ public Builder setCreationTime(long value) { - + creationTime_ = value; onChanged(); return this; } /** + * + * *
        * Output only. The creation timestamp of the connection.
        * 
* * int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearCreationTime() { - + creationTime_ = 0L; onChanged(); return this; } - private long lastModifiedTime_ ; + private long lastModifiedTime_; /** + * + * *
        * Output only. The last update timestamp of the connection.
        * 
* * int64 last_modified_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The lastModifiedTime. */ @java.lang.Override @@ -8047,42 +9586,51 @@ public long getLastModifiedTime() { return lastModifiedTime_; } /** + * + * *
        * Output only. The last update timestamp of the connection.
        * 
* * int64 last_modified_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The lastModifiedTime to set. * @return This builder for chaining. */ public Builder setLastModifiedTime(long value) { - + lastModifiedTime_ = value; onChanged(); return this; } /** + * + * *
        * Output only. The last update timestamp of the connection.
        * 
* * int64 last_modified_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLastModifiedTime() { - + lastModifiedTime_ = 0L; onChanged(); return this; } - private boolean hasCredential_ ; + private boolean hasCredential_; /** + * + * *
        * Output only. True, if credential is configured for this connection.
        * 
* * bool has_credential = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The hasCredential. */ @java.lang.Override @@ -8090,34 +9638,41 @@ public boolean getHasCredential() { return hasCredential_; } /** + * + * *
        * Output only. True, if credential is configured for this connection.
        * 
* * bool has_credential = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The hasCredential to set. * @return This builder for chaining. */ public Builder setHasCredential(boolean value) { - + hasCredential_ = value; onChanged(); return this; } /** + * + * *
        * Output only. True, if credential is configured for this connection.
        * 
* * bool has_credential = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearHasCredential() { - + hasCredential_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8130,30 +9685,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1beta1.Connection) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1beta1.Connection) - private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection(); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Connection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Connection(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Connection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Connection(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8165,76 +9723,89 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ConnectionCredentialOrBuilder extends + public interface ConnectionCredentialOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1beta1.ConnectionCredential) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Credential for Cloud SQL database.
      * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential cloud_sql = 1; + * * @return Whether the cloudSql field is set. */ boolean hasCloudSql(); /** + * + * *
      * Credential for Cloud SQL database.
      * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential cloud_sql = 1; + * * @return The cloudSql. */ com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential getCloudSql(); /** + * + * *
      * Credential for Cloud SQL database.
      * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential cloud_sql = 1; */ - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder getCloudSqlOrBuilder(); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder + getCloudSqlOrBuilder(); - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.CredentialCase getCredentialCase(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + .CredentialCase + getCredentialCase(); } /** + * + * *
    * Credential to use with a connection.
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.ConnectionCredential} */ - public static final class ConnectionCredential extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ConnectionCredential extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1beta1.ConnectionCredential) ConnectionCredentialOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConnectionCredential.newBuilder() to construct. private ConnectionCredential(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConnectionCredential() { - } + + private ConnectionCredential() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConnectionCredential(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ConnectionCredential( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -8253,27 +9824,40 @@ private ConnectionCredential( case 0: done = true; break; - case 10: { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder subBuilder = null; - if (credentialCase_ == 1) { - subBuilder = ((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) credential_).toBuilder(); + case 10: + { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + .Builder + subBuilder = null; + if (credentialCase_ == 1) { + subBuilder = + ((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CloudSqlCredential) + credential_) + .toBuilder(); + } + credential_ = + input.readMessage( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CloudSqlCredential.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CloudSqlCredential) + credential_); + credential_ = subBuilder.buildPartial(); + } + credentialCase_ = 1; + break; } - credential_ = - input.readMessage(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) credential_); - credential_ = subBuilder.buildPartial(); - } - credentialCase_ = 1; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -8281,34 +9865,41 @@ private ConnectionCredential( } 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.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + .class, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + .Builder.class); } private int credentialCase_ = 0; private java.lang.Object credential_; + public enum CredentialCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CLOUD_SQL(1), CREDENTIAL_NOT_SET(0); private final int value; + private CredentialCase(int value) { this.value = value; } @@ -8324,29 +9915,34 @@ public static CredentialCase valueOf(int value) { public static CredentialCase forNumber(int value) { switch (value) { - case 1: return CLOUD_SQL; - case 0: return CREDENTIAL_NOT_SET; - default: return null; + case 1: + return CLOUD_SQL; + case 0: + return CREDENTIAL_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public CredentialCase - getCredentialCase() { - return CredentialCase.forNumber( - credentialCase_); + public CredentialCase getCredentialCase() { + return CredentialCase.forNumber(credentialCase_); } public static final int CLOUD_SQL_FIELD_NUMBER = 1; /** + * + * *
      * Credential for Cloud SQL database.
      * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential cloud_sql = 1; + * * @return Whether the cloudSql field is set. */ @java.lang.Override @@ -8354,21 +9950,29 @@ public boolean hasCloudSql() { return credentialCase_ == 1; } /** + * + * *
      * Credential for Cloud SQL database.
      * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential cloud_sql = 1; + * * @return The cloudSql. */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential getCloudSql() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + getCloudSql() { if (credentialCase_ == 1) { - return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) credential_; + return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) + credential_; } - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.getDefaultInstance(); + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + .getDefaultInstance(); } /** + * + * *
      * Credential for Cloud SQL database.
      * 
@@ -8376,14 +9980,18 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCred * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential cloud_sql = 1; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder getCloudSqlOrBuilder() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder + getCloudSqlOrBuilder() { if (credentialCase_ == 1) { - return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) credential_; + return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) + credential_; } - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.getDefaultInstance(); + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + .getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8395,10 +10003,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (credentialCase_ == 1) { - output.writeMessage(1, (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) credential_); + output.writeMessage( + 1, + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) + credential_); } unknownFields.writeTo(output); } @@ -8410,8 +10020,11 @@ public int getSerializedSize() { size = 0; if (credentialCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) credential_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) + credential_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -8421,18 +10034,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential)) { + if (!(obj + instanceof + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential other = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential) obj; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential other = + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential) obj; if (!getCredentialCase().equals(other.getCredentialCase())) return false; switch (credentialCase_) { case 1: - if (!getCloudSql() - .equals(other.getCloudSql())) return false; + if (!getCloudSql().equals(other.getCloudSql())) return false; break; case 0: default: @@ -8461,88 +10076,102 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + 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.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + 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.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + 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 @@ -8552,44 +10181,51 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Credential to use with a connection.
      * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.ConnectionCredential} */ - 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.bigquery.connection.v1beta1.ConnectionCredential) com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredentialOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + .class, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + .Builder.class); } - // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.newBuilder() + // Construct using + // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -8599,19 +10235,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential getDefaultInstanceForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.getDefaultInstance(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + getDefaultInstanceForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential build() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential result = buildPartial(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + build() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -8619,8 +10259,11 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCr } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential buildPartial() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential result = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential(this); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + buildPartial() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential result = + new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential( + this); if (credentialCase_ == 1) { if (cloudSqlBuilder_ == null) { result.credential_ = credential_; @@ -8637,54 +10280,66 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCr 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.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential) { - return mergeFrom((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential)other); + if (other + instanceof + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential) { + return mergeFrom( + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential other) { - if (other == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential other) { + if (other + == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + .getDefaultInstance()) return this; switch (other.getCredentialCase()) { - case CLOUD_SQL: { - mergeCloudSql(other.getCloudSql()); - break; - } - case CREDENTIAL_NOT_SET: { - break; - } + case CLOUD_SQL: + { + mergeCloudSql(other.getCloudSql()); + break; + } + case CREDENTIAL_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -8701,11 +10356,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential parsedMessage = null; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -8714,12 +10372,12 @@ public Builder mergeFrom( } return this; } + private int credentialCase_ = 0; private java.lang.Object credential_; - public CredentialCase - getCredentialCase() { - return CredentialCase.forNumber( - credentialCase_); + + public CredentialCase getCredentialCase() { + return CredentialCase.forNumber(credentialCase_); } public Builder clearCredential() { @@ -8729,15 +10387,22 @@ public Builder clearCredential() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder> cloudSqlBuilder_; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + .Builder, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CloudSqlCredentialOrBuilder> + cloudSqlBuilder_; /** + * + * *
        * Credential for Cloud SQL database.
        * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential cloud_sql = 1; + * * @return Whether the cloudSql field is set. */ @java.lang.Override @@ -8745,35 +10410,45 @@ public boolean hasCloudSql() { return credentialCase_ == 1; } /** + * + * *
        * Credential for Cloud SQL database.
        * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential cloud_sql = 1; + * * @return The cloudSql. */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential getCloudSql() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + getCloudSql() { if (cloudSqlBuilder_ == null) { if (credentialCase_ == 1) { - return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) credential_; + return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) + credential_; } - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.getDefaultInstance(); + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + .getDefaultInstance(); } else { if (credentialCase_ == 1) { return cloudSqlBuilder_.getMessage(); } - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.getDefaultInstance(); + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + .getDefaultInstance(); } } /** + * + * *
        * Credential for Cloud SQL database.
        * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential cloud_sql = 1; */ - public Builder setCloudSql(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential value) { + public Builder setCloudSql( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential value) { if (cloudSqlBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8787,6 +10462,8 @@ public Builder setCloudSql(com.google.cloud.bigquery.connection.v1beta1.Connecti return this; } /** + * + * *
        * Credential for Cloud SQL database.
        * 
@@ -8794,7 +10471,8 @@ public Builder setCloudSql(com.google.cloud.bigquery.connection.v1beta1.Connecti * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential cloud_sql = 1; */ public Builder setCloudSql( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder builderForValue) { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder + builderForValue) { if (cloudSqlBuilder_ == null) { credential_ = builderForValue.build(); onChanged(); @@ -8805,18 +10483,29 @@ public Builder setCloudSql( return this; } /** + * + * *
        * Credential for Cloud SQL database.
        * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential cloud_sql = 1; */ - public Builder mergeCloudSql(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential value) { + public Builder mergeCloudSql( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential value) { if (cloudSqlBuilder_ == null) { - if (credentialCase_ == 1 && - credential_ != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.getDefaultInstance()) { - credential_ = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.newBuilder((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) credential_) - .mergeFrom(value).buildPartial(); + if (credentialCase_ == 1 + && credential_ + != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + .getDefaultInstance()) { + credential_ = + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + .newBuilder( + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CloudSqlCredential) + credential_) + .mergeFrom(value) + .buildPartial(); } else { credential_ = value; } @@ -8832,6 +10521,8 @@ public Builder mergeCloudSql(com.google.cloud.bigquery.connection.v1beta1.Connec return this; } /** + * + * *
        * Credential for Cloud SQL database.
        * 
@@ -8855,16 +10546,21 @@ public Builder clearCloudSql() { return this; } /** + * + * *
        * Credential for Cloud SQL database.
        * 
* * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential cloud_sql = 1; */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder getCloudSqlBuilder() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder + getCloudSqlBuilder() { return getCloudSqlFieldBuilder().getBuilder(); } /** + * + * *
        * Credential for Cloud SQL database.
        * 
@@ -8872,17 +10568,23 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCred * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential cloud_sql = 1; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder getCloudSqlOrBuilder() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CloudSqlCredentialOrBuilder + getCloudSqlOrBuilder() { if ((credentialCase_ == 1) && (cloudSqlBuilder_ != null)) { return cloudSqlBuilder_.getMessageOrBuilder(); } else { if (credentialCase_ == 1) { - return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) credential_; + return (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) + credential_; } - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.getDefaultInstance(); + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + .getDefaultInstance(); } } /** + * + * *
        * Credential for Cloud SQL database.
        * 
@@ -8890,23 +10592,37 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCred * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential cloud_sql = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder> + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + .Builder, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CloudSqlCredentialOrBuilder> getCloudSqlFieldBuilder() { if (cloudSqlBuilder_ == null) { if (!(credentialCase_ == 1)) { - credential_ = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.getDefaultInstance(); + credential_ = + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + .getDefaultInstance(); } - cloudSqlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder>( - (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) credential_, + cloudSqlBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + .Builder, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CloudSqlCredentialOrBuilder>( + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) + credential_, getParentForChildren(), isClean()); credential_ = null; } credentialCase_ = 1; - onChanged();; + onChanged(); + ; return cloudSqlBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8919,30 +10635,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1beta1.ConnectionCredential) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1beta1.ConnectionCredential) - private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ConnectionCredential + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential(); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConnectionCredential parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConnectionCredential(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectionCredential parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConnectionCredential(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8954,118 +10674,156 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface CloudSqlPropertiesOrBuilder extends + public interface CloudSqlPropertiesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1beta1.CloudSqlProperties) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Cloud SQL instance ID in the form `project:location:instance`.
      * 
* * string instance_id = 1; + * * @return The instanceId. */ java.lang.String getInstanceId(); /** + * + * *
      * Cloud SQL instance ID in the form `project:location:instance`.
      * 
* * string instance_id = 1; + * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString - getInstanceIdBytes(); + com.google.protobuf.ByteString getInstanceIdBytes(); /** + * + * *
      * Database name.
      * 
* * string database = 2; + * * @return The database. */ java.lang.String getDatabase(); /** + * + * *
      * Database name.
      * 
* * string database = 2; + * * @return The bytes for database. */ - com.google.protobuf.ByteString - getDatabaseBytes(); + com.google.protobuf.ByteString getDatabaseBytes(); /** + * + * *
      * Type of the Cloud SQL database.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; + * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; + * + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
      * Type of the Cloud SQL database.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; + * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; + * + * * @return The type. */ - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType getType(); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType + getType(); /** + * + * *
      * Input only. Cloud SQL credential.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return Whether the credential field is set. */ boolean hasCredential(); /** + * + * *
      * Input only. Cloud SQL credential.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The credential. */ com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential getCredential(); /** + * + * *
      * Input only. Cloud SQL credential.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder getCredentialOrBuilder(); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder + getCredentialOrBuilder(); } /** + * + * *
    * Connection properties specific to the Cloud SQL.
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.CloudSqlProperties} */ - public static final class CloudSqlProperties extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class CloudSqlProperties extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1beta1.CloudSqlProperties) CloudSqlPropertiesOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CloudSqlProperties.newBuilder() to construct. private CloudSqlProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CloudSqlProperties() { instanceId_ = ""; database_ = ""; @@ -9074,16 +10832,15 @@ private CloudSqlProperties() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CloudSqlProperties(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CloudSqlProperties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -9102,44 +10859,54 @@ private CloudSqlProperties( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - instanceId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + instanceId_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - database_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); + database_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); - type_ = rawValue; - break; - } - case 34: { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder subBuilder = null; - if (credential_ != null) { - subBuilder = credential_.toBuilder(); + type_ = rawValue; + break; } - credential_ = input.readMessage(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(credential_); - credential_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + .Builder + subBuilder = null; + if (credential_ != null) { + subBuilder = credential_.toBuilder(); + } + credential_ = + input.readMessage( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CloudSqlCredential.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(credential_); + credential_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -9147,36 +10914,43 @@ private CloudSqlProperties( } 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.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.class, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .Builder.class); } /** + * + * *
      * Supported Cloud SQL database types.
      * 
* - * Protobuf enum {@code google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType} + * Protobuf enum {@code + * google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType} */ - public enum DatabaseType - implements com.google.protobuf.ProtocolMessageEnum { + public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Unspecified database type.
        * 
@@ -9185,6 +10959,8 @@ public enum DatabaseType */ DATABASE_TYPE_UNSPECIFIED(0), /** + * + * *
        * Cloud SQL for PostgreSQL.
        * 
@@ -9193,6 +10969,8 @@ public enum DatabaseType */ POSTGRES(1), /** + * + * *
        * Cloud SQL for MySQL.
        * 
@@ -9204,6 +10982,8 @@ public enum DatabaseType ; /** + * + * *
        * Unspecified database type.
        * 
@@ -9212,6 +10992,8 @@ public enum DatabaseType */ public static final int DATABASE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * Cloud SQL for PostgreSQL.
        * 
@@ -9220,6 +11002,8 @@ public enum DatabaseType */ public static final int POSTGRES_VALUE = 1; /** + * + * *
        * Cloud SQL for MySQL.
        * 
@@ -9228,7 +11012,6 @@ public enum DatabaseType */ public static final int MYSQL_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -9253,49 +11036,52 @@ public static DatabaseType valueOf(int value) { */ public static DatabaseType forNumber(int value) { switch (value) { - case 0: return DATABASE_TYPE_UNSPECIFIED; - case 1: return POSTGRES; - case 2: return MYSQL; - default: return null; + case 0: + return DATABASE_TYPE_UNSPECIFIED; + case 1: + return POSTGRES; + case 2: + return MYSQL; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - DatabaseType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DatabaseType findValueByNumber(int number) { - return DatabaseType.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 DatabaseType findValueByNumber(int number) { + return DatabaseType.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() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .getDescriptor() + .getEnumTypes() + .get(0); } private static final DatabaseType[] VALUES = values(); - public static DatabaseType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static DatabaseType 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; @@ -9315,11 +11101,14 @@ private DatabaseType(int value) { public static final int INSTANCE_ID_FIELD_NUMBER = 1; private volatile java.lang.Object instanceId_; /** + * + * *
      * Cloud SQL instance ID in the form `project:location:instance`.
      * 
* * string instance_id = 1; + * * @return The instanceId. */ @java.lang.Override @@ -9328,29 +11117,29 @@ public java.lang.String getInstanceId() { 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(); instanceId_ = s; return s; } } /** + * + * *
      * Cloud SQL instance ID in the form `project:location:instance`.
      * 
* * string instance_id = 1; + * * @return The bytes for instanceId. */ @java.lang.Override - public com.google.protobuf.ByteString - getInstanceIdBytes() { + public com.google.protobuf.ByteString getInstanceIdBytes() { java.lang.Object ref = instanceId_; 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); instanceId_ = b; return b; } else { @@ -9361,11 +11150,14 @@ public java.lang.String getInstanceId() { public static final int DATABASE_FIELD_NUMBER = 2; private volatile java.lang.Object database_; /** + * + * *
      * Database name.
      * 
* * string database = 2; + * * @return The database. */ @java.lang.Override @@ -9374,29 +11166,29 @@ public java.lang.String getDatabase() { 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(); database_ = s; return s; } } /** + * + * *
      * Database name.
      * 
* * string database = 2; + * * @return The bytes for database. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatabaseBytes() { + public com.google.protobuf.ByteString getDatabaseBytes() { java.lang.Object ref = database_; 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); database_ = b; return b; } else { @@ -9407,38 +11199,62 @@ public java.lang.String getDatabase() { public static final int TYPE_FIELD_NUMBER = 3; private int type_; /** + * + * *
      * Type of the Cloud SQL database.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; + * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Type of the Cloud SQL database.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; + * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; + * + * * @return The type. */ - @java.lang.Override public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType getType() { + @java.lang.Override + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .DatabaseType + getType() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType result = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType.valueOf(type_); - return result == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType.UNRECOGNIZED : result; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType + result = + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .DatabaseType.valueOf(type_); + return result == null + ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .DatabaseType.UNRECOGNIZED + : result; } public static final int CREDENTIAL_FIELD_NUMBER = 4; - private com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential credential_; + private com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + credential_; /** + * + * *
      * Input only. Cloud SQL credential.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return Whether the credential field is set. */ @java.lang.Override @@ -9446,30 +11262,45 @@ public boolean hasCredential() { return credential_ != null; } /** + * + * *
      * Input only. Cloud SQL credential.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The credential. */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential getCredential() { - return credential_ == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.getDefaultInstance() : credential_; + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + getCredential() { + return credential_ == null + ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + .getDefaultInstance() + : credential_; } /** + * + * *
      * Input only. Cloud SQL credential.
      * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder getCredentialOrBuilder() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder + getCredentialOrBuilder() { return getCredential(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -9481,15 +11312,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, database_); } - if (type_ != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType.DATABASE_TYPE_UNSPECIFIED.getNumber()) { + if (type_ + != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .DatabaseType.DATABASE_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, type_); } if (credential_ != null) { @@ -9510,13 +11343,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, database_); } - if (type_ != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType.DATABASE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, type_); + if (type_ + != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .DatabaseType.DATABASE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_); } if (credential_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCredential()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCredential()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -9526,22 +11360,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties)) { + if (!(obj + instanceof + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties other = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) obj; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties other = + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) obj; - if (!getInstanceId() - .equals(other.getInstanceId())) return false; - if (!getDatabase() - .equals(other.getDatabase())) return false; + if (!getInstanceId().equals(other.getInstanceId())) return false; + if (!getDatabase().equals(other.getDatabase())) return false; if (type_ != other.type_) return false; if (hasCredential() != other.hasCredential()) return false; if (hasCredential()) { - if (!getCredential() - .equals(other.getCredential())) return false; + if (!getCredential().equals(other.getCredential())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -9569,88 +11403,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + 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.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + 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.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties 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 @@ -9660,44 +11507,51 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Connection properties specific to the Cloud SQL.
      * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.CloudSqlProperties} */ - 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.bigquery.connection.v1beta1.CloudSqlProperties) com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlPropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .class, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .Builder.class); } - // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.newBuilder() + // Construct using + // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -9717,19 +11571,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties getDefaultInstanceForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.getDefaultInstance(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + getDefaultInstanceForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties build() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties result = buildPartial(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + build() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -9737,8 +11595,11 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProp } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties buildPartial() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties result = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties(this); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + buildPartial() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties result = + new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties( + this); result.instanceId_ = instanceId_; result.database_ = database_; result.type_ = type_; @@ -9755,46 +11616,56 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProp 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) { + public Builder addRepeatedField( + 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.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) { - return mergeFrom((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties)other); + if (other + instanceof + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) { + return mergeFrom( + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties other) { - if (other == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties other) { + if (other + == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .getDefaultInstance()) return this; if (!other.getInstanceId().isEmpty()) { instanceId_ = other.instanceId_; onChanged(); @@ -9824,11 +11695,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties parsedMessage = null; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -9840,18 +11714,20 @@ public Builder mergeFrom( private java.lang.Object instanceId_ = ""; /** + * + * *
        * Cloud SQL instance ID in the form `project:location:instance`.
        * 
* * string instance_id = 1; + * * @return The instanceId. */ public java.lang.String getInstanceId() { java.lang.Object ref = instanceId_; 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(); instanceId_ = s; return s; @@ -9860,20 +11736,21 @@ public java.lang.String getInstanceId() { } } /** + * + * *
        * Cloud SQL instance ID in the form `project:location:instance`.
        * 
* * string instance_id = 1; + * * @return The bytes for instanceId. */ - public com.google.protobuf.ByteString - getInstanceIdBytes() { + public com.google.protobuf.ByteString getInstanceIdBytes() { java.lang.Object ref = instanceId_; 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); instanceId_ = b; return b; } else { @@ -9881,54 +11758,61 @@ public java.lang.String getInstanceId() { } } /** + * + * *
        * Cloud SQL instance ID in the form `project:location:instance`.
        * 
* * string instance_id = 1; + * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId( - java.lang.String value) { + public Builder setInstanceId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instanceId_ = value; onChanged(); return this; } /** + * + * *
        * Cloud SQL instance ID in the form `project:location:instance`.
        * 
* * string instance_id = 1; + * * @return This builder for chaining. */ public Builder clearInstanceId() { - + instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /** + * + * *
        * Cloud SQL instance ID in the form `project:location:instance`.
        * 
* * string instance_id = 1; + * * @param value The bytes for instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceIdBytes( - com.google.protobuf.ByteString value) { + public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceId_ = value; onChanged(); return this; @@ -9936,18 +11820,20 @@ public Builder setInstanceIdBytes( private java.lang.Object database_ = ""; /** + * + * *
        * Database name.
        * 
* * string database = 2; + * * @return The database. */ public java.lang.String getDatabase() { java.lang.Object ref = database_; 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(); database_ = s; return s; @@ -9956,20 +11842,21 @@ public java.lang.String getDatabase() { } } /** + * + * *
        * Database name.
        * 
* * string database = 2; + * * @return The bytes for database. */ - public com.google.protobuf.ByteString - getDatabaseBytes() { + public com.google.protobuf.ByteString getDatabaseBytes() { java.lang.Object ref = database_; 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); database_ = b; return b; } else { @@ -9977,54 +11864,61 @@ public java.lang.String getDatabase() { } } /** + * + * *
        * Database name.
        * 
* * string database = 2; + * * @param value The database to set. * @return This builder for chaining. */ - public Builder setDatabase( - java.lang.String value) { + public Builder setDatabase(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + database_ = value; onChanged(); return this; } /** + * + * *
        * Database name.
        * 
* * string database = 2; + * * @return This builder for chaining. */ public Builder clearDatabase() { - + database_ = getDefaultInstance().getDatabase(); onChanged(); return this; } /** + * + * *
        * Database name.
        * 
* * string database = 2; + * * @param value The bytes for database to set. * @return This builder for chaining. */ - public Builder setDatabaseBytes( - com.google.protobuf.ByteString value) { + public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + database_ = value; onChanged(); return this; @@ -10032,115 +11926,172 @@ public Builder setDatabaseBytes( private int type_ = 0; /** + * + * *
        * Type of the Cloud SQL database.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; + * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
        * Type of the Cloud SQL database.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; + * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; + * + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
        * Type of the Cloud SQL database.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; + * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; + * + * * @return The type. */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType getType() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .DatabaseType + getType() { @SuppressWarnings("deprecation") - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType result = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType.valueOf(type_); - return result == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType.UNRECOGNIZED : result; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType + result = + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .DatabaseType.valueOf(type_); + return result == null + ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .DatabaseType.UNRECOGNIZED + : result; } /** + * + * *
        * Type of the Cloud SQL database.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; + * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; + * + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType value) { + public Builder setType( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .DatabaseType + value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Type of the Cloud SQL database.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; + * .google.cloud.bigquery.connection.v1beta1.CloudSqlProperties.DatabaseType type = 3; + * + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential credential_; + private com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + credential_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder> credentialBuilder_; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + .Builder, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CloudSqlCredentialOrBuilder> + credentialBuilder_; /** + * + * *
        * Input only. Cloud SQL credential.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return Whether the credential field is set. */ public boolean hasCredential() { return credentialBuilder_ != null || credential_ != null; } /** + * + * *
        * Input only. Cloud SQL credential.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The credential. */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential getCredential() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + getCredential() { if (credentialBuilder_ == null) { - return credential_ == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.getDefaultInstance() : credential_; + return credential_ == null + ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + .getDefaultInstance() + : credential_; } else { return credentialBuilder_.getMessage(); } } /** + * + * *
        * Input only. Cloud SQL credential.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public Builder setCredential(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential value) { + public Builder setCredential( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential value) { if (credentialBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -10154,14 +12105,19 @@ public Builder setCredential(com.google.cloud.bigquery.connection.v1beta1.Connec return this; } /** + * + * *
        * Input only. Cloud SQL credential.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder setCredential( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder builderForValue) { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder + builderForValue) { if (credentialBuilder_ == null) { credential_ = builderForValue.build(); onChanged(); @@ -10172,17 +12128,25 @@ public Builder setCredential( return this; } /** + * + * *
        * Input only. Cloud SQL credential.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public Builder mergeCredential(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential value) { + public Builder mergeCredential( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential value) { if (credentialBuilder_ == null) { if (credential_ != null) { credential_ = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.newBuilder(credential_).mergeFrom(value).buildPartial(); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + .newBuilder(credential_) + .mergeFrom(value) + .buildPartial(); } else { credential_ = value; } @@ -10194,11 +12158,15 @@ public Builder mergeCredential(com.google.cloud.bigquery.connection.v1beta1.Conn return this; } /** + * + * *
        * Input only. Cloud SQL credential.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder clearCredential() { if (credentialBuilder_ == null) { @@ -10212,52 +12180,77 @@ public Builder clearCredential() { return this; } /** + * + * *
        * Input only. Cloud SQL credential.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder getCredentialBuilder() { - + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder + getCredentialBuilder() { + onChanged(); return getCredentialFieldBuilder().getBuilder(); } /** + * + * *
        * Input only. Cloud SQL credential.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder getCredentialOrBuilder() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CloudSqlCredentialOrBuilder + getCredentialOrBuilder() { if (credentialBuilder_ != null) { return credentialBuilder_.getMessageOrBuilder(); } else { - return credential_ == null ? - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.getDefaultInstance() : credential_; + return credential_ == null + ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + .getDefaultInstance() + : credential_; } } /** + * + * *
        * Input only. Cloud SQL credential.
        * 
* - * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.bigquery.connection.v1beta1.CloudSqlCredential credential = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder> + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + .Builder, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CloudSqlCredentialOrBuilder> getCredentialFieldBuilder() { if (credentialBuilder_ == null) { - credentialBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder>( - getCredential(), - getParentForChildren(), - isClean()); + credentialBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + .Builder, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CloudSqlCredentialOrBuilder>( + getCredential(), getParentForChildren(), isClean()); credential_ = null; } return credentialBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10270,30 +12263,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1beta1.CloudSqlProperties) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1beta1.CloudSqlProperties) - private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CloudSqlProperties + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties(); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudSqlProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudSqlProperties(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudSqlProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CloudSqlProperties(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -10305,72 +12302,86 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface CloudSqlCredentialOrBuilder extends + public interface CloudSqlCredentialOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1beta1.CloudSqlCredential) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The username for the credential.
      * 
* * string username = 1; + * * @return The username. */ java.lang.String getUsername(); /** + * + * *
      * The username for the credential.
      * 
* * string username = 1; + * * @return The bytes for username. */ - com.google.protobuf.ByteString - getUsernameBytes(); + com.google.protobuf.ByteString getUsernameBytes(); /** + * + * *
      * The password for the credential.
      * 
* * string password = 2; + * * @return The password. */ java.lang.String getPassword(); /** + * + * *
      * The password for the credential.
      * 
* * string password = 2; + * * @return The bytes for password. */ - com.google.protobuf.ByteString - getPasswordBytes(); + com.google.protobuf.ByteString getPasswordBytes(); } /** + * + * *
    * Credential info for the Cloud SQL.
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.CloudSqlCredential} */ - public static final class CloudSqlCredential extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class CloudSqlCredential extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1beta1.CloudSqlCredential) CloudSqlCredentialOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CloudSqlCredential.newBuilder() to construct. private CloudSqlCredential(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CloudSqlCredential() { username_ = ""; password_ = ""; @@ -10378,16 +12389,15 @@ private CloudSqlCredential() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CloudSqlCredential(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CloudSqlCredential( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -10406,25 +12416,27 @@ private CloudSqlCredential( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - username_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + username_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + password_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -10432,34 +12444,40 @@ private CloudSqlCredential( } 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.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.class, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + .Builder.class); } public static final int USERNAME_FIELD_NUMBER = 1; private volatile java.lang.Object username_; /** + * + * *
      * The username for the credential.
      * 
* * string username = 1; + * * @return The username. */ @java.lang.Override @@ -10468,29 +12486,29 @@ public java.lang.String getUsername() { 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(); username_ = s; return s; } } /** + * + * *
      * The username for the credential.
      * 
* * string username = 1; + * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; 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); username_ = b; return b; } else { @@ -10501,11 +12519,14 @@ public java.lang.String getUsername() { public static final int PASSWORD_FIELD_NUMBER = 2; private volatile java.lang.Object password_; /** + * + * *
      * The password for the credential.
      * 
* * string password = 2; + * * @return The password. */ @java.lang.Override @@ -10514,29 +12535,29 @@ public java.lang.String getPassword() { 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(); password_ = s; return s; } } /** + * + * *
      * The password for the credential.
      * 
* * string password = 2; + * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; 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); password_ = b; return b; } else { @@ -10545,6 +12566,7 @@ public java.lang.String getPassword() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10556,8 +12578,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(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -10587,17 +12608,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential)) { + if (!(obj + instanceof + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential other = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) obj; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential other = + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) obj; - if (!getUsername() - .equals(other.getUsername())) return false; - if (!getPassword() - .equals(other.getPassword())) return false; + if (!getUsername().equals(other.getUsername())) return false; + if (!getPassword().equals(other.getPassword())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -10618,88 +12640,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + 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.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + 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.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential 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 @@ -10709,44 +12744,51 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Credential info for the Cloud SQL.
      * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1beta1.CloudSqlCredential} */ - 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.bigquery.connection.v1beta1.CloudSqlCredential) com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.class, com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.Builder.class); + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + .class, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + .Builder.class); } - // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.newBuilder() + // Construct using + // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -10758,19 +12800,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential getDefaultInstanceForType() { - return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.getDefaultInstance(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + getDefaultInstanceForType() { + return com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential build() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential result = buildPartial(); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + build() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -10778,8 +12824,11 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCred } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential buildPartial() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential result = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential(this); + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + buildPartial() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential result = + new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential( + this); result.username_ = username_; result.password_ = password_; onBuilt(); @@ -10790,46 +12839,56 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCred 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.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) { - return mergeFrom((com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential)other); + if (other + instanceof + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) { + return mergeFrom( + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential other) { - if (other == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential other) { + if (other + == com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + .getDefaultInstance()) return this; if (!other.getUsername().isEmpty()) { username_ = other.username_; onChanged(); @@ -10853,11 +12912,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential parsedMessage = null; + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -10869,18 +12931,20 @@ public Builder mergeFrom( private java.lang.Object username_ = ""; /** + * + * *
        * The username for the credential.
        * 
* * string username = 1; + * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; 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(); username_ = s; return s; @@ -10889,20 +12953,21 @@ public java.lang.String getUsername() { } } /** + * + * *
        * The username for the credential.
        * 
* * string username = 1; + * * @return The bytes for username. */ - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; 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); username_ = b; return b; } else { @@ -10910,54 +12975,61 @@ public java.lang.String getUsername() { } } /** + * + * *
        * The username for the credential.
        * 
* * string username = 1; + * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername( - java.lang.String value) { + public Builder setUsername(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; onChanged(); return this; } /** + * + * *
        * The username for the credential.
        * 
* * string username = 1; + * * @return This builder for chaining. */ public Builder clearUsername() { - + username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** + * + * *
        * The username for the credential.
        * 
* * string username = 1; + * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes( - com.google.protobuf.ByteString value) { + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -10965,18 +13037,20 @@ public Builder setUsernameBytes( private java.lang.Object password_ = ""; /** + * + * *
        * The password for the credential.
        * 
* * string password = 2; + * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; 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(); password_ = s; return s; @@ -10985,20 +13059,21 @@ public java.lang.String getPassword() { } } /** + * + * *
        * The password for the credential.
        * 
* * string password = 2; + * * @return The bytes for password. */ - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; 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); password_ = b; return b; } else { @@ -11006,58 +13081,66 @@ public java.lang.String getPassword() { } } /** + * + * *
        * The password for the credential.
        * 
* * string password = 2; + * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword( - java.lang.String value) { + public Builder setPassword(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; onChanged(); return this; } /** + * + * *
        * The password for the credential.
        * 
* * string password = 2; + * * @return This builder for chaining. */ public Builder clearPassword() { - + password_ = getDefaultInstance().getPassword(); onChanged(); return this; } /** + * + * *
        * The password for the credential.
        * 
* * string password = 2; + * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -11070,30 +13153,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1beta1.CloudSqlCredential) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1beta1.CloudSqlCredential) - private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CloudSqlCredential + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential(); } - public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudSqlCredential parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudSqlCredential(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudSqlCredential parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CloudSqlCredential(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -11105,272 +13192,291 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1beta1_Connection_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1beta1_Connection_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_connection_v1beta1_Connection_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { java.lang.String[] descriptorData = { - "\n9google/cloud/bigquery/connection/v1bet" + - "a1/connection.proto\022(google.cloud.bigque" + - "ry.connection.v1beta1\032\034google/api/annota" + - "tions.proto\032\027google/api/client.proto\032\037go" + - "ogle/api/field_behavior.proto\032\031google/ap" + - "i/resource.proto\032\036google/iam/v1/iam_poli" + - "cy.proto\032\032google/iam/v1/policy.proto\032\033go" + - "ogle/protobuf/empty.proto\032 google/protob" + - "uf/field_mask.proto\032\036google/protobuf/wra" + - "ppers.proto\"\277\001\n\027CreateConnectionRequest\022" + - "9\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googl" + - "eapis.com/Location\022\032\n\rconnection_id\030\002 \001(" + - "\tB\003\340A\001\022M\n\nconnection\030\003 \001(\01324.google.clou" + - "d.bigquery.connection.v1beta1.Connection" + - "B\003\340A\002\"Z\n\024GetConnectionRequest\022B\n\004name\030\001 " + - "\001(\tB4\340A\002\372A.\n,bigqueryconnection.googleap" + - "is.com/Connection\"\237\001\n\026ListConnectionsReq" + - "uest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations." + - "googleapis.com/Location\0226\n\013max_results\030\002" + - " \001(\0132\034.google.protobuf.UInt32ValueB\003\340A\002\022" + - "\022\n\npage_token\030\003 \001(\t\"}\n\027ListConnectionsRe" + - "sponse\022\027\n\017next_page_token\030\001 \001(\t\022I\n\013conne" + - "ctions\030\002 \003(\01324.google.cloud.bigquery.con" + - "nection.v1beta1.Connection\"\342\001\n\027UpdateCon" + - "nectionRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,bi" + - "gqueryconnection.googleapis.com/Connecti" + - "on\022M\n\nconnection\030\002 \001(\01324.google.cloud.bi" + - "gquery.connection.v1beta1.ConnectionB\003\340A" + - "\002\0224\n\013update_mask\030\003 \001(\0132\032.google.protobuf" + - ".FieldMaskB\003\340A\002\"\217\001\n!UpdateConnectionCred" + - "entialRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022W\n\ncred" + - "ential\030\002 \001(\0132>.google.cloud.bigquery.con" + - "nection.v1beta1.ConnectionCredentialB\003\340A" + - "\002\"]\n\027DeleteConnectionRequest\022B\n\004name\030\001 \001" + - "(\tB4\340A\002\372A.\n,bigqueryconnection.googleapi" + - "s.com/Connection\"\366\002\n\nConnection\022\014\n\004name\030" + - "\001 \001(\t\022\025\n\rfriendly_name\030\002 \001(\t\022\023\n\013descript" + - "ion\030\003 \001(\t\022Q\n\tcloud_sql\030\004 \001(\0132<.google.cl" + - "oud.bigquery.connection.v1beta1.CloudSql" + - "PropertiesH\000\022\032\n\rcreation_time\030\005 \001(\003B\003\340A\003" + - "\022\037\n\022last_modified_time\030\006 \001(\003B\003\340A\003\022\033\n\016has" + - "_credential\030\007 \001(\010B\003\340A\003:s\352Ap\n,bigquerycon" + - "nection.googleapis.com/Connection\022@proje" + - "cts/{project}/locations/{location}/conne" + - "ctions/{connection}B\014\n\nproperties\"w\n\024Con" + - "nectionCredential\022Q\n\tcloud_sql\030\001 \001(\0132<.g" + - "oogle.cloud.bigquery.connection.v1beta1." + - "CloudSqlCredentialH\000B\014\n\ncredential\"\263\002\n\022C" + - "loudSqlProperties\022\023\n\013instance_id\030\001 \001(\t\022\020" + - "\n\010database\030\002 \001(\t\022W\n\004type\030\003 \001(\0162I.google." + - "cloud.bigquery.connection.v1beta1.CloudS" + - "qlProperties.DatabaseType\022U\n\ncredential\030" + - "\004 \001(\0132<.google.cloud.bigquery.connection" + - ".v1beta1.CloudSqlCredentialB\003\340A\004\"F\n\014Data" + - "baseType\022\035\n\031DATABASE_TYPE_UNSPECIFIED\020\000\022" + - "\014\n\010POSTGRES\020\001\022\t\n\005MYSQL\020\002\"8\n\022CloudSqlCred" + - "ential\022\020\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001" + - "(\t2\230\020\n\021ConnectionService\022\367\001\n\020CreateConne" + - "ction\022A.google.cloud.bigquery.connection" + - ".v1beta1.CreateConnectionRequest\0324.googl" + - "e.cloud.bigquery.connection.v1beta1.Conn" + - "ection\"j\202\323\344\223\002B\"4/v1beta1/{parent=project" + - "s/*/locations/*}/connections:\nconnection" + - "\332A\037parent,connection,connection_id\022\312\001\n\rG" + - "etConnection\022>.google.cloud.bigquery.con" + - "nection.v1beta1.GetConnectionRequest\0324.g" + - "oogle.cloud.bigquery.connection.v1beta1." + - "Connection\"C\202\323\344\223\0026\0224/v1beta1/{name=proje" + - "cts/*/locations/*/connections/*}\332A\004name\022" + - "\351\001\n\017ListConnections\022@.google.cloud.bigqu" + - "ery.connection.v1beta1.ListConnectionsRe" + - "quest\032A.google.cloud.bigquery.connection" + - ".v1beta1.ListConnectionsResponse\"Q\202\323\344\223\0026" + - "\0224/v1beta1/{parent=projects/*/locations/" + - "*}/connections\332A\022parent,max_results\022\363\001\n\020" + - "UpdateConnection\022A.google.cloud.bigquery" + - ".connection.v1beta1.UpdateConnectionRequ" + - "est\0324.google.cloud.bigquery.connection.v" + - "1beta1.Connection\"f\202\323\344\223\002B24/v1beta1/{nam" + - "e=projects/*/locations/*/connections/*}:" + - "\nconnection\332A\033name,connection,update_mas" + - "k\022\350\001\n\032UpdateConnectionCredential\022K.googl" + - "e.cloud.bigquery.connection.v1beta1.Upda" + - "teConnectionCredentialRequest\032\026.google.p" + - "rotobuf.Empty\"e\202\323\344\223\002M2?/v1beta1/{name=pr" + - "ojects/*/locations/*/connections/*/crede" + - "ntial}:\ncredential\332A\017name,credential\022\262\001\n" + - "\020DeleteConnection\022A.google.cloud.bigquer" + - "y.connection.v1beta1.DeleteConnectionReq" + - "uest\032\026.google.protobuf.Empty\"C\202\323\344\223\0026*4/v" + - "1beta1/{name=projects/*/locations/*/conn" + - "ections/*}\332A\004name\022\256\001\n\014GetIamPolicy\022\".goo" + - "gle.iam.v1.GetIamPolicyRequest\032\025.google." + - "iam.v1.Policy\"c\202\323\344\223\002J\"E/v1beta1/{resourc" + - "e=projects/*/locations/*/connections/*}:" + - "getIamPolicy:\001*\332A\020resource,options\022\255\001\n\014S" + - "etIamPolicy\022\".google.iam.v1.SetIamPolicy" + - "Request\032\025.google.iam.v1.Policy\"b\202\323\344\223\002J\"E" + - "/v1beta1/{resource=projects/*/locations/" + - "*/connections/*}:setIamPolicy:\001*\332A\017resou" + - "rce,policy\022\330\001\n\022TestIamPermissions\022(.goog" + - "le.iam.v1.TestIamPermissionsRequest\032).go" + - "ogle.iam.v1.TestIamPermissionsResponse\"m" + - "\202\323\344\223\002P\"K/v1beta1/{resource=projects/*/lo" + - "cations/*/connections/*}:testIamPermissi" + - "ons:\001*\332A\024resource,permissions\032~\312A!bigque" + - "ryconnection.googleapis.com\322AWhttps://ww" + - "w.googleapis.com/auth/bigquery,https://w" + - "ww.googleapis.com/auth/cloud-platformB\351\001" + - "\n,com.google.cloud.bigquery.connection.v" + - "1beta1B\017ConnectionProtoZRgoogle.golang.o" + - "rg/genproto/googleapis/cloud/bigquery/co" + - "nnection/v1beta1;connection\252\002(Google.Clo" + - "ud.BigQuery.Connection.V1Beta1\312\002(Google\\" + - "Cloud\\BigQuery\\Connection\\V1beta1b\006proto" + - "3" + "\n9google/cloud/bigquery/connection/v1bet" + + "a1/connection.proto\022(google.cloud.bigque" + + "ry.connection.v1beta1\032\034google/api/annota" + + "tions.proto\032\027google/api/client.proto\032\037go" + + "ogle/api/field_behavior.proto\032\031google/ap" + + "i/resource.proto\032\036google/iam/v1/iam_poli" + + "cy.proto\032\032google/iam/v1/policy.proto\032\033go" + + "ogle/protobuf/empty.proto\032 google/protob" + + "uf/field_mask.proto\032\036google/protobuf/wra" + + "ppers.proto\"\277\001\n\027CreateConnectionRequest\022" + + "9\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googl" + + "eapis.com/Location\022\032\n\rconnection_id\030\002 \001(" + + "\tB\003\340A\001\022M\n\nconnection\030\003 \001(\01324.google.clou" + + "d.bigquery.connection.v1beta1.Connection" + + "B\003\340A\002\"Z\n\024GetConnectionRequest\022B\n\004name\030\001 " + + "\001(\tB4\340A\002\372A.\n,bigqueryconnection.googleap" + + "is.com/Connection\"\237\001\n\026ListConnectionsReq" + + "uest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations." + + "googleapis.com/Location\0226\n\013max_results\030\002" + + " \001(\0132\034.google.protobuf.UInt32ValueB\003\340A\002\022" + + "\022\n\npage_token\030\003 \001(\t\"}\n\027ListConnectionsRe" + + "sponse\022\027\n\017next_page_token\030\001 \001(\t\022I\n\013conne" + + "ctions\030\002 \003(\01324.google.cloud.bigquery.con" + + "nection.v1beta1.Connection\"\342\001\n\027UpdateCon" + + "nectionRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,bi" + + "gqueryconnection.googleapis.com/Connecti" + + "on\022M\n\nconnection\030\002 \001(\01324.google.cloud.bi" + + "gquery.connection.v1beta1.ConnectionB\003\340A" + + "\002\0224\n\013update_mask\030\003 \001(\0132\032.google.protobuf" + + ".FieldMaskB\003\340A\002\"\217\001\n!UpdateConnectionCred" + + "entialRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022W\n\ncred" + + "ential\030\002 \001(\0132>.google.cloud.bigquery.con" + + "nection.v1beta1.ConnectionCredentialB\003\340A" + + "\002\"]\n\027DeleteConnectionRequest\022B\n\004name\030\001 \001" + + "(\tB4\340A\002\372A.\n,bigqueryconnection.googleapi" + + "s.com/Connection\"\366\002\n\nConnection\022\014\n\004name\030" + + "\001 \001(\t\022\025\n\rfriendly_name\030\002 \001(\t\022\023\n\013descript" + + "ion\030\003 \001(\t\022Q\n\tcloud_sql\030\004 \001(\0132<.google.cl" + + "oud.bigquery.connection.v1beta1.CloudSql" + + "PropertiesH\000\022\032\n\rcreation_time\030\005 \001(\003B\003\340A\003" + + "\022\037\n\022last_modified_time\030\006 \001(\003B\003\340A\003\022\033\n\016has" + + "_credential\030\007 \001(\010B\003\340A\003:s\352Ap\n,bigquerycon" + + "nection.googleapis.com/Connection\022@proje" + + "cts/{project}/locations/{location}/conne" + + "ctions/{connection}B\014\n\nproperties\"w\n\024Con" + + "nectionCredential\022Q\n\tcloud_sql\030\001 \001(\0132<.g" + + "oogle.cloud.bigquery.connection.v1beta1." + + "CloudSqlCredentialH\000B\014\n\ncredential\"\263\002\n\022C" + + "loudSqlProperties\022\023\n\013instance_id\030\001 \001(\t\022\020" + + "\n\010database\030\002 \001(\t\022W\n\004type\030\003 \001(\0162I.google." + + "cloud.bigquery.connection.v1beta1.CloudS" + + "qlProperties.DatabaseType\022U\n\ncredential\030" + + "\004 \001(\0132<.google.cloud.bigquery.connection" + + ".v1beta1.CloudSqlCredentialB\003\340A\004\"F\n\014Data" + + "baseType\022\035\n\031DATABASE_TYPE_UNSPECIFIED\020\000\022" + + "\014\n\010POSTGRES\020\001\022\t\n\005MYSQL\020\002\"8\n\022CloudSqlCred" + + "ential\022\020\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001" + + "(\t2\230\020\n\021ConnectionService\022\367\001\n\020CreateConne" + + "ction\022A.google.cloud.bigquery.connection" + + ".v1beta1.CreateConnectionRequest\0324.googl" + + "e.cloud.bigquery.connection.v1beta1.Conn" + + "ection\"j\202\323\344\223\002B\"4/v1beta1/{parent=project" + + "s/*/locations/*}/connections:\nconnection" + + "\332A\037parent,connection,connection_id\022\312\001\n\rG" + + "etConnection\022>.google.cloud.bigquery.con" + + "nection.v1beta1.GetConnectionRequest\0324.g" + + "oogle.cloud.bigquery.connection.v1beta1." + + "Connection\"C\202\323\344\223\0026\0224/v1beta1/{name=proje" + + "cts/*/locations/*/connections/*}\332A\004name\022" + + "\351\001\n\017ListConnections\022@.google.cloud.bigqu" + + "ery.connection.v1beta1.ListConnectionsRe" + + "quest\032A.google.cloud.bigquery.connection" + + ".v1beta1.ListConnectionsResponse\"Q\202\323\344\223\0026" + + "\0224/v1beta1/{parent=projects/*/locations/" + + "*}/connections\332A\022parent,max_results\022\363\001\n\020" + + "UpdateConnection\022A.google.cloud.bigquery" + + ".connection.v1beta1.UpdateConnectionRequ" + + "est\0324.google.cloud.bigquery.connection.v" + + "1beta1.Connection\"f\202\323\344\223\002B24/v1beta1/{nam" + + "e=projects/*/locations/*/connections/*}:" + + "\nconnection\332A\033name,connection,update_mas" + + "k\022\350\001\n\032UpdateConnectionCredential\022K.googl" + + "e.cloud.bigquery.connection.v1beta1.Upda" + + "teConnectionCredentialRequest\032\026.google.p" + + "rotobuf.Empty\"e\202\323\344\223\002M2?/v1beta1/{name=pr" + + "ojects/*/locations/*/connections/*/crede" + + "ntial}:\ncredential\332A\017name,credential\022\262\001\n" + + "\020DeleteConnection\022A.google.cloud.bigquer" + + "y.connection.v1beta1.DeleteConnectionReq" + + "uest\032\026.google.protobuf.Empty\"C\202\323\344\223\0026*4/v" + + "1beta1/{name=projects/*/locations/*/conn" + + "ections/*}\332A\004name\022\256\001\n\014GetIamPolicy\022\".goo" + + "gle.iam.v1.GetIamPolicyRequest\032\025.google." + + "iam.v1.Policy\"c\202\323\344\223\002J\"E/v1beta1/{resourc" + + "e=projects/*/locations/*/connections/*}:" + + "getIamPolicy:\001*\332A\020resource,options\022\255\001\n\014S" + + "etIamPolicy\022\".google.iam.v1.SetIamPolicy" + + "Request\032\025.google.iam.v1.Policy\"b\202\323\344\223\002J\"E" + + "/v1beta1/{resource=projects/*/locations/" + + "*/connections/*}:setIamPolicy:\001*\332A\017resou" + + "rce,policy\022\330\001\n\022TestIamPermissions\022(.goog" + + "le.iam.v1.TestIamPermissionsRequest\032).go" + + "ogle.iam.v1.TestIamPermissionsResponse\"m" + + "\202\323\344\223\002P\"K/v1beta1/{resource=projects/*/lo" + + "cations/*/connections/*}:testIamPermissi" + + "ons:\001*\332A\024resource,permissions\032~\312A!bigque" + + "ryconnection.googleapis.com\322AWhttps://ww" + + "w.googleapis.com/auth/bigquery,https://w" + + "ww.googleapis.com/auth/cloud-platformB\351\001" + + "\n,com.google.cloud.bigquery.connection.v" + + "1beta1B\017ConnectionProtoZRgoogle.golang.o" + + "rg/genproto/googleapis/cloud/bigquery/co" + + "nnection/v1beta1;connection\252\002(Google.Clo" + + "ud.BigQuery.Connection.V1Beta1\312\002(Google\\" + + "Cloud\\BigQuery\\Connection\\V1beta1b\006proto" + + "3" }; - 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.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - }); + 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.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + }); internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_descriptor, - new java.lang.String[] { "Parent", "ConnectionId", "Connection", }); + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1beta1_CreateConnectionRequest_descriptor, + new java.lang.String[] { + "Parent", "ConnectionId", "Connection", + }); internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_descriptor, - new java.lang.String[] { "Name", }); + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1beta1_GetConnectionRequest_descriptor, + new java.lang.String[] { + "Name", + }); internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_descriptor, - new java.lang.String[] { "Parent", "MaxResults", "PageToken", }); + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsRequest_descriptor, + new java.lang.String[] { + "Parent", "MaxResults", "PageToken", + }); internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_descriptor, - new java.lang.String[] { "NextPageToken", "Connections", }); + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1beta1_ListConnectionsResponse_descriptor, + new java.lang.String[] { + "NextPageToken", "Connections", + }); internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_descriptor, - new java.lang.String[] { "Name", "Connection", "UpdateMask", }); + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionRequest_descriptor, + new java.lang.String[] { + "Name", "Connection", "UpdateMask", + }); internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_descriptor, - new java.lang.String[] { "Name", "Credential", }); + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1beta1_UpdateConnectionCredentialRequest_descriptor, + new java.lang.String[] { + "Name", "Credential", + }); internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_descriptor, - new java.lang.String[] { "Name", }); + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1beta1_DeleteConnectionRequest_descriptor, + new java.lang.String[] { + "Name", + }); internal_static_google_cloud_bigquery_connection_v1beta1_Connection_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_bigquery_connection_v1beta1_Connection_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1beta1_Connection_descriptor, - new java.lang.String[] { "Name", "FriendlyName", "Description", "CloudSql", "CreationTime", "LastModifiedTime", "HasCredential", "Properties", }); + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_bigquery_connection_v1beta1_Connection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1beta1_Connection_descriptor, + new java.lang.String[] { + "Name", + "FriendlyName", + "Description", + "CloudSql", + "CreationTime", + "LastModifiedTime", + "HasCredential", + "Properties", + }); internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_descriptor, - new java.lang.String[] { "CloudSql", "Credential", }); + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1beta1_ConnectionCredential_descriptor, + new java.lang.String[] { + "CloudSql", "Credential", + }); internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_descriptor, - new java.lang.String[] { "InstanceId", "Database", "Type", "Credential", }); + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlProperties_descriptor, + new java.lang.String[] { + "InstanceId", "Database", "Type", "Credential", + }); internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_descriptor, - new java.lang.String[] { "Username", "Password", }); + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1beta1_CloudSqlCredential_descriptor, + new java.lang.String[] { + "Username", "Password", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -11380,8 +13486,8 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCred registry.add(com.google.api.ClientProto.oauthScopes); registry.add(com.google.api.ResourceProto.resource); registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/LocationName.java b/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/LocationName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/LocationName.java rename to proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/LocationName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/proto/google/cloud/bigquery/connection/v1beta1/connection.proto b/proto-google-cloud-bigqueryconnection-v1beta1/src/main/proto/google/cloud/bigquery/connection/v1beta1/connection.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/proto/google/cloud/bigquery/connection/v1beta1/connection.proto rename to proto-google-cloud-bigqueryconnection-v1beta1/src/main/proto/google/cloud/bigquery/connection/v1beta1/connection.proto From 49001f93a9af132c6e5f77cdd81ec32e5f8a3606 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Thu, 23 Jun 2022 13:38:31 -0400 Subject: [PATCH 3/3] deps: adding gax-httpjson --- google-cloud-bigqueryconnection/pom.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/google-cloud-bigqueryconnection/pom.xml b/google-cloud-bigqueryconnection/pom.xml index a952134d..a3ef9656 100644 --- a/google-cloud-bigqueryconnection/pom.xml +++ b/google-cloud-bigqueryconnection/pom.xml @@ -66,6 +66,10 @@ com.google.api gax-grpc + + com.google.api + gax-httpjson + org.threeten threetenbp @@ -99,12 +103,24 @@ test + + com.google.api + gax + testlib + test + com.google.api gax-grpc testlib test + + com.google.api + gax-httpjson + testlib + test +