From d817bfa8fb349e297b3acbad557c3fd25cc64e04 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 12 Jul 2021 22:48:03 +0000 Subject: [PATCH 1/2] feat: add cloud spanner connection support PiperOrigin-RevId: 384325792 Source-Link: https://github.com/googleapis/googleapis/commit/eba54922f4dd1a7e25ee44e0769a3af2ae2d2c0d Source-Link: https://github.com/googleapis/googleapis-gen/commit/6fdc90c3327a74656e7654a59e0ed4fafdda946e --- .../connection/v1/ConnectionServiceGrpc.java | 1215 --- .../v1beta1/ConnectionServiceGrpc.java | 1416 --- .../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 | 0 .../v1/ConnectionServiceClientTest.java | 0 .../v1/MockConnectionService.java | 0 .../v1/MockConnectionServiceImpl.java | 0 .../connection/v1/ConnectionServiceGrpc.java | 944 ++ .../bigquery/connection/v1/AwsAccessRole.java | 775 ++ .../connection/v1/AwsAccessRoleOrBuilder.java | 53 + .../connection/v1/AwsCrossAccountRole.java | 472 +- .../v1/AwsCrossAccountRoleOrBuilder.java | 45 +- .../bigquery/connection/v1/AwsProperties.java | 691 +- .../connection/v1/AwsPropertiesOrBuilder.java | 62 +- .../connection/v1/CloudSpannerProperties.java | 674 ++ .../v1/CloudSpannerPropertiesOrBuilder.java | 39 + .../connection/v1/CloudSqlCredential.java | 393 +- .../v1/CloudSqlCredentialOrBuilder.java | 36 +- .../connection/v1/CloudSqlProperties.java | 697 +- .../v1/CloudSqlPropertiesOrBuilder.java | 62 +- .../bigquery/connection/v1/Connection.java | 1109 +-- .../connection/v1/ConnectionName.java | 6 +- .../connection/v1/ConnectionOrBuilder.java | 93 +- .../connection/v1/ConnectionOuterClass.java | 318 + .../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 | 4 +- .../v1/UpdateConnectionRequest.java | 640 +- .../v1/UpdateConnectionRequestOrBuilder.java | 72 +- .../bigquery/connection/v1/connection.proto | 30 +- .../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 | 0 .../v1beta1/ConnectionServiceClientTest.java | 0 .../v1beta1/MockConnectionService.java | 0 .../v1beta1/MockConnectionServiceImpl.java | 0 .../v1beta1/ConnectionServiceGrpc.java | 1030 +++ .../connection/v1beta1/ConnectionName.java | 6 +- .../connection/v1beta1/ConnectionProto.java | 7904 ++++++----------- .../connection/v1beta1/LocationName.java | 4 +- .../connection/v1beta1/connection.proto | 0 .../connection/v1/ConnectionOuterClass.java | 322 - .../v1/DeleteConnectionRequestOrBuilder.java | 56 - .../v1/GetConnectionRequestOrBuilder.java | 56 - 63 files changed, 9739 insertions(+), 11995 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 (98%) rename {google-cloud-bigqueryconnection => owl-bot-staging/v1/google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java (97%) 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 (98%) 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 (100%) 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 create mode 100644 owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.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/AwsCrossAccountRole.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/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 (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/AwsPropertiesOrBuilder.java (56%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.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/CloudSqlCredential.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/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 (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/ConnectionName.java (97%) 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 (79%) 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 (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/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 (65%) 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 (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/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 (98%) 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 (91%) rename {google-cloud-bigqueryconnection => owl-bot-staging/v1beta1/google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java (99%) rename {google-cloud-bigqueryconnection => owl-bot-staging/v1beta1/google-cloud-bigqueryconnection}/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java (97%) 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 (98%) 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 (100%) 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 (97%) 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 (98%) 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 8d1cedc3..00000000 --- a/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java +++ /dev/null @@ -1,1215 +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") -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 cd47a7b2..00000000 --- a/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java +++ /dev/null @@ -1,1416 +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") -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 98% 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 61753b19..8fd49b97 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. *
* @@ -1111,10 +1111,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( @@ -1169,10 +1166,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 97% 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 a999d00a..7b09d0b8 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 @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.bigquery.connection.v1.Connection; @@ -54,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/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 98% 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 095b589f..2eb11903 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 @@ -69,10 +69,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/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 100% 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 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..e7ffc7a1 --- /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,944 @@ +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") +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/AwsAccessRole.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java new file mode 100644 index 00000000..2848d20b --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java @@ -0,0 +1,775 @@ +// 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.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.connection.v1.AwsAccessRole} + */ +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; + // Use AwsAccessRole.newBuilder() to construct. + private AwsAccessRole(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AwsAccessRole() { + iamRoleId_ = ""; + identity_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AwsAccessRole(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AwsAccessRole( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + 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; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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 + public java.lang.String getIamRoleId() { + java.lang.Object ref = iamRoleId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + 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() { + 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); + iamRoleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getIdentity() { + java.lang.Object ref = identity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + 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() { + 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); + identity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getIamRoleIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, iamRoleId_); + } + if (!getIdentityBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, identity_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIamRoleIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, iamRoleId_); + } + if (!getIdentityBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, identity_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getIamRoleId() + .equals(other.getIamRoleId())) return false; + if (!getIdentity() + .equals(other.getIdentity())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + IAM_ROLE_ID_FIELD_NUMBER; + hash = (53 * hash) + getIamRoleId().hashCode(); + hash = (37 * hash) + IDENTITY_FIELD_NUMBER; + hash = (53 * hash) + getIdentity().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.connection.v1.AwsAccessRole parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @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.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); + } + + @java.lang.Override + 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.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.connection.v1.AwsAccessRole} + */ + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + iamRoleId_ = ""; + + identity_ = ""; + + return this; + } + + @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; + } + + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.AwsAccessRole getDefaultInstanceForType() { + return com.google.cloud.bigquery.connection.v1.AwsAccessRole.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.AwsAccessRole build() { + com.google.cloud.bigquery.connection.v1.AwsAccessRole result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.iamRoleId_ = iamRoleId_; + result.identity_ = identity_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + 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) { + return super.clearField(field); + } + @java.lang.Override + 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) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + 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.v1.AwsAccessRole) { + return mergeFrom((com.google.cloud.bigquery.connection.v1.AwsAccessRole)other); + } else { + super.mergeFrom(other); + return this; + } + } + + 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.getIamRoleId().isEmpty()) { + iamRoleId_ = other.iamRoleId_; + onChanged(); + } + if (!other.getIdentity().isEmpty()) { + identity_ = other.identity_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.bigquery.connection.v1.AwsAccessRole parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.bigquery.connection.v1.AwsAccessRole) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + iamRoleId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = iamRoleId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + iamRoleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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) { + if (value == null) { + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + iamRoleId_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + identity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = identity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + identity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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) { + if (value == null) { + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + identity_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.bigquery.connection.v1.AwsAccessRole getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.java new file mode 100644 index 00000000..192c1165 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.java @@ -0,0 +1,53 @@ +// 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 + // @@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(); + + /** + *
+   * 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(); +} 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 72% 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 2d04cf37..4a6197be 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,73 +56,65 @@ 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) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.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 @@ -148,30 +123,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 { @@ -182,14 +157,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 @@ -198,29 +170,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 { @@ -231,8 +203,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
@@ -240,7 +210,6 @@ public com.google.protobuf.ByteString getIamUserIdBytes() {
    * 
* * string external_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The externalId. */ @java.lang.Override @@ -249,15 +218,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
@@ -265,15 +233,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 { @@ -282,7 +251,6 @@ public com.google.protobuf.ByteString getExternalIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -294,7 +262,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 (!getIamRoleIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, iamRoleId_); } @@ -330,17 +299,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; } @@ -364,104 +335,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.
@@ -469,23 +432,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()
@@ -493,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();
@@ -515,9 +477,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
@@ -536,8 +498,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_;
@@ -549,39 +510,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;
@@ -589,8 +549,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();
@@ -622,8 +581,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) {
@@ -635,21 +593,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; @@ -658,22 +614,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 { @@ -681,64 +636,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; @@ -746,20 +694,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; @@ -768,21 +714,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 { @@ -790,61 +735,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; @@ -852,8 +790,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
@@ -861,13 +797,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; @@ -876,8 +812,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
@@ -885,14 +819,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 { @@ -900,8 +835,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
@@ -909,22 +842,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
@@ -932,18 +863,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
@@ -951,23 +879,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); } @@ -977,12 +905,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(); } @@ -991,16 +919,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; @@ -1015,4 +943,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 53% 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 ab1eb518..2a9750a3 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,73 +52,75 @@ 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(); + } + 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 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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; } @@ -150,35 +136,31 @@ public static AuthenticationMethodCase valueOf(int value) { public static AuthenticationMethodCase forNumber(int value) { switch (value) { - case 2: - return CROSS_ACCOUNT_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 @@ -186,27 +168,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.
@@ -215,16 +192,60 @@ 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();
   }
 
-  private byte memoizedIsInitialized = -1;
+  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 + 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.getDefaultInstance(); + } + /** + *
+   * Authentication using Google owned service account to assume into
+   * customer's AWS IAM Role.
+   * 
+ * + * .google.cloud.bigquery.connection.v1.AwsAccessRole access_role = 3; + */ + @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.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -236,10 +257,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_); } unknownFields.writeTo(output); } @@ -251,10 +275,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -264,18 +290,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; break; case 0: default: @@ -296,6 +326,10 @@ public int hashCode() { hash = (37 * hash) + CROSS_ACCOUNT_ROLE_FIELD_NUMBER; hash = (53 * hash) + getCrossAccountRole().hashCode(); break; + case 3: + hash = (37 * hash) + ACCESS_ROLE_FIELD_NUMBER; + hash = (53 * hash) + getAccessRole().hashCode(); + break; case 0: default: } @@ -305,127 +339,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() @@ -433,15 +457,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(); @@ -451,9 +476,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 @@ -472,8 +497,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_; @@ -481,6 +505,13 @@ public com.google.cloud.bigquery.connection.v1.AwsProperties buildPartial() { result.authenticationMethod_ = crossAccountRoleBuilder_.build(); } } + if (authenticationMethodCase_ == 3) { + if (accessRoleBuilder_ == null) { + result.authenticationMethod_ = authenticationMethod_; + } else { + result.authenticationMethod_ = accessRoleBuilder_.build(); + } + } result.authenticationMethodCase_ = authenticationMethodCase_; onBuilt(); return result; @@ -490,39 +521,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; @@ -530,18 +560,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 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(); @@ -562,8 +593,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) { @@ -572,12 +602,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() { @@ -587,21 +617,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 @@ -609,23 +634,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 { @@ -636,8 +657,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.
@@ -645,8 +664,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();
@@ -660,8 +678,6 @@ public Builder setCrossAccountRole(
       return this;
     }
     /**
-     *
-     *
      * 
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
@@ -681,8 +697,6 @@ public Builder setCrossAccountRole(
       return this;
     }
     /**
-     *
-     *
      * 
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
@@ -690,19 +704,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;
         }
@@ -717,8 +724,6 @@ public Builder mergeCrossAccountRole(
       return this;
     }
     /**
-     *
-     *
      * 
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
@@ -743,8 +748,6 @@ public Builder clearCrossAccountRole() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
@@ -752,13 +755,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.
@@ -767,21 +767,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.
@@ -790,33 +786,212 @@ 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_;
+    /**
+     * 
+     * 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 - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + 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 (accessRoleBuilder_ == null) { + if (authenticationMethodCase_ == 3) { + return (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_; + } + return com.google.cloud.bigquery.connection.v1.AwsAccessRole.getDefaultInstance(); + } else { + if (authenticationMethodCase_ == 3) { + return accessRoleBuilder_.getMessage(); + } + return com.google.cloud.bigquery.connection.v1.AwsAccessRole.getDefaultInstance(); + } + } + /** + *
+     * Authentication using Google owned service account to assume into
+     * customer's AWS IAM Role.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.AwsAccessRole access_role = 3; + */ + public Builder setAccessRole(com.google.cloud.bigquery.connection.v1.AwsAccessRole value) { + if (accessRoleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authenticationMethod_ = value; + onChanged(); + } else { + accessRoleBuilder_.setMessage(value); + } + authenticationMethodCase_ = 3; + return this; + } + /** + *
+     * Authentication using Google owned service account to assume into
+     * customer's AWS IAM Role.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.AwsAccessRole access_role = 3; + */ + public Builder setAccessRole( + com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder builderForValue) { + if (accessRoleBuilder_ == null) { + authenticationMethod_ = builderForValue.build(); + onChanged(); + } else { + accessRoleBuilder_.setMessage(builderForValue.build()); + } + authenticationMethodCase_ = 3; + return this; + } + /** + *
+     * Authentication using Google owned service account to assume into
+     * customer's AWS IAM Role.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.AwsAccessRole access_role = 3; + */ + 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(); + } else { + authenticationMethod_ = value; + } + onChanged(); + } else { + if (authenticationMethodCase_ == 3) { + accessRoleBuilder_.mergeFrom(value); + } + accessRoleBuilder_.setMessage(value); + } + authenticationMethodCase_ = 3; + return this; + } + /** + *
+     * Authentication using Google owned service account to assume into
+     * customer's AWS IAM Role.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.AwsAccessRole access_role = 3; + */ + public Builder clearAccessRole() { + if (accessRoleBuilder_ == null) { + if (authenticationMethodCase_ == 3) { + authenticationMethodCase_ = 0; + authenticationMethod_ = null; + onChanged(); + } + } else { + if (authenticationMethodCase_ == 3) { + authenticationMethodCase_ = 0; + authenticationMethod_ = null; + } + accessRoleBuilder_.clear(); + } + return this; + } + /** + *
+     * Authentication using Google owned service account to assume into
+     * customer's AWS IAM Role.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.AwsAccessRole access_role = 3; + */ + public com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder getAccessRoleBuilder() { + return getAccessRoleFieldBuilder().getBuilder(); + } + /** + *
+     * Authentication using Google owned service account to assume into
+     * customer's AWS IAM Role.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.AwsAccessRole access_role = 3; + */ + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder getAccessRoleOrBuilder() { + if ((authenticationMethodCase_ == 3) && (accessRoleBuilder_ != null)) { + return accessRoleBuilder_.getMessageOrBuilder(); + } else { + if (authenticationMethodCase_ == 3) { + 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.
+     * 
+ * + * .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> + getAccessRoleFieldBuilder() { + if (accessRoleBuilder_ == null) { + if (!(authenticationMethodCase_ == 3)) { + 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>( + (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_, + getParentForChildren(), + isClean()); + authenticationMethod_ = null; + } + authenticationMethodCase_ = 3; + onChanged();; + return accessRoleBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -826,12 +1001,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(); } @@ -840,16 +1015,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; @@ -864,4 +1039,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 56% 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 0a0ad7cc..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,9 +35,37 @@ 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.
+   * 
+ * + * .google.cloud.bigquery.connection.v1.AwsAccessRole access_role = 3; + */ + 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/CloudSpannerProperties.java b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.java new file mode 100644 index 00000000..0f0465a3 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.java @@ -0,0 +1,674 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.CloudSpannerProperties) + CloudSpannerPropertiesOrBuilder { +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) { + return new CloudSpannerProperties(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CloudSpannerProperties( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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 + public java.lang.String getDatabase() { + java.lang.Object ref = database_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + 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() { + 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); + database_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public boolean getUseParallelism() { + return useParallelism_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getDatabaseBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_); + } + if (useParallelism_ != false) { + output.writeBool(2, useParallelism_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDatabaseBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, database_); + } + if (useParallelism_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, useParallelism_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getDatabase() + .equals(other.getDatabase())) return false; + if (getUseParallelism() + != other.getUseParallelism()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().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 = (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 { + return PARSER.parseFrom(data); + } + public static com.google.cloud.bigquery.connection.v1.CloudSpannerProperties 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.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 { + return PARSER.parseFrom(data); + } + public static com.google.cloud.bigquery.connection.v1.CloudSpannerProperties 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.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) + throws java.io.IOException { + 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, + 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.v1.CloudSpannerProperties 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.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); + } + + @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.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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + database_ = ""; + + useParallelism_ = false; + + return this; + } + + @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; + } + + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties getDefaultInstanceForType() { + return com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties build() { + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.database_ = database_; + result.useParallelism_ = useParallelism_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + 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) { + return super.clearField(field); + } + @java.lang.Override + 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) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + 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.v1.CloudSpannerProperties) { + return mergeFrom((com.google.cloud.bigquery.connection.v1.CloudSpannerProperties)other); + } else { + super.mergeFrom(other); + return this; + } + } + + 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.getDatabase().isEmpty()) { + database_ = other.database_; + onChanged(); + } + if (other.getUseParallelism() != false) { + setUseParallelism(other.getUseParallelism()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + database_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Cloud Spanner database in the form `project/instance/database'
+     * 
+ * + * string database = 1; + * @return The bytes for database. + */ + 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); + database_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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) { + if (value == null) { + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + database_ = value; + onChanged(); + return this; + } + + private boolean useParallelism_ ; + /** + *
+     * If parallelism should be used when reading from Cloud Spanner
+     * 
+ * + * bool use_parallelism = 2; + * @return The useParallelism. + */ + @java.lang.Override + 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) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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; + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.CloudSpannerProperties(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java new file mode 100644 index 00000000..3bd75fd0 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java @@ -0,0 +1,39 @@ +// 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 + // @@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(); + + /** + *
+   * 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 69% 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 7ee35422..db8e2bb0 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,65 +54,58 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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 @@ -138,29 +114,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 { @@ -171,14 +147,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 @@ -187,29 +160,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 { @@ -218,7 +191,6 @@ public com.google.protobuf.ByteString getPasswordBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,7 +202,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 (!getUsernameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -260,16 +233,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; } @@ -291,127 +265,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() @@ -419,15 +383,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(); @@ -439,9 +404,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 @@ -460,8 +425,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(); @@ -472,39 +436,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; @@ -512,8 +475,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(); @@ -541,8 +503,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) { @@ -554,20 +515,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; @@ -576,21 +535,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 { @@ -598,61 +556,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; @@ -660,20 +611,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; @@ -682,21 +631,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 { @@ -704,68 +652,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); } @@ -775,12 +716,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(); } @@ -789,16 +730,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; @@ -813,4 +754,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 b180b477..476c521d 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,91 +55,79 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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.
      * 
@@ -165,8 +136,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ DATABASE_TYPE_UNSPECIFIED(0), /** - * - * *
      * Cloud SQL for PostgreSQL.
      * 
@@ -175,8 +144,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ POSTGRES(1), /** - * - * *
      * Cloud SQL for MySQL.
      * 
@@ -188,8 +155,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified database type.
      * 
@@ -198,8 +163,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DATABASE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Cloud SQL for PostgreSQL.
      * 
@@ -208,8 +171,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int POSTGRES_VALUE = 1; /** - * - * *
      * Cloud SQL for MySQL.
      * 
@@ -218,6 +179,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( @@ -242,51 +204,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; @@ -306,14 +266,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 @@ -322,29 +279,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 { @@ -355,14 +312,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 @@ -371,29 +325,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 { @@ -404,54 +358,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 @@ -459,43 +397,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; @@ -507,17 +432,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 (!getInstanceIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_); } if (!getDatabaseBytes().isEmpty()) { 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) { @@ -538,14 +461,13 @@ public int getSerializedSize() { if (!getDatabaseBytes().isEmpty()) { 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; @@ -555,20 +477,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; @@ -597,127 +521,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() @@ -725,15 +639,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(); @@ -753,9 +668,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 @@ -774,8 +689,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_; @@ -792,39 +706,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; @@ -832,8 +745,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(); @@ -867,8 +779,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) { @@ -880,20 +791,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; @@ -902,21 +811,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 { @@ -924,61 +832,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; @@ -986,20 +887,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; @@ -1008,21 +907,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 { @@ -1030,61 +928,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; @@ -1092,93 +983,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; @@ -1186,58 +1057,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) { @@ -1253,15 +1105,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) { @@ -1275,24 +1123,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; } @@ -1304,15 +1145,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) { @@ -1326,73 +1163,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); } @@ -1402,12 +1221,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(); } @@ -1416,16 +1235,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; @@ -1440,4 +1259,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 64% 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 56a5e255..3d2d9644 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,128 +56,123 @@ 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();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            propertiesCase_ = 21;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.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),
+    CLOUD_SPANNER(21),
     PROPERTIES_NOT_SET(0);
     private final int value;
-
     private PropertiesCase(int value) {
       this.value = value;
     }
@@ -210,38 +188,33 @@ public static PropertiesCase valueOf(int value) {
 
     public static PropertiesCase forNumber(int value) {
       switch (value) {
-        case 4:
-          return CLOUD_SQL;
-        case 8:
-          return AWS;
-        case 0:
-          return PROPERTIES_NOT_SET;
-        default:
-          return null;
+        case 4: return CLOUD_SQL;
+        case 8: return AWS;
+        case 21: return CLOUD_SPANNER;
+        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 @@ -250,30 +223,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 { @@ -284,14 +257,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 @@ -300,29 +270,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 { @@ -333,14 +303,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 @@ -349,29 +316,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 { @@ -381,14 +348,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 @@ -396,26 +360,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.
    * 
@@ -423,24 +382,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 @@ -448,26 +403,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.
    * 
@@ -477,22 +427,62 @@ 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 CREATION_TIME_FIELD_NUMBER = 5; - private long creationTime_; + 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 + 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.getDefaultInstance(); + } + /** + *
+   * Cloud Spanner properties.
+   * 
* + * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; + */ + @java.lang.Override + 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.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 @@ -503,14 +493,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 @@ -521,14 +508,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 @@ -537,7 +521,6 @@ public boolean getHasCredential() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -549,7 +532,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -560,8 +544,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_); @@ -575,6 +558,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (propertiesCase_ == 8) { 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_); + } unknownFields.writeTo(output); } @@ -594,23 +580,28 @@ 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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -620,27 +611,38 @@ 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; break; case 0: default: @@ -663,11 +665,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; @@ -677,6 +682,10 @@ public int hashCode() { hash = (37 * hash) + AWS_FIELD_NUMBER; hash = (53 * hash) + getAws().hashCode(); break; + case 21: + hash = (37 * hash) + CLOUD_SPANNER_FIELD_NUMBER; + hash = (53 * hash) + getCloudSpanner().hashCode(); + break; case 0: default: } @@ -686,103 +695,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.
@@ -790,23 +792,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()
@@ -814,15 +814,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();
@@ -844,9 +845,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
@@ -865,8 +866,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_;
@@ -884,6 +884,13 @@ public com.google.cloud.bigquery.connection.v1.Connection buildPartial() {
           result.properties_ = awsBuilder_.build();
         }
       }
+      if (propertiesCase_ == 21) {
+        if (cloudSpannerBuilder_ == null) {
+          result.properties_ = properties_;
+        } else {
+          result.properties_ = cloudSpannerBuilder_.build();
+        }
+      }
       result.creationTime_ = creationTime_;
       result.lastModifiedTime_ = lastModifiedTime_;
       result.hasCredential_ = hasCredential_;
@@ -896,39 +903,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;
@@ -936,8 +942,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();
@@ -960,20 +965,21 @@ 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 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 PROPERTIES_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -994,8 +1000,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) {
@@ -1004,12 +1009,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() {
@@ -1019,23 +1024,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; @@ -1044,22 +1048,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 { @@ -1067,64 +1070,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; @@ -1132,20 +1128,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; @@ -1154,21 +1148,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 { @@ -1176,61 +1169,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; @@ -1238,20 +1224,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; @@ -1260,21 +1244,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 { @@ -1282,80 +1265,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 @@ -1363,14 +1333,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 @@ -1388,8 +1355,6 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlProperties getCloudSql() } } /** - * - * *
      * Cloud SQL properties.
      * 
@@ -1410,8 +1375,6 @@ public Builder setCloudSql(com.google.cloud.bigquery.connection.v1.CloudSqlPrope return this; } /** - * - * *
      * Cloud SQL properties.
      * 
@@ -1430,8 +1393,6 @@ public Builder setCloudSql( return this; } /** - * - * *
      * Cloud SQL properties.
      * 
@@ -1440,15 +1401,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; } @@ -1463,8 +1419,6 @@ public Builder mergeCloudSql(com.google.cloud.bigquery.connection.v1.CloudSqlPro return this; } /** - * - * *
      * Cloud SQL properties.
      * 
@@ -1488,8 +1442,6 @@ public Builder clearCloudSql() { return this; } /** - * - * *
      * Cloud SQL properties.
      * 
@@ -1500,8 +1452,6 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder getClo return getCloudSqlFieldBuilder().getBuilder(); } /** - * - * *
      * Cloud SQL properties.
      * 
@@ -1509,8 +1459,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 { @@ -1521,8 +1470,6 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder getClo } } /** - * - * *
      * Cloud SQL properties.
      * 
@@ -1530,45 +1477,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 @@ -1576,14 +1510,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 @@ -1601,8 +1532,6 @@ public com.google.cloud.bigquery.connection.v1.AwsProperties getAws() { } } /** - * - * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1623,8 +1552,6 @@ public Builder setAws(com.google.cloud.bigquery.connection.v1.AwsProperties valu return this; } /** - * - * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1643,8 +1570,6 @@ public Builder setAws( return this; } /** - * - * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1653,14 +1578,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; } @@ -1675,8 +1596,6 @@ public Builder mergeAws(com.google.cloud.bigquery.connection.v1.AwsProperties va return this; } /** - * - * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1700,8 +1619,6 @@ public Builder clearAws() { return this; } /** - * - * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1712,8 +1629,6 @@ public com.google.cloud.bigquery.connection.v1.AwsProperties.Builder getAwsBuild return getAwsFieldBuilder().getBuilder(); } /** - * - * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1732,8 +1647,6 @@ public com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder getAwsOrBu } } /** - * - * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1741,40 +1654,208 @@ 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 long creationTime_; + 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_; + /** + *
+     * Cloud Spanner properties.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; + * @return Whether the cloudSpanner field is set. + */ + @java.lang.Override + 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 (cloudSpannerBuilder_ == null) { + if (propertiesCase_ == 21) { + return (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_; + } + return com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.getDefaultInstance(); + } else { + if (propertiesCase_ == 21) { + return cloudSpannerBuilder_.getMessage(); + } + return com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.getDefaultInstance(); + } + } + /** + *
+     * Cloud Spanner properties.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; + */ + public Builder setCloudSpanner(com.google.cloud.bigquery.connection.v1.CloudSpannerProperties value) { + if (cloudSpannerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + properties_ = value; + onChanged(); + } else { + cloudSpannerBuilder_.setMessage(value); + } + propertiesCase_ = 21; + return this; + } + /** + *
+     * Cloud Spanner properties.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; + */ + public Builder setCloudSpanner( + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder builderForValue) { + if (cloudSpannerBuilder_ == null) { + properties_ = builderForValue.build(); + onChanged(); + } else { + cloudSpannerBuilder_.setMessage(builderForValue.build()); + } + propertiesCase_ = 21; + 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) { + 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(); + } else { + properties_ = value; + } + onChanged(); + } else { + if (propertiesCase_ == 21) { + cloudSpannerBuilder_.mergeFrom(value); + } + cloudSpannerBuilder_.setMessage(value); + } + propertiesCase_ = 21; + return this; + } + /** + *
+     * Cloud Spanner properties.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; + */ + public Builder clearCloudSpanner() { + if (cloudSpannerBuilder_ == null) { + if (propertiesCase_ == 21) { + propertiesCase_ = 0; + properties_ = null; + onChanged(); + } + } else { + if (propertiesCase_ == 21) { + propertiesCase_ = 0; + properties_ = null; + } + cloudSpannerBuilder_.clear(); + } + return this; + } + /** + *
+     * Cloud Spanner properties.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; + */ + public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder getCloudSpannerBuilder() { + return getCloudSpannerFieldBuilder().getBuilder(); + } /** + *
+     * Cloud Spanner properties.
+     * 
* + * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; + */ + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder getCloudSpannerOrBuilder() { + if ((propertiesCase_ == 21) && (cloudSpannerBuilder_ != null)) { + return cloudSpannerBuilder_.getMessageOrBuilder(); + } else { + if (propertiesCase_ == 21) { + return (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_; + } + return com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.getDefaultInstance(); + } + } + /** + *
+     * Cloud Spanner properties.
+     * 
* + * .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> + getCloudSpannerFieldBuilder() { + if (cloudSpannerBuilder_ == null) { + if (!(propertiesCase_ == 21)) { + 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>( + (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_, + getParentForChildren(), + isClean()); + properties_ = null; + } + propertiesCase_ = 21; + onChanged();; + return cloudSpannerBuilder_; + } + + 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 @@ -1782,51 +1863,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 @@ -1834,51 +1906,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 @@ -1886,43 +1949,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); } @@ -1932,12 +1989,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(); } @@ -1946,16 +2003,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; @@ -1970,4 +2027,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 97% 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 index 76aa6070..385ee7fc 100644 --- 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 @@ -211,9 +211,9 @@ public Builder setConnection(String connection) { } private Builder(ConnectionName connectionName) { - project = connectionName.project; - location = connectionName.location; - connection = connectionName.connection; + this.project = connectionName.project; + this.location = connectionName.location; + this.connection = connectionName.connection; } public ConnectionName build() { 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 79% 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 94100ed8..28ad1a15 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,40 +124,58 @@ 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(); + + /** *
    * 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..870250e0 --- /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,318 @@ +// 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; + + 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\032\036google/protobuf/wrappers.prot" + + "o\"\272\001\n\027CreateConnectionRequest\0229\n\006parent\030" + + "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" + + "Location\022\032\n\rconnection_id\030\002 \001(\tB\003\340A\001\022H\n\n" + + "connection\030\003 \001(\0132/.google.cloud.bigquery" + + ".connection.v1.ConnectionB\003\340A\002\"Z\n\024GetCon" + + "nectionRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,bi" + + "gqueryconnection.googleapis.com/Connecti" + + "on\"\177\n\026ListConnectionsRequest\0229\n\006parent\030\001" + + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + + "ocation\022\026\n\tpage_size\030\004 \001(\005B\003\340A\002\022\022\n\npage_" + + "token\030\003 \001(\t\"x\n\027ListConnectionsResponse\022\027" + + "\n\017next_page_token\030\001 \001(\t\022D\n\013connections\030\002" + + " \003(\0132/.google.cloud.bigquery.connection." + + "v1.Connection\"\335\001\n\027UpdateConnectionReques" + + "t\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,bigqueryconnect" + + "ion.googleapis.com/Connection\022H\n\nconnect" + + "ion\030\002 \001(\0132/.google.cloud.bigquery.connec" + + "tion.v1.ConnectionB\003\340A\002\0224\n\013update_mask\030\003" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"]\n" + + "\027DeleteConnectionRequest\022B\n\004name\030\001 \001(\tB4" + + "\340A\002\372A.\n,bigqueryconnection.googleapis.co" + + "m/Connection\"\212\004\n\nConnection\022\014\n\004name\030\001 \001(" + + "\t\022\025\n\rfriendly_name\030\002 \001(\t\022\023\n\013description\030" + + "\003 \001(\t\022L\n\tcloud_sql\030\004 \001(\01327.google.cloud." + + "bigquery.connection.v1.CloudSqlPropertie" + + "sH\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.bigquery.co" + + "nnection.v1.CloudSpannerPropertiesH\000\022\032\n\r" + + "creation_time\030\005 \001(\003B\003\340A\003\022\037\n\022last_modifie" + + "d_time\030\006 \001(\003B\003\340A\003\022\033\n\016has_credential\030\007 \001(" + + "\010B\003\340A\003:s\352Ap\n,bigqueryconnection.googleap" + + "is.com/Connection\022@projects/{project}/lo" + + "cations/{location}/connections/{connecti" + + "on}B\014\n\nproperties\"\251\002\n\022CloudSqlProperties" + + "\022\023\n\013instance_id\030\001 \001(\t\022\020\n\010database\030\002 \001(\t\022" + + "R\n\004type\030\003 \001(\0162D.google.cloud.bigquery.co" + + "nnection.v1.CloudSqlProperties.DatabaseT" + + "ype\022P\n\ncredential\030\004 \001(\01327.google.cloud.b" + + "igquery.connection.v1.CloudSqlCredential" + + "B\003\340A\004\"F\n\014DatabaseType\022\035\n\031DATABASE_TYPE_U" + + "NSPECIFIED\020\000\022\014\n\010POSTGRES\020\001\022\t\n\005MYSQL\020\002\"8\n" + + "\022CloudSqlCredential\022\020\n\010username\030\001 \001(\t\022\020\n" + + "\010password\030\002 \001(\t\"C\n\026CloudSpannerPropertie" + + "s\022\020\n\010database\030\001 \001(\t\022\027\n\017use_parallelism\030\002" + + " \001(\010\"\313\001\n\rAwsProperties\022V\n\022cross_account_" + + "role\030\002 \001(\01328.google.cloud.bigquery.conne" + + "ction.v1.AwsCrossAccountRoleH\000\022I\n\013access" + + "_role\030\003 \001(\01322.google.cloud.bigquery.conn" + + "ection.v1.AwsAccessRoleH\000B\027\n\025authenticat" + + "ion_method\"^\n\023AwsCrossAccountRole\022\023\n\013iam" + + "_role_id\030\001 \001(\t\022\030\n\013iam_user_id\030\002 \001(\tB\003\340A\003" + + "\022\030\n\013external_id\030\003 \001(\tB\003\340A\003\"6\n\rAwsAccessR" + + "ole\022\023\n\013iam_role_id\030\001 \001(\t\022\020\n\010identity\030\002 \001" + + "(\t2\314\r\n\021ConnectionService\022\350\001\n\020CreateConne" + + "ction\022<.google.cloud.bigquery.connection" + + ".v1.CreateConnectionRequest\032/.google.clo" + + "ud.bigquery.connection.v1.Connection\"e\202\323" + + "\344\223\002=\"//v1/{parent=projects/*/locations/*" + + "}/connections:\nconnection\332A\037parent,conne" + + "ction,connection_id\022\273\001\n\rGetConnection\0229." + + "google.cloud.bigquery.connection.v1.GetC" + + "onnectionRequest\032/.google.cloud.bigquery" + + ".connection.v1.Connection\">\202\323\344\223\0021\022//v1/{" + + "name=projects/*/locations/*/connections/" + + "*}\332A\004name\022\316\001\n\017ListConnections\022;.google.c" + + "loud.bigquery.connection.v1.ListConnecti" + + "onsRequest\032<.google.cloud.bigquery.conne" + + "ction.v1.ListConnectionsResponse\"@\202\323\344\223\0021" + + "\022//v1/{parent=projects/*/locations/*}/co" + + "nnections\332A\006parent\022\344\001\n\020UpdateConnection\022" + + "<.google.cloud.bigquery.connection.v1.Up" + + "dateConnectionRequest\032/.google.cloud.big" + + "query.connection.v1.Connection\"a\202\323\344\223\002=2/" + + "/v1/{name=projects/*/locations/*/connect" + + "ions/*}:\nconnection\332A\033name,connection,up" + + "date_mask\022\250\001\n\020DeleteConnection\022<.google." + + "cloud.bigquery.connection.v1.DeleteConne" + + "ctionRequest\032\026.google.protobuf.Empty\">\202\323" + + "\344\223\0021*//v1/{name=projects/*/locations/*/c" + + "onnections/*}\332A\004name\022\251\001\n\014GetIamPolicy\022\"." + + "google.iam.v1.GetIamPolicyRequest\032\025.goog" + + "le.iam.v1.Policy\"^\202\323\344\223\002E\"@/v1/{resource=" + + "projects/*/locations/*/connections/*}:ge" + + "tIamPolicy:\001*\332A\020resource,options\022\250\001\n\014Set" + + "IamPolicy\022\".google.iam.v1.SetIamPolicyRe" + + "quest\032\025.google.iam.v1.Policy\"]\202\323\344\223\002E\"@/v" + + "1/{resource=projects/*/locations/*/conne" + + "ctions/*}:setIamPolicy:\001*\332A\017resource,pol" + + "icy\022\323\001\n\022TestIamPermissions\022(.google.iam." + + "v1.TestIamPermissionsRequest\032).google.ia" + + "m.v1.TestIamPermissionsResponse\"h\202\323\344\223\002K\"" + + "F/v1/{resource=projects/*/locations/*/co" + + "nnections/*}:testIamPermissions:\001*\332A\024res" + + "ource,permissions\032~\312A!bigqueryconnection" + + ".googleapis.com\322AWhttps://www.googleapis" + + ".com/auth/bigquery,https://www.googleapi" + + "s.com/auth/cloud-platformB\306\001\n\'com.google" + + ".cloud.bigquery.connection.v1P\001ZMgoogle." + + "golang.org/genproto/googleapis/cloud/big" + + "query/connection/v1;connection\252\002#Google." + + "Cloud.BigQuery.Connection.V1\312\002#Google\\Cl" + + "oud\\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(), + com.google.protobuf.WrappersProto.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", "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", }); + 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(); + com.google.protobuf.WrappersProto.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 63% 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 ef735f2b..6c8b81d4 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,85 +54,72 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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 @@ -158,32 +128,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. 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 { @@ -194,14 +162,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 @@ -210,29 +175,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 { @@ -243,16 +208,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 @@ -260,34 +220,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() { @@ -295,7 +244,6 @@ public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnection } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -307,7 +255,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -333,7 +282,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; @@ -343,19 +293,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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; @@ -382,127 +334,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() @@ -510,15 +452,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -536,14 +479,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(); } @@ -558,8 +500,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) { @@ -575,50 +516,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(); @@ -649,9 +586,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) { @@ -663,23 +598,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; @@ -688,24 +619,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 { @@ -713,70 +641,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; @@ -784,20 +699,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; @@ -806,21 +719,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 { @@ -828,61 +740,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; @@ -890,58 +795,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) { @@ -957,15 +843,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) { @@ -979,23 +861,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; } @@ -1007,15 +883,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) { @@ -1029,71 +901,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); } @@ -1103,32 +959,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; @@ -1140,8 +994,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 1daf54e3..9693dd49 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,61 +53,53 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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 @@ -133,32 +108,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the 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 { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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; } @@ -231,127 +204,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() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,14 +341,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(); } @@ -399,8 +362,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; @@ -410,50 +372,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(); @@ -477,9 +435,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) { @@ -491,23 +447,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; @@ -516,24 +468,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 { @@ -541,77 +490,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); } @@ -621,32 +557,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; @@ -658,8 +592,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 65% 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 73795a7b..c07a757c 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,61 +53,53 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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 @@ -133,32 +108,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the 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 { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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; } @@ -231,127 +204,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() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,14 +341,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(); } @@ -399,8 +362,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; @@ -410,39 +372,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; @@ -450,9 +411,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(); @@ -476,8 +435,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) { @@ -489,23 +447,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; @@ -514,24 +468,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 { @@ -539,77 +490,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); } @@ -619,13 +557,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(); } @@ -634,16 +571,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; @@ -658,4 +595,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 66% 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 a061a70d..1cc7db71 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,73 +54,64 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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 @@ -146,32 +120,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 { @@ -182,14 +154,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 @@ -200,14 +169,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 @@ -216,29 +182,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * 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 { @@ -247,7 +213,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,7 +224,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -285,7 +251,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; @@ -295,17 +262,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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; } @@ -329,127 +298,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() @@ -457,15 +416,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -479,14 +439,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(); } @@ -501,8 +460,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_; @@ -514,39 +472,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; @@ -554,9 +511,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(); @@ -587,9 +542,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) { @@ -601,23 +554,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; @@ -626,24 +575,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 { @@ -651,85 +597,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 @@ -737,36 +667,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; @@ -774,20 +698,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; @@ -796,21 +718,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 { @@ -818,68 +739,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); } @@ -889,32 +803,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; @@ -926,8 +838,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 978d8a64..e79f1fb4 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,39 +55,35 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { connections_ = java.util.Collections.unmodifiableList(connections_); @@ -113,33 +92,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 @@ -148,29 +121,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 { @@ -181,8 +154,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int CONNECTIONS_FIELD_NUMBER = 2; private java.util.List connections_; /** - * - * *
    * List of connections.
    * 
@@ -194,8 +165,6 @@ public java.util.List getCon return connections_; } /** - * - * *
    * List of connections.
    * 
@@ -203,13 +172,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.
    * 
@@ -221,8 +188,6 @@ public int getConnectionsCount() { return connections_.size(); } /** - * - * *
    * List of connections.
    * 
@@ -234,8 +199,6 @@ public com.google.cloud.bigquery.connection.v1.Connection getConnections(int ind return connections_.get(index); } /** - * - * *
    * List of connections.
    * 
@@ -249,7 +212,6 @@ public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnection } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +223,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNextPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nextPageToken_); } @@ -281,7 +244,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; @@ -291,16 +255,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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; } @@ -324,127 +289,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() @@ -452,17 +407,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getConnectionsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -478,14 +433,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(); } @@ -500,8 +454,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) { @@ -521,50 +474,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(); @@ -587,10 +536,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_); } @@ -615,9 +563,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) { @@ -626,25 +572,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; @@ -653,21 +596,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 { @@ -675,87 +617,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.
      * 
@@ -770,8 +697,6 @@ public java.util.List getCon } } /** - * - * *
      * List of connections.
      * 
@@ -786,8 +711,6 @@ public int getConnectionsCount() { } } /** - * - * *
      * List of connections.
      * 
@@ -802,8 +725,6 @@ public com.google.cloud.bigquery.connection.v1.Connection getConnections(int ind } } /** - * - * *
      * List of connections.
      * 
@@ -825,8 +746,6 @@ public Builder setConnections( return this; } /** - * - * *
      * List of connections.
      * 
@@ -845,8 +764,6 @@ public Builder setConnections( return this; } /** - * - * *
      * List of connections.
      * 
@@ -867,8 +784,6 @@ public Builder addConnections(com.google.cloud.bigquery.connection.v1.Connection return this; } /** - * - * *
      * List of connections.
      * 
@@ -890,8 +805,6 @@ public Builder addConnections( return this; } /** - * - * *
      * List of connections.
      * 
@@ -910,8 +823,6 @@ public Builder addConnections( return this; } /** - * - * *
      * List of connections.
      * 
@@ -930,8 +841,6 @@ public Builder addConnections( return this; } /** - * - * *
      * List of connections.
      * 
@@ -942,7 +851,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); @@ -950,8 +860,6 @@ public Builder addAllConnections( return this; } /** - * - * *
      * List of connections.
      * 
@@ -969,8 +877,6 @@ public Builder clearConnections() { return this; } /** - * - * *
      * List of connections.
      * 
@@ -988,8 +894,6 @@ public Builder removeConnections(int index) { return this; } /** - * - * *
      * List of connections.
      * 
@@ -1001,8 +905,6 @@ public com.google.cloud.bigquery.connection.v1.Connection.Builder getConnections return getConnectionsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of connections.
      * 
@@ -1012,22 +914,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 { @@ -1035,8 +934,6 @@ public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnection } } /** - * - * *
      * List of connections.
      * 
@@ -1044,12 +941,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.
      * 
@@ -1058,43 +953,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); } @@ -1104,32 +993,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; @@ -1141,8 +1028,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 98% 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 index 132df548..d2189b81 100644 --- 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 @@ -181,8 +181,8 @@ public Builder setLocation(String location) { } private Builder(LocationName locationName) { - project = locationName.project; - location = locationName.location; + this.project = locationName.project; + this.location = locationName.location; } public LocationName build() { 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 6b9633e9..6e4ca42f 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,93 +53,79 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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 @@ -165,32 +134,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 { @@ -201,16 +168,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 @@ -218,34 +180,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() { @@ -255,15 +206,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 @@ -271,15 +218,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 @@ -287,14 +230,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() { @@ -302,7 +242,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -314,7 +253,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -337,10 +277,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; @@ -350,22 +292,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; @@ -394,127 +338,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() @@ -522,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(); @@ -552,14 +487,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(); } @@ -574,8 +508,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_; @@ -595,50 +528,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(); @@ -668,9 +597,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) { @@ -682,23 +609,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; @@ -707,24 +630,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 { @@ -732,70 +652,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; @@ -803,58 +710,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) { @@ -870,15 +758,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) { @@ -892,23 +776,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; } @@ -920,15 +798,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) { @@ -942,64 +816,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_; @@ -1007,55 +865,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) { @@ -1071,16 +913,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(); @@ -1091,20 +931,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; } @@ -1116,14 +953,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) { @@ -1137,68 +971,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); } @@ -1208,32 +1029,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; @@ -1245,8 +1064,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 91% 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 index 3db05ef1..697b0b8f 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -233,6 +233,9 @@ message Connection { // Amazon Web Services (AWS) properties. AwsProperties aws = 8; + + // Cloud Spanner properties. + CloudSpannerProperties cloud_spanner = 21; } // Output only. The creation timestamp of the connection. @@ -281,6 +284,15 @@ message CloudSqlCredential { string password = 2; } +// Connection properties specific to Cloud Spanner. +message CloudSpannerProperties { + // Cloud Spanner database in the form `project/instance/database' + string database = 1; + + // If parallelism should be used when reading from Cloud Spanner + bool use_parallelism = 2; +} + // Connection properties specific to Amazon Web Services (AWS). message AwsProperties { // Authentication method chosen at connection creation. @@ -288,6 +300,10 @@ message AwsProperties { // Authentication using Google owned AWS IAM user's access key to assume // into customer's AWS IAM Role. AwsCrossAccountRole cross_account_role = 2; + + // Authentication using Google owned service account to assume into + // customer's AWS IAM Role. + AwsAccessRole access_role = 3; } } @@ -306,3 +322,15 @@ message AwsCrossAccountRole { // https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html string external_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// Authentication method for Amazon Web Services (AWS) that uses Google owned +// Google service account to assume into customer's AWS IAM Role. +message AwsAccessRole { + // The user’s AWS IAM Role that trusts the Google-owned AWS IAM user + // Connection. + string iam_role_id = 1; + + // 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; +} 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 99% 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 62a6cf79..6f50abc4 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 @@ -61,13 +61,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/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 97% 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 c0f45514..fa9a15bf 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 @@ -24,6 +24,7 @@ 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 +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/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 98% 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 ea1ae8ee..20216cf7 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 @@ -54,10 +54,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/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 100% 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 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..96bc34d9 --- /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,1030 @@ +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") +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 97% 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 index 9b2508ed..f912845b 100644 --- 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 @@ -211,9 +211,9 @@ public Builder setConnection(String connection) { } private Builder(ConnectionName connectionName) { - project = connectionName.project; - location = connectionName.location; - connection = connectionName.connection; + this.project = connectionName.project; + this.location = connectionName.location; + this.connection = connectionName.connection; } public ConnectionName build() { 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 b970c381..9602440f 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,89 +138,72 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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 @@ -274,32 +212,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 { @@ -310,14 +246,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 @@ -326,29 +259,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 { @@ -359,16 +292,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 @@ -376,44 +304,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; @@ -425,7 +339,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -451,7 +366,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; @@ -461,22 +377,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; @@ -502,114 +417,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 @@ -619,52 +508,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(); @@ -682,23 +563,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); } @@ -706,12 +583,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) { @@ -727,57 +600,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(); @@ -804,14 +666,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) { @@ -823,23 +682,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; @@ -848,24 +703,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 { @@ -873,70 +725,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; @@ -944,20 +783,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; @@ -966,21 +803,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 { @@ -988,61 +824,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; @@ -1050,63 +879,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(); @@ -1120,19 +927,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(); @@ -1143,25 +945,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; } @@ -1173,15 +967,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) { @@ -1195,72 +985,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) { @@ -1273,36 +1043,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; @@ -1314,82 +1078,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) @@ -1408,63 +1160,53 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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 @@ -1473,32 +1215,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 { @@ -1507,7 +1247,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1519,7 +1258,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1543,17 +1283,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; } @@ -1572,102 +1310,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 @@ -1677,51 +1401,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(); @@ -1731,23 +1448,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); } @@ -1755,11 +1468,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; @@ -1769,56 +1479,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(); @@ -1838,14 +1538,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) { @@ -1857,23 +1554,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; @@ -1882,24 +1575,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 { @@ -1907,75 +1597,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) { @@ -1988,34 +1664,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; @@ -2027,130 +1699,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_ = ""; @@ -2158,15 +1801,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) @@ -2185,85 +1829,72 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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 @@ -2272,32 +1903,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 { @@ -2308,15 +1937,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 @@ -2324,32 +1949,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() { @@ -2359,14 +1975,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 @@ -2375,29 +1988,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 { @@ -2406,7 +2019,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2418,7 +2030,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -2441,7 +2054,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 (!getPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -2454,22 +2068,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; } @@ -2494,114 +2108,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 @@ -2611,52 +2199,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(); @@ -2674,23 +2254,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); } @@ -2698,11 +2274,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_; @@ -2718,57 +2291,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(); @@ -2795,14 +2357,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) { @@ -2814,23 +2373,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; @@ -2839,24 +2394,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 { @@ -2864,70 +2416,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; @@ -2935,58 +2474,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) { @@ -3002,17 +2522,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(); @@ -3023,23 +2540,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; } @@ -3051,15 +2562,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) { @@ -3073,64 +2580,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_; @@ -3138,20 +2629,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; @@ -3160,21 +2649,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 { @@ -3182,66 +2670,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) { @@ -3254,35 +2734,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; @@ -3294,67 +2769,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.
      * 
@@ -3363,49 +2825,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(); @@ -3413,15 +2866,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) @@ -3441,42 +2895,35 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { connections_ = java.util.Collections.unmodifiableList(connections_); @@ -3485,35 +2932,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 @@ -3522,29 +2961,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 { @@ -3553,11 +2992,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.
      * 
@@ -3565,13 +3001,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.
      * 
@@ -3579,15 +3012,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.
      * 
@@ -3599,8 +3028,6 @@ public int getConnectionsCount() { return connections_.size(); } /** - * - * *
      * List of connections.
      * 
@@ -3608,13 +3035,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.
      * 
@@ -3622,13 +3046,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; @@ -3640,7 +3063,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 (!getNextPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nextPageToken_); } @@ -3660,7 +3084,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; @@ -3670,19 +3095,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; } @@ -3705,114 +3128,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 @@ -3822,54 +3219,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(); @@ -3885,23 +3273,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); } @@ -3909,12 +3293,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) { @@ -3934,57 +3314,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(); @@ -4007,10 +3376,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_); } @@ -4031,14 +3399,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) { @@ -4047,25 +3412,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; @@ -4074,21 +3436,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 { @@ -4096,97 +3457,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 { @@ -4194,8 +3537,6 @@ private void ensureConnectionsIsMutable() { } } /** - * - * *
        * List of connections.
        * 
@@ -4210,16 +3551,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 { @@ -4227,8 +3565,6 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection g } } /** - * - * *
        * List of connections.
        * 
@@ -4236,8 +3572,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(); @@ -4251,8 +3586,6 @@ public Builder setConnections( return this; } /** - * - * *
        * List of connections.
        * 
@@ -4260,9 +3593,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()); @@ -4273,16 +3604,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(); @@ -4296,8 +3624,6 @@ public Builder addConnections( return this; } /** - * - * *
        * List of connections.
        * 
@@ -4305,8 +3631,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(); @@ -4320,8 +3645,6 @@ public Builder addConnections( return this; } /** - * - * *
        * List of connections.
        * 
@@ -4329,8 +3652,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()); @@ -4341,8 +3663,6 @@ public Builder addConnections( return this; } /** - * - * *
        * List of connections.
        * 
@@ -4350,9 +3670,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()); @@ -4363,8 +3681,6 @@ public Builder addConnections( return this; } /** - * - * *
        * List of connections.
        * 
@@ -4372,12 +3688,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); @@ -4385,8 +3700,6 @@ public Builder addAllConnections( return this; } /** - * - * *
        * List of connections.
        * 
@@ -4404,8 +3717,6 @@ public Builder clearConnections() { return this; } /** - * - * *
        * List of connections.
        * 
@@ -4423,48 +3734,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 { @@ -4472,64 +3774,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(), @@ -4538,7 +3821,6 @@ public Builder removeConnections(int index) { } return connectionsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4551,36 +3833,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; @@ -4592,162 +3868,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) @@ -4766,97 +4004,79 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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 @@ -4865,32 +4085,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 { @@ -4901,16 +4119,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 @@ -4918,54 +4131,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 @@ -4973,15 +4169,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 @@ -4989,14 +4181,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() { @@ -5004,7 +4193,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5016,7 +4204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -5039,10 +4228,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; @@ -5052,25 +4243,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; @@ -5098,114 +4288,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 @@ -5215,52 +4379,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(); @@ -5282,23 +4438,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); } @@ -5306,12 +4458,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_; @@ -5331,57 +4479,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(); @@ -5407,14 +4544,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) { @@ -5426,23 +4560,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; @@ -5451,24 +4581,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 { @@ -5476,70 +4603,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; @@ -5547,63 +4661,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(); @@ -5617,19 +4709,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(); @@ -5640,25 +4727,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; } @@ -5670,15 +4749,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) { @@ -5692,67 +4767,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_; @@ -5760,55 +4816,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) { @@ -5824,16 +4864,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(); @@ -5844,22 +4882,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; } @@ -5871,14 +4904,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) { @@ -5892,66 +4922,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) { @@ -5964,36 +4980,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; @@ -6005,124 +5015,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) @@ -6141,81 +5124,66 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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 @@ -6224,30 +5192,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 { @@ -6256,19 +5224,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 @@ -6276,46 +5238,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; @@ -6327,7 +5273,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -6347,7 +5294,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; @@ -6357,24 +5305,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; @@ -6398,115 +5341,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 @@ -6516,53 +5432,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(); @@ -6578,26 +5485,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); } @@ -6605,14 +5505,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_; @@ -6627,60 +5521,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(); @@ -6703,16 +5583,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) { @@ -6724,21 +5599,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; @@ -6747,22 +5620,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 { @@ -6770,131 +5642,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(); @@ -6908,19 +5748,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(); @@ -6931,25 +5766,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; } @@ -6961,15 +5788,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) { @@ -6983,78 +5806,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) { @@ -7067,36 +5864,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; @@ -7108,83 +5899,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) @@ -7203,63 +5981,53 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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 @@ -7268,32 +6036,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 { @@ -7302,7 +6068,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7314,7 +6079,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -7338,18 +6104,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; } @@ -7368,114 +6131,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 @@ -7485,52 +6222,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(); @@ -7540,23 +6269,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); } @@ -7564,12 +6289,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; @@ -7579,57 +6300,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(); @@ -7649,14 +6359,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) { @@ -7668,23 +6375,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; @@ -7693,24 +6396,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 { @@ -7718,75 +6418,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) { @@ -7799,36 +6485,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; @@ -7840,175 +6520,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.
@@ -8016,16 +6659,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_ = "";
@@ -8034,15 +6676,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)
@@ -8061,115 +6704,93 @@ 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) {
         throw e.setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.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;
       }
@@ -8185,36 +6806,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 @@ -8223,30 +6839,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 { @@ -8257,14 +6873,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 @@ -8273,29 +6886,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 { @@ -8306,14 +6919,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 @@ -8322,29 +6932,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 { @@ -8354,14 +6964,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 @@ -8369,29 +6976,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.
      * 
@@ -8399,27 +6998,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 @@ -8430,14 +7023,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 @@ -8448,14 +7038,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 @@ -8464,7 +7051,6 @@ public boolean getHasCredential() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8476,7 +7062,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -8487,10 +7074,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_); @@ -8520,20 +7104,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; @@ -8543,25 +7127,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: @@ -8584,11 +7173,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; @@ -8603,95 +7195,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 @@ -8701,8 +7285,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Configuration parameters to establish connection with an external data
      * source, except the credential attributes.
@@ -8710,42 +7292,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();
@@ -8767,22 +7345,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);
         }
@@ -8790,10 +7365,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_;
@@ -8816,54 +7389,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();
@@ -8886,15 +7451,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();
@@ -8911,14 +7474,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) {
@@ -8927,12 +7487,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() {
@@ -8942,23 +7502,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; @@ -8967,22 +7526,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 { @@ -8990,64 +7548,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; @@ -9055,20 +7606,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; @@ -9077,21 +7626,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 { @@ -9099,61 +7647,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; @@ -9161,20 +7702,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; @@ -9183,21 +7722,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 { @@ -9205,82 +7743,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 @@ -9288,45 +7811,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(); @@ -9340,8 +7853,6 @@ public Builder setCloudSql( return this; } /** - * - * *
        * Cloud SQL properties.
        * 
@@ -9349,8 +7860,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(); @@ -9361,29 +7871,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; } @@ -9398,8 +7897,6 @@ public Builder mergeCloudSql( return this; } /** - * - * *
        * Cloud SQL properties.
        * 
@@ -9423,21 +7920,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.
        * 
@@ -9445,23 +7937,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.
        * 
@@ -9469,47 +7955,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 @@ -9517,51 +7987,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 @@ -9569,51 +8030,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 @@ -9621,41 +8073,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) { @@ -9668,33 +8113,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; @@ -9706,89 +8148,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) @@ -9807,80 +8236,60 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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; } @@ -9896,34 +8305,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 @@ -9931,29 +8335,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.
      * 
@@ -9961,18 +8357,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; @@ -9984,12 +8376,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); } @@ -10001,11 +8391,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; @@ -10015,20 +8402,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: @@ -10057,102 +8442,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 @@ -10162,51 +8533,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(); @@ -10216,23 +8580,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); } @@ -10240,11 +8600,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_; @@ -10261,66 +8618,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(); @@ -10337,14 +8682,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) { @@ -10353,12 +8695,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() { @@ -10368,22 +8710,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 @@ -10391,45 +8726,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(); @@ -10443,8 +8768,6 @@ public Builder setCloudSql( return this; } /** - * - * *
        * Credential for Cloud SQL database.
        * 
@@ -10452,8 +8775,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(); @@ -10464,29 +8786,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; } @@ -10501,8 +8812,6 @@ public Builder mergeCloudSql( return this; } /** - * - * *
        * Credential for Cloud SQL database.
        * 
@@ -10526,21 +8835,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.
        * 
@@ -10548,23 +8852,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.
        * 
@@ -10572,37 +8870,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) { @@ -10615,34 +8899,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; @@ -10654,156 +8934,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_ = ""; @@ -10812,15 +9054,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) @@ -10839,96 +9082,79 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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.
        * 
@@ -10937,8 +9163,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ DATABASE_TYPE_UNSPECIFIED(0), /** - * - * *
        * Cloud SQL for PostgreSQL.
        * 
@@ -10947,8 +9171,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ POSTGRES(1), /** - * - * *
        * Cloud SQL for MySQL.
        * 
@@ -10960,8 +9182,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Unspecified database type.
        * 
@@ -10970,8 +9190,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DATABASE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
        * Cloud SQL for PostgreSQL.
        * 
@@ -10980,8 +9198,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int POSTGRES_VALUE = 1; /** - * - * *
        * Cloud SQL for MySQL.
        * 
@@ -10990,6 +9206,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( @@ -11014,52 +9231,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; @@ -11079,14 +9293,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 @@ -11095,29 +9306,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 { @@ -11128,14 +9339,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 @@ -11144,29 +9352,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 { @@ -11177,62 +9385,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 @@ -11240,45 +9424,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; @@ -11290,17 +9459,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 (!getInstanceIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_); } if (!getDatabaseBytes().isEmpty()) { 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) { @@ -11321,14 +9488,13 @@ public int getSerializedSize() { if (!getDatabaseBytes().isEmpty()) { 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; @@ -11338,22 +9504,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; @@ -11381,101 +9547,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 @@ -11485,51 +9638,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(); @@ -11549,23 +9695,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); } @@ -11573,11 +9715,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_; @@ -11594,56 +9733,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(); @@ -11673,14 +9802,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) { @@ -11692,20 +9818,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; @@ -11714,21 +9838,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 { @@ -11736,61 +9859,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; @@ -11798,20 +9914,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; @@ -11820,21 +9934,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 { @@ -11842,61 +9955,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; @@ -11904,172 +10010,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(); @@ -12083,19 +10132,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(); @@ -12106,25 +10150,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; } @@ -12136,15 +10172,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) { @@ -12158,77 +10190,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) { @@ -12241,34 +10248,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; @@ -12280,86 +10283,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_ = ""; @@ -12367,15 +10356,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) @@ -12394,66 +10384,58 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.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 @@ -12462,29 +10444,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 { @@ -12495,14 +10477,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 @@ -12511,29 +10490,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 { @@ -12542,7 +10521,6 @@ public com.google.protobuf.ByteString getPasswordBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -12554,7 +10532,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 (!getUsernameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -12584,18 +10563,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; } @@ -12616,101 +10594,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 @@ -12720,51 +10685,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(); @@ -12776,23 +10734,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); } @@ -12800,11 +10754,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(); @@ -12815,56 +10766,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(); @@ -12888,14 +10829,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) { @@ -12907,20 +10845,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; @@ -12929,21 +10865,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 { @@ -12951,61 +10886,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; @@ -13013,20 +10941,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; @@ -13035,21 +10961,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 { @@ -13057,66 +10982,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) { @@ -13129,34 +11046,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; @@ -13168,291 +11081,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); @@ -13462,8 +11356,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 98% 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 index 87f612d4..130c3a2b 100644 --- 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 @@ -181,8 +181,8 @@ public Builder setLocation(String location) { } private Builder(LocationName locationName) { - project = locationName.project; - location = locationName.location; + this.project = locationName.project; + this.location = locationName.location; } public LocationName build() { 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 2349aa11..00000000 --- a/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java +++ /dev/null @@ -1,322 +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_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; - - 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\032\036google/protobuf/wrappers.prot" - + "o\"\272\001\n\027CreateConnectionRequest\0229\n\006parent\030" - + "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" - + "Location\022\032\n\rconnection_id\030\002 \001(\tB\003\340A\001\022H\n\n" - + "connection\030\003 \001(\0132/.google.cloud.bigquery" - + ".connection.v1.ConnectionB\003\340A\002\"Z\n\024GetCon" - + "nectionRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,bi" - + "gqueryconnection.googleapis.com/Connecti" - + "on\"\177\n\026ListConnectionsRequest\0229\n\006parent\030\001" - + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" - + "ocation\022\026\n\tpage_size\030\004 \001(\005B\003\340A\002\022\022\n\npage_" - + "token\030\003 \001(\t\"x\n\027ListConnectionsResponse\022\027" - + "\n\017next_page_token\030\001 \001(\t\022D\n\013connections\030\002" - + " \003(\0132/.google.cloud.bigquery.connection." - + "v1.Connection\"\335\001\n\027UpdateConnectionReques" - + "t\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,bigqueryconnect" - + "ion.googleapis.com/Connection\022H\n\nconnect" - + "ion\030\002 \001(\0132/.google.cloud.bigquery.connec" - + "tion.v1.ConnectionB\003\340A\002\0224\n\013update_mask\030\003" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"]\n" - + "\027DeleteConnectionRequest\022B\n\004name\030\001 \001(\tB4" - + "\340A\002\372A.\n,bigqueryconnection.googleapis.co" - + "m/Connection\"\264\003\n\nConnection\022\014\n\004name\030\001 \001(" - + "\t\022\025\n\rfriendly_name\030\002 \001(\t\022\023\n\013description\030" - + "\003 \001(\t\022L\n\tcloud_sql\030\004 \001(\01327.google.cloud." - + "bigquery.connection.v1.CloudSqlPropertie" - + "sH\000\022A\n\003aws\030\010 \001(\01322.google.cloud.bigquery" - + ".connection.v1.AwsPropertiesH\000\022\032\n\rcreati" - + "on_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,bigqueryconnection.googleapis.com" - + "/Connection\022@projects/{project}/location" - + "s/{location}/connections/{connection}B\014\n" - + "\nproperties\"\251\002\n\022CloudSqlProperties\022\023\n\013in" - + "stance_id\030\001 \001(\t\022\020\n\010database\030\002 \001(\t\022R\n\004typ" - + "e\030\003 \001(\0162D.google.cloud.bigquery.connecti" - + "on.v1.CloudSqlProperties.DatabaseType\022P\n" - + "\ncredential\030\004 \001(\01327.google.cloud.bigquer" - + "y.connection.v1.CloudSqlCredentialB\003\340A\004\"" - + "F\n\014DatabaseType\022\035\n\031DATABASE_TYPE_UNSPECI" - + "FIED\020\000\022\014\n\010POSTGRES\020\001\022\t\n\005MYSQL\020\002\"8\n\022Cloud" - + "SqlCredential\022\020\n\010username\030\001 \001(\t\022\020\n\010passw" - + "ord\030\002 \001(\t\"\200\001\n\rAwsProperties\022V\n\022cross_acc" - + "ount_role\030\002 \001(\01328.google.cloud.bigquery." - + "connection.v1.AwsCrossAccountRoleH\000B\027\n\025a" - + "uthentication_method\"^\n\023AwsCrossAccountR" - + "ole\022\023\n\013iam_role_id\030\001 \001(\t\022\030\n\013iam_user_id\030" - + "\002 \001(\tB\003\340A\003\022\030\n\013external_id\030\003 \001(\tB\003\340A\0032\314\r\n" - + "\021ConnectionService\022\350\001\n\020CreateConnection\022" - + "<.google.cloud.bigquery.connection.v1.Cr" - + "eateConnectionRequest\032/.google.cloud.big" - + "query.connection.v1.Connection\"e\202\323\344\223\002=\"/" - + "/v1/{parent=projects/*/locations/*}/conn" - + "ections:\nconnection\332A\037parent,connection," - + "connection_id\022\273\001\n\rGetConnection\0229.google" - + ".cloud.bigquery.connection.v1.GetConnect" - + "ionRequest\032/.google.cloud.bigquery.conne" - + "ction.v1.Connection\">\202\323\344\223\0021\022//v1/{name=p" - + "rojects/*/locations/*/connections/*}\332A\004n" - + "ame\022\316\001\n\017ListConnections\022;.google.cloud.b" - + "igquery.connection.v1.ListConnectionsReq" - + "uest\032<.google.cloud.bigquery.connection." - + "v1.ListConnectionsResponse\"@\202\323\344\223\0021\022//v1/" - + "{parent=projects/*/locations/*}/connecti" - + "ons\332A\006parent\022\344\001\n\020UpdateConnection\022<.goog" - + "le.cloud.bigquery.connection.v1.UpdateCo" - + "nnectionRequest\032/.google.cloud.bigquery." - + "connection.v1.Connection\"a\202\323\344\223\002=2//v1/{n" - + "ame=projects/*/locations/*/connections/*" - + "}:\nconnection\332A\033name,connection,update_m" - + "ask\022\250\001\n\020DeleteConnection\022<.google.cloud." - + "bigquery.connection.v1.DeleteConnectionR" - + "equest\032\026.google.protobuf.Empty\">\202\323\344\223\0021*/" - + "/v1/{name=projects/*/locations/*/connect" - + "ions/*}\332A\004name\022\251\001\n\014GetIamPolicy\022\".google" - + ".iam.v1.GetIamPolicyRequest\032\025.google.iam" - + ".v1.Policy\"^\202\323\344\223\002E\"@/v1/{resource=projec" - + "ts/*/locations/*/connections/*}:getIamPo" - + "licy:\001*\332A\020resource,options\022\250\001\n\014SetIamPol" - + "icy\022\".google.iam.v1.SetIamPolicyRequest\032" - + "\025.google.iam.v1.Policy\"]\202\323\344\223\002E\"@/v1/{res" - + "ource=projects/*/locations/*/connections" - + "/*}:setIamPolicy:\001*\332A\017resource,policy\022\323\001" - + "\n\022TestIamPermissions\022(.google.iam.v1.Tes" - + "tIamPermissionsRequest\032).google.iam.v1.T" - + "estIamPermissionsResponse\"h\202\323\344\223\002K\"F/v1/{" - + "resource=projects/*/locations/*/connecti" - + "ons/*}:testIamPermissions:\001*\332A\024resource," - + "permissions\032~\312A!bigqueryconnection.googl" - + "eapis.com\322AWhttps://www.googleapis.com/a" - + "uth/bigquery,https://www.googleapis.com/" - + "auth/cloud-platformB\306\001\n\'com.google.cloud" - + ".bigquery.connection.v1P\001ZMgoogle.golang" - + ".org/genproto/googleapis/cloud/bigquery/" - + "connection/v1;connection\252\002#Google.Cloud." - + "BigQuery.Connection.V1\312\002#Google\\Cloud\\Bi" - + "gQuery\\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(), - com.google.protobuf.WrappersProto.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", - "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_AwsProperties_descriptor = - getDescriptor().getMessageTypes().get(9); - 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", "AuthenticationMethod", - }); - internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor = - getDescriptor().getMessageTypes().get(10); - 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", - }); - 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(); - com.google.protobuf.WrappersProto.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 b1ddfe7bf9bdb12fa6362a02df0a3b0ccd2c2e01 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 12 Jul 2021 22:49:40 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md --- .../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 | 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 | 0 .../v1beta1/ConnectionServiceClientTest.java | 0 .../v1beta1/MockConnectionService.java | 0 .../v1beta1/MockConnectionServiceImpl.java | 0 .../v1/ConnectionServiceClientTest.java | 0 .../v1/MockConnectionService.java | 0 .../v1/MockConnectionServiceImpl.java | 0 .../connection/v1/ConnectionServiceGrpc.java | 1215 +++ .../v1beta1/ConnectionServiceGrpc.java | 1416 +++ .../connection/v1/ConnectionServiceGrpc.java | 944 -- .../connection/v1/ConnectionOuterClass.java | 318 - .../v1/DeleteConnectionRequestOrBuilder.java | 31 - .../v1/GetConnectionRequestOrBuilder.java | 31 - .../v1beta1/ConnectionServiceGrpc.java | 1030 --- .../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 +- .../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 | 991 ++- .../connection/v1/ConnectionName.java | 0 .../connection/v1/ConnectionOrBuilder.java | 81 +- .../connection/v1/ConnectionOuterClass.java | 354 + .../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 63 files changed, 12722 insertions(+), 7980 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 (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 (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/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 (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/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/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 (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/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 (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/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 (80%) 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 (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/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 (65%) 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 (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/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 6f50abc4..62a6cf79 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 @@ -61,13 +61,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 fa9a15bf..c0f45514 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 @@ -24,7 +24,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; @@ -45,10 +44,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 20216cf7..ea1ae8ee 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 @@ -54,10 +54,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 100% 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 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 8fd49b97..61753b19 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. *
* @@ -1111,7 +1111,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( @@ -1166,7 +1169,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 7b09d0b8..a999d00a 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 @@ -27,7 +27,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; @@ -55,10 +54,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 2eb11903..095b589f 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 @@ -69,10 +69,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 100% 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 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/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..8d1cedc3 --- /dev/null +++ b/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java @@ -0,0 +1,1215 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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") +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..cd47a7b2 --- /dev/null +++ b/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java @@ -0,0 +1,1416 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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") +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 e7ffc7a1..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,944 +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") -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 870250e0..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,318 +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; - - 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\032\036google/protobuf/wrappers.prot" + - "o\"\272\001\n\027CreateConnectionRequest\0229\n\006parent\030" + - "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" + - "Location\022\032\n\rconnection_id\030\002 \001(\tB\003\340A\001\022H\n\n" + - "connection\030\003 \001(\0132/.google.cloud.bigquery" + - ".connection.v1.ConnectionB\003\340A\002\"Z\n\024GetCon" + - "nectionRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,bi" + - "gqueryconnection.googleapis.com/Connecti" + - "on\"\177\n\026ListConnectionsRequest\0229\n\006parent\030\001" + - " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + - "ocation\022\026\n\tpage_size\030\004 \001(\005B\003\340A\002\022\022\n\npage_" + - "token\030\003 \001(\t\"x\n\027ListConnectionsResponse\022\027" + - "\n\017next_page_token\030\001 \001(\t\022D\n\013connections\030\002" + - " \003(\0132/.google.cloud.bigquery.connection." + - "v1.Connection\"\335\001\n\027UpdateConnectionReques" + - "t\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,bigqueryconnect" + - "ion.googleapis.com/Connection\022H\n\nconnect" + - "ion\030\002 \001(\0132/.google.cloud.bigquery.connec" + - "tion.v1.ConnectionB\003\340A\002\0224\n\013update_mask\030\003" + - " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"]\n" + - "\027DeleteConnectionRequest\022B\n\004name\030\001 \001(\tB4" + - "\340A\002\372A.\n,bigqueryconnection.googleapis.co" + - "m/Connection\"\212\004\n\nConnection\022\014\n\004name\030\001 \001(" + - "\t\022\025\n\rfriendly_name\030\002 \001(\t\022\023\n\013description\030" + - "\003 \001(\t\022L\n\tcloud_sql\030\004 \001(\01327.google.cloud." + - "bigquery.connection.v1.CloudSqlPropertie" + - "sH\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.bigquery.co" + - "nnection.v1.CloudSpannerPropertiesH\000\022\032\n\r" + - "creation_time\030\005 \001(\003B\003\340A\003\022\037\n\022last_modifie" + - "d_time\030\006 \001(\003B\003\340A\003\022\033\n\016has_credential\030\007 \001(" + - "\010B\003\340A\003:s\352Ap\n,bigqueryconnection.googleap" + - "is.com/Connection\022@projects/{project}/lo" + - "cations/{location}/connections/{connecti" + - "on}B\014\n\nproperties\"\251\002\n\022CloudSqlProperties" + - "\022\023\n\013instance_id\030\001 \001(\t\022\020\n\010database\030\002 \001(\t\022" + - "R\n\004type\030\003 \001(\0162D.google.cloud.bigquery.co" + - "nnection.v1.CloudSqlProperties.DatabaseT" + - "ype\022P\n\ncredential\030\004 \001(\01327.google.cloud.b" + - "igquery.connection.v1.CloudSqlCredential" + - "B\003\340A\004\"F\n\014DatabaseType\022\035\n\031DATABASE_TYPE_U" + - "NSPECIFIED\020\000\022\014\n\010POSTGRES\020\001\022\t\n\005MYSQL\020\002\"8\n" + - "\022CloudSqlCredential\022\020\n\010username\030\001 \001(\t\022\020\n" + - "\010password\030\002 \001(\t\"C\n\026CloudSpannerPropertie" + - "s\022\020\n\010database\030\001 \001(\t\022\027\n\017use_parallelism\030\002" + - " \001(\010\"\313\001\n\rAwsProperties\022V\n\022cross_account_" + - "role\030\002 \001(\01328.google.cloud.bigquery.conne" + - "ction.v1.AwsCrossAccountRoleH\000\022I\n\013access" + - "_role\030\003 \001(\01322.google.cloud.bigquery.conn" + - "ection.v1.AwsAccessRoleH\000B\027\n\025authenticat" + - "ion_method\"^\n\023AwsCrossAccountRole\022\023\n\013iam" + - "_role_id\030\001 \001(\t\022\030\n\013iam_user_id\030\002 \001(\tB\003\340A\003" + - "\022\030\n\013external_id\030\003 \001(\tB\003\340A\003\"6\n\rAwsAccessR" + - "ole\022\023\n\013iam_role_id\030\001 \001(\t\022\020\n\010identity\030\002 \001" + - "(\t2\314\r\n\021ConnectionService\022\350\001\n\020CreateConne" + - "ction\022<.google.cloud.bigquery.connection" + - ".v1.CreateConnectionRequest\032/.google.clo" + - "ud.bigquery.connection.v1.Connection\"e\202\323" + - "\344\223\002=\"//v1/{parent=projects/*/locations/*" + - "}/connections:\nconnection\332A\037parent,conne" + - "ction,connection_id\022\273\001\n\rGetConnection\0229." + - "google.cloud.bigquery.connection.v1.GetC" + - "onnectionRequest\032/.google.cloud.bigquery" + - ".connection.v1.Connection\">\202\323\344\223\0021\022//v1/{" + - "name=projects/*/locations/*/connections/" + - "*}\332A\004name\022\316\001\n\017ListConnections\022;.google.c" + - "loud.bigquery.connection.v1.ListConnecti" + - "onsRequest\032<.google.cloud.bigquery.conne" + - "ction.v1.ListConnectionsResponse\"@\202\323\344\223\0021" + - "\022//v1/{parent=projects/*/locations/*}/co" + - "nnections\332A\006parent\022\344\001\n\020UpdateConnection\022" + - "<.google.cloud.bigquery.connection.v1.Up" + - "dateConnectionRequest\032/.google.cloud.big" + - "query.connection.v1.Connection\"a\202\323\344\223\002=2/" + - "/v1/{name=projects/*/locations/*/connect" + - "ions/*}:\nconnection\332A\033name,connection,up" + - "date_mask\022\250\001\n\020DeleteConnection\022<.google." + - "cloud.bigquery.connection.v1.DeleteConne" + - "ctionRequest\032\026.google.protobuf.Empty\">\202\323" + - "\344\223\0021*//v1/{name=projects/*/locations/*/c" + - "onnections/*}\332A\004name\022\251\001\n\014GetIamPolicy\022\"." + - "google.iam.v1.GetIamPolicyRequest\032\025.goog" + - "le.iam.v1.Policy\"^\202\323\344\223\002E\"@/v1/{resource=" + - "projects/*/locations/*/connections/*}:ge" + - "tIamPolicy:\001*\332A\020resource,options\022\250\001\n\014Set" + - "IamPolicy\022\".google.iam.v1.SetIamPolicyRe" + - "quest\032\025.google.iam.v1.Policy\"]\202\323\344\223\002E\"@/v" + - "1/{resource=projects/*/locations/*/conne" + - "ctions/*}:setIamPolicy:\001*\332A\017resource,pol" + - "icy\022\323\001\n\022TestIamPermissions\022(.google.iam." + - "v1.TestIamPermissionsRequest\032).google.ia" + - "m.v1.TestIamPermissionsResponse\"h\202\323\344\223\002K\"" + - "F/v1/{resource=projects/*/locations/*/co" + - "nnections/*}:testIamPermissions:\001*\332A\024res" + - "ource,permissions\032~\312A!bigqueryconnection" + - ".googleapis.com\322AWhttps://www.googleapis" + - ".com/auth/bigquery,https://www.googleapi" + - "s.com/auth/cloud-platformB\306\001\n\'com.google" + - ".cloud.bigquery.connection.v1P\001ZMgoogle." + - "golang.org/genproto/googleapis/cloud/big" + - "query/connection/v1;connection\252\002#Google." + - "Cloud.BigQuery.Connection.V1\312\002#Google\\Cl" + - "oud\\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(), - com.google.protobuf.WrappersProto.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", "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", }); - 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(); - com.google.protobuf.WrappersProto.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 96bc34d9..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,1030 +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") -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 2848d20b..62a9ceba 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,59 +72,66 @@ 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) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.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 @@ -116,30 +140,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 { @@ -150,12 +174,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 @@ -164,30 +191,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 { @@ -196,6 +223,7 @@ public java.lang.String getIdentity() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,8 +235,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 (!getIamRoleIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, iamRoleId_); } @@ -238,17 +265,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; } @@ -270,96 +296,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.
@@ -367,21 +401,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()
@@ -389,16 +425,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();
@@ -410,9 +445,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
@@ -431,7 +466,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();
@@ -442,38 +478,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;
@@ -481,7 +518,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();
@@ -509,7 +547,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) {
@@ -521,19 +560,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; @@ -542,21 +583,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 { @@ -564,57 +606,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; @@ -622,19 +671,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; @@ -643,21 +694,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 { @@ -665,64 +717,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); } @@ -732,12 +791,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(); } @@ -746,16 +805,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; @@ -770,6 +829,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 72% 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 4a6197be..2d04cf37 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,65 +73,73 @@ 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) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.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 @@ -123,30 +148,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 { @@ -157,11 +182,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 @@ -170,29 +198,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 { @@ -203,6 +231,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
@@ -210,6 +240,7 @@ public java.lang.String getIamUserId() {
    * 
* * string external_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The externalId. */ @java.lang.Override @@ -218,14 +249,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
@@ -233,16 +265,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 { @@ -251,6 +282,7 @@ public java.lang.String getExternalId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,8 +294,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 (!getIamRoleIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, iamRoleId_); } @@ -299,19 +330,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; } @@ -335,96 +364,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.
@@ -432,21 +469,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()
@@ -454,16 +493,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();
@@ -477,9 +515,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
@@ -498,7 +536,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_;
@@ -510,38 +549,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;
@@ -549,7 +589,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();
@@ -581,7 +622,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) {
@@ -593,19 +635,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; @@ -614,21 +658,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 { @@ -636,57 +681,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; @@ -694,18 +746,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; @@ -714,20 +768,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 { @@ -735,54 +790,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; @@ -790,6 +852,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
@@ -797,13 +861,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; @@ -812,6 +876,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
@@ -819,15 +885,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 { @@ -835,6 +900,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
@@ -842,20 +909,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
@@ -863,15 +932,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
@@ -879,23 +951,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); } @@ -905,12 +977,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(); } @@ -919,16 +991,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; @@ -943,6 +1015,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 2a9750a3..9639a07d 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,75 +68,94 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.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; } @@ -136,31 +171,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 @@ -168,22 +209,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.
@@ -192,21 +238,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 @@ -214,22 +264,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.
@@ -240,12 +295,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;
@@ -257,13 +313,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);
   }
@@ -275,12 +332,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;
@@ -290,22 +350,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:
@@ -339,117 +398,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() @@ -457,16 +526,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(); @@ -476,9 +544,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 @@ -497,7 +565,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_; @@ -521,38 +590,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; @@ -560,19 +630,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(); @@ -593,7 +667,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) { @@ -602,12 +677,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() { @@ -617,16 +692,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 @@ -634,19 +714,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 { @@ -657,6 +741,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.
@@ -664,7 +750,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();
@@ -678,6 +765,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.
@@ -697,6 +786,8 @@ public Builder setCrossAccountRole(
       return this;
     }
     /**
+     *
+     *
      * 
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
@@ -704,12 +795,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;
         }
@@ -724,6 +822,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.
@@ -748,6 +848,8 @@ public Builder clearCrossAccountRole() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
@@ -755,10 +857,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.
@@ -767,17 +872,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.
@@ -786,33 +895,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 @@ -820,12 +942,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 @@ -843,6 +968,8 @@ public com.google.cloud.bigquery.connection.v1.AwsAccessRole getAccessRole() { } } /** + * + * *
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
@@ -864,6 +991,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.
@@ -883,6 +1012,8 @@ public Builder setAccessRole(
       return this;
     }
     /**
+     *
+     *
      * 
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
@@ -892,10 +1023,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;
         }
@@ -910,6 +1045,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.
@@ -934,6 +1071,8 @@ public Builder clearAccessRole() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
@@ -945,6 +1084,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.
@@ -964,6 +1105,8 @@ public com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder getAccessR
       }
     }
     /**
+     *
+     *
      * 
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
@@ -972,26 +1115,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);
     }
 
@@ -1001,12 +1151,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();
   }
@@ -1015,16 +1165,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;
@@ -1039,6 +1189,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/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 0f0465a3..1da57e12 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,57 +70,63 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.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 @@ -112,29 +135,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 { @@ -145,11 +168,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 @@ -158,6 +184,7 @@ public boolean getUseParallelism() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +196,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 (!getDatabaseBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_); } @@ -190,8 +216,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; @@ -201,17 +226,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; } @@ -226,125 +250,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() @@ -352,16 +385,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(); @@ -373,13 +405,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(); } @@ -394,7 +427,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(); @@ -405,38 +439,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; @@ -444,7 +479,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(); @@ -471,7 +508,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) { @@ -483,18 +522,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; @@ -503,20 +544,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 { @@ -524,66 +566,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 @@ -591,37 +643,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); } @@ -631,30 +689,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; @@ -666,9 +726,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 69% 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 db8e2bb0..7ee35422 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,58 +71,65 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.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 @@ -114,29 +138,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 { @@ -147,11 +171,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 @@ -160,29 +187,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 { @@ -191,6 +218,7 @@ public java.lang.String getPassword() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +230,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 (!getUsernameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -233,17 +260,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; } @@ -265,117 +291,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() @@ -383,16 +419,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(); @@ -404,9 +439,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 @@ -425,7 +460,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(); @@ -436,38 +472,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; @@ -475,7 +512,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(); @@ -503,7 +541,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) { @@ -515,18 +554,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; @@ -535,20 +576,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 { @@ -556,54 +598,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; @@ -611,18 +660,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; @@ -631,20 +682,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 { @@ -652,61 +704,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); } @@ -716,12 +775,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(); } @@ -730,16 +789,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; @@ -754,6 +813,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 476c521d..b180b477 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,79 +72,91 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.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.
      * 
@@ -136,6 +165,8 @@ public enum DatabaseType */ DATABASE_TYPE_UNSPECIFIED(0), /** + * + * *
      * Cloud SQL for PostgreSQL.
      * 
@@ -144,6 +175,8 @@ public enum DatabaseType */ POSTGRES(1), /** + * + * *
      * Cloud SQL for MySQL.
      * 
@@ -155,6 +188,8 @@ public enum DatabaseType ; /** + * + * *
      * Unspecified database type.
      * 
@@ -163,6 +198,8 @@ public enum DatabaseType */ public static final int DATABASE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Cloud SQL for PostgreSQL.
      * 
@@ -171,6 +208,8 @@ public enum DatabaseType */ public static final int POSTGRES_VALUE = 1; /** + * + * *
      * Cloud SQL for MySQL.
      * 
@@ -179,7 +218,6 @@ public enum DatabaseType */ public static final int MYSQL_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -204,49 +242,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; @@ -266,11 +306,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 @@ -279,29 +322,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 { @@ -312,11 +355,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 @@ -325,29 +371,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 { @@ -358,38 +404,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 @@ -397,30 +459,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; @@ -432,15 +507,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 (!getInstanceIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_); } if (!getDatabaseBytes().isEmpty()) { 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) { @@ -461,13 +538,14 @@ public int getSerializedSize() { if (!getDatabaseBytes().isEmpty()) { 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; @@ -477,22 +555,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; @@ -521,117 +597,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() @@ -639,16 +725,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(); @@ -668,9 +753,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 @@ -689,7 +774,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_; @@ -706,38 +792,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; @@ -745,7 +832,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(); @@ -779,7 +867,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) { @@ -791,18 +880,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; @@ -811,20 +902,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 { @@ -832,54 +924,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; @@ -887,18 +986,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; @@ -907,20 +1008,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 { @@ -928,54 +1030,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; @@ -983,73 +1092,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; @@ -1057,39 +1186,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) { @@ -1105,11 +1253,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) { @@ -1123,17 +1275,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; } @@ -1145,11 +1304,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) { @@ -1163,55 +1326,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); } @@ -1221,12 +1402,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(); } @@ -1235,16 +1416,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; @@ -1259,6 +1440,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 71% 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 3d2d9644..3fd55c4a 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,123 +73,150 @@ 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;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          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;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.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),
     CLOUD_SPANNER(21),
     PROPERTIES_NOT_SET(0);
     private final int value;
+
     private PropertiesCase(int value) {
       this.value = value;
     }
@@ -188,33 +232,40 @@ 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 0: return PROPERTIES_NOT_SET;
-        default: return null;
+        case 4:
+          return CLOUD_SQL;
+        case 8:
+          return AWS;
+        case 21:
+          return CLOUD_SPANNER;
+        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 @@ -223,30 +274,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 { @@ -257,11 +308,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 @@ -270,29 +324,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 { @@ -303,11 +357,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 @@ -316,29 +373,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 { @@ -348,11 +405,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 @@ -360,21 +420,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.
    * 
@@ -382,20 +447,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 @@ -403,21 +472,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.
    * 
@@ -427,18 +501,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 @@ -446,21 +523,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.
    * 
@@ -468,9 +550,10 @@ 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(); } @@ -478,11 +561,14 @@ public com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder g 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 @@ -493,11 +579,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 @@ -508,11 +597,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 @@ -521,6 +613,7 @@ public boolean getHasCredential() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -532,8 +625,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -544,7 +636,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_); @@ -559,7 +652,8 @@ 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_); } unknownFields.writeTo(output); } @@ -580,28 +674,28 @@ 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_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -611,38 +705,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.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 0: default: @@ -665,14 +751,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; @@ -695,96 +778,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.
@@ -792,21 +882,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()
@@ -814,16 +906,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();
@@ -845,9 +936,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
@@ -866,7 +957,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_;
@@ -903,38 +995,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;
@@ -942,7 +1035,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();
@@ -965,21 +1059,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 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 PROPERTIES_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1000,7 +1098,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) {
@@ -1009,12 +1108,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() {
@@ -1024,22 +1123,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; @@ -1048,21 +1148,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 { @@ -1070,57 +1171,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; @@ -1128,18 +1236,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; @@ -1148,20 +1258,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 { @@ -1169,54 +1280,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; @@ -1224,18 +1342,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; @@ -1244,20 +1364,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 { @@ -1265,67 +1386,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 @@ -1333,11 +1467,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 @@ -1355,6 +1492,8 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlProperties getCloudSql() } } /** + * + * *
      * Cloud SQL properties.
      * 
@@ -1375,6 +1514,8 @@ public Builder setCloudSql(com.google.cloud.bigquery.connection.v1.CloudSqlPrope return this; } /** + * + * *
      * Cloud SQL properties.
      * 
@@ -1393,6 +1534,8 @@ public Builder setCloudSql( return this; } /** + * + * *
      * Cloud SQL properties.
      * 
@@ -1401,10 +1544,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; } @@ -1419,6 +1567,8 @@ public Builder mergeCloudSql(com.google.cloud.bigquery.connection.v1.CloudSqlPro return this; } /** + * + * *
      * Cloud SQL properties.
      * 
@@ -1442,6 +1592,8 @@ public Builder clearCloudSql() { return this; } /** + * + * *
      * Cloud SQL properties.
      * 
@@ -1452,6 +1604,8 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder getClo return getCloudSqlFieldBuilder().getBuilder(); } /** + * + * *
      * Cloud SQL properties.
      * 
@@ -1459,7 +1613,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 { @@ -1470,6 +1625,8 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlPropertiesOrBuilder getCl } } /** + * + * *
      * Cloud SQL properties.
      * 
@@ -1477,32 +1634,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 @@ -1510,11 +1680,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 @@ -1532,6 +1705,8 @@ public com.google.cloud.bigquery.connection.v1.AwsProperties getAws() { } } /** + * + * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1552,6 +1727,8 @@ public Builder setAws(com.google.cloud.bigquery.connection.v1.AwsProperties valu return this; } /** + * + * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1570,6 +1747,8 @@ public Builder setAws( return this; } /** + * + * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1578,10 +1757,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; } @@ -1596,6 +1779,8 @@ public Builder mergeAws(com.google.cloud.bigquery.connection.v1.AwsProperties va return this; } /** + * + * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1619,6 +1804,8 @@ public Builder clearAws() { return this; } /** + * + * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1629,6 +1816,8 @@ public com.google.cloud.bigquery.connection.v1.AwsProperties.Builder getAwsBuild return getAwsFieldBuilder().getBuilder(); } /** + * + * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1647,6 +1836,8 @@ public com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder getAwsOrBu } } /** + * + * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1654,32 +1845,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 @@ -1687,11 +1890,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 @@ -1709,13 +1915,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(); @@ -1729,6 +1938,8 @@ public Builder setCloudSpanner(com.google.cloud.bigquery.connection.v1.CloudSpan return this; } /** + * + * *
      * Cloud Spanner properties.
      * 
@@ -1747,18 +1958,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; } @@ -1773,6 +1992,8 @@ public Builder mergeCloudSpanner(com.google.cloud.bigquery.connection.v1.CloudSp return this; } /** + * + * *
      * Cloud Spanner properties.
      * 
@@ -1796,16 +2017,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.
      * 
@@ -1813,7 +2039,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 { @@ -1824,6 +2051,8 @@ public com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder g } } /** + * + * *
      * Cloud Spanner properties.
      * 
@@ -1831,31 +2060,41 @@ 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 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 @@ -1863,42 +2102,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 @@ -1906,42 +2154,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 @@ -1949,37 +2206,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); } @@ -1989,12 +2252,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(); } @@ -2003,16 +2266,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; @@ -2027,6 +2290,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 80% 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 28ad1a15..f6884994 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,58 +171,76 @@ 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(); /** + * + * *
    * 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..9ee2890c --- /dev/null +++ b/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java @@ -0,0 +1,354 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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; + + 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\032\036google/protobuf/wrappers.prot" + + "o\"\272\001\n\027CreateConnectionRequest\0229\n\006parent\030" + + "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" + + "Location\022\032\n\rconnection_id\030\002 \001(\tB\003\340A\001\022H\n\n" + + "connection\030\003 \001(\0132/.google.cloud.bigquery" + + ".connection.v1.ConnectionB\003\340A\002\"Z\n\024GetCon" + + "nectionRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,bi" + + "gqueryconnection.googleapis.com/Connecti" + + "on\"\177\n\026ListConnectionsRequest\0229\n\006parent\030\001" + + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" + + "ocation\022\026\n\tpage_size\030\004 \001(\005B\003\340A\002\022\022\n\npage_" + + "token\030\003 \001(\t\"x\n\027ListConnectionsResponse\022\027" + + "\n\017next_page_token\030\001 \001(\t\022D\n\013connections\030\002" + + " \003(\0132/.google.cloud.bigquery.connection." + + "v1.Connection\"\335\001\n\027UpdateConnectionReques" + + "t\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,bigqueryconnect" + + "ion.googleapis.com/Connection\022H\n\nconnect" + + "ion\030\002 \001(\0132/.google.cloud.bigquery.connec" + + "tion.v1.ConnectionB\003\340A\002\0224\n\013update_mask\030\003" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"]\n" + + "\027DeleteConnectionRequest\022B\n\004name\030\001 \001(\tB4" + + "\340A\002\372A.\n,bigqueryconnection.googleapis.co" + + "m/Connection\"\212\004\n\nConnection\022\014\n\004name\030\001 \001(" + + "\t\022\025\n\rfriendly_name\030\002 \001(\t\022\023\n\013description\030" + + "\003 \001(\t\022L\n\tcloud_sql\030\004 \001(\01327.google.cloud." + + "bigquery.connection.v1.CloudSqlPropertie" + + "sH\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.bigquery.co" + + "nnection.v1.CloudSpannerPropertiesH\000\022\032\n\r" + + "creation_time\030\005 \001(\003B\003\340A\003\022\037\n\022last_modifie" + + "d_time\030\006 \001(\003B\003\340A\003\022\033\n\016has_credential\030\007 \001(" + + "\010B\003\340A\003:s\352Ap\n,bigqueryconnection.googleap" + + "is.com/Connection\022@projects/{project}/lo" + + "cations/{location}/connections/{connecti" + + "on}B\014\n\nproperties\"\251\002\n\022CloudSqlProperties" + + "\022\023\n\013instance_id\030\001 \001(\t\022\020\n\010database\030\002 \001(\t\022" + + "R\n\004type\030\003 \001(\0162D.google.cloud.bigquery.co" + + "nnection.v1.CloudSqlProperties.DatabaseT" + + "ype\022P\n\ncredential\030\004 \001(\01327.google.cloud.b" + + "igquery.connection.v1.CloudSqlCredential" + + "B\003\340A\004\"F\n\014DatabaseType\022\035\n\031DATABASE_TYPE_U" + + "NSPECIFIED\020\000\022\014\n\010POSTGRES\020\001\022\t\n\005MYSQL\020\002\"8\n" + + "\022CloudSqlCredential\022\020\n\010username\030\001 \001(\t\022\020\n" + + "\010password\030\002 \001(\t\"C\n\026CloudSpannerPropertie" + + "s\022\020\n\010database\030\001 \001(\t\022\027\n\017use_parallelism\030\002" + + " \001(\010\"\313\001\n\rAwsProperties\022V\n\022cross_account_" + + "role\030\002 \001(\01328.google.cloud.bigquery.conne" + + "ction.v1.AwsCrossAccountRoleH\000\022I\n\013access" + + "_role\030\003 \001(\01322.google.cloud.bigquery.conn" + + "ection.v1.AwsAccessRoleH\000B\027\n\025authenticat" + + "ion_method\"^\n\023AwsCrossAccountRole\022\023\n\013iam" + + "_role_id\030\001 \001(\t\022\030\n\013iam_user_id\030\002 \001(\tB\003\340A\003" + + "\022\030\n\013external_id\030\003 \001(\tB\003\340A\003\"6\n\rAwsAccessR" + + "ole\022\023\n\013iam_role_id\030\001 \001(\t\022\020\n\010identity\030\002 \001" + + "(\t2\314\r\n\021ConnectionService\022\350\001\n\020CreateConne" + + "ction\022<.google.cloud.bigquery.connection" + + ".v1.CreateConnectionRequest\032/.google.clo" + + "ud.bigquery.connection.v1.Connection\"e\202\323" + + "\344\223\002=\"//v1/{parent=projects/*/locations/*" + + "}/connections:\nconnection\332A\037parent,conne" + + "ction,connection_id\022\273\001\n\rGetConnection\0229." + + "google.cloud.bigquery.connection.v1.GetC" + + "onnectionRequest\032/.google.cloud.bigquery" + + ".connection.v1.Connection\">\202\323\344\223\0021\022//v1/{" + + "name=projects/*/locations/*/connections/" + + "*}\332A\004name\022\316\001\n\017ListConnections\022;.google.c" + + "loud.bigquery.connection.v1.ListConnecti" + + "onsRequest\032<.google.cloud.bigquery.conne" + + "ction.v1.ListConnectionsResponse\"@\202\323\344\223\0021" + + "\022//v1/{parent=projects/*/locations/*}/co" + + "nnections\332A\006parent\022\344\001\n\020UpdateConnection\022" + + "<.google.cloud.bigquery.connection.v1.Up" + + "dateConnectionRequest\032/.google.cloud.big" + + "query.connection.v1.Connection\"a\202\323\344\223\002=2/" + + "/v1/{name=projects/*/locations/*/connect" + + "ions/*}:\nconnection\332A\033name,connection,up" + + "date_mask\022\250\001\n\020DeleteConnection\022<.google." + + "cloud.bigquery.connection.v1.DeleteConne" + + "ctionRequest\032\026.google.protobuf.Empty\">\202\323" + + "\344\223\0021*//v1/{name=projects/*/locations/*/c" + + "onnections/*}\332A\004name\022\251\001\n\014GetIamPolicy\022\"." + + "google.iam.v1.GetIamPolicyRequest\032\025.goog" + + "le.iam.v1.Policy\"^\202\323\344\223\002E\"@/v1/{resource=" + + "projects/*/locations/*/connections/*}:ge" + + "tIamPolicy:\001*\332A\020resource,options\022\250\001\n\014Set" + + "IamPolicy\022\".google.iam.v1.SetIamPolicyRe" + + "quest\032\025.google.iam.v1.Policy\"]\202\323\344\223\002E\"@/v" + + "1/{resource=projects/*/locations/*/conne" + + "ctions/*}:setIamPolicy:\001*\332A\017resource,pol" + + "icy\022\323\001\n\022TestIamPermissions\022(.google.iam." + + "v1.TestIamPermissionsRequest\032).google.ia" + + "m.v1.TestIamPermissionsResponse\"h\202\323\344\223\002K\"" + + "F/v1/{resource=projects/*/locations/*/co" + + "nnections/*}:testIamPermissions:\001*\332A\024res" + + "ource,permissions\032~\312A!bigqueryconnection" + + ".googleapis.com\322AWhttps://www.googleapis" + + ".com/auth/bigquery,https://www.googleapi" + + "s.com/auth/cloud-platformB\306\001\n\'com.google" + + ".cloud.bigquery.connection.v1P\001ZMgoogle." + + "golang.org/genproto/googleapis/cloud/big" + + "query/connection/v1;connection\252\002#Google." + + "Cloud.BigQuery.Connection.V1\312\002#Google\\Cl" + + "oud\\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(), + com.google.protobuf.WrappersProto.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", + "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", + }); + 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(); + com.google.protobuf.WrappersProto.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 63% 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 6c8b81d4..ef735f2b 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,72 +71,85 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.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 @@ -128,30 +158,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 { @@ -162,11 +194,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 @@ -175,29 +210,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 { @@ -208,11 +243,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 @@ -220,23 +260,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() { @@ -244,6 +295,7 @@ public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnection } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,8 +307,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -282,8 +333,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; @@ -293,21 +343,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; @@ -334,117 +382,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() @@ -452,16 +510,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -479,13 +536,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(); } @@ -500,7 +558,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) { @@ -516,46 +575,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(); @@ -586,7 +649,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) { @@ -598,19 +663,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; @@ -619,21 +688,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 { @@ -641,57 +713,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; @@ -699,18 +784,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; @@ -719,20 +806,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 { @@ -740,54 +828,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; @@ -795,39 +890,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) { @@ -843,11 +957,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) { @@ -861,17 +979,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; } @@ -883,11 +1007,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) { @@ -901,55 +1029,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); } @@ -959,30 +1103,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; @@ -994,9 +1140,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 9693dd49..1daf54e3 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,53 +70,61 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.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 @@ -108,30 +133,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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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; } @@ -204,117 +231,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() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,13 +377,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(); } @@ -362,7 +399,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; @@ -372,46 +410,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(); @@ -435,7 +477,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) { @@ -447,19 +491,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; @@ -468,21 +516,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 { @@ -490,64 +541,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); } @@ -557,30 +621,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; @@ -592,9 +658,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 65% 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 c07a757c..73795a7b 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,53 +70,61 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.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 @@ -108,30 +133,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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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; } @@ -204,117 +231,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() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,13 +377,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(); } @@ -362,7 +399,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; @@ -372,38 +410,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; @@ -411,7 +450,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(); @@ -435,7 +476,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) { @@ -447,19 +489,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; @@ -468,21 +514,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 { @@ -490,64 +539,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); } @@ -557,12 +619,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(); } @@ -571,16 +634,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; @@ -595,6 +658,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 66% 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 1cc7db71..a061a70d 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,64 +71,73 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.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 @@ -120,30 +146,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 { @@ -154,11 +182,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 @@ -169,11 +200,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 @@ -182,29 +216,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * 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 { @@ -213,6 +247,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +259,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -251,8 +285,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; @@ -262,19 +295,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.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; } @@ -298,117 +329,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() @@ -416,16 +457,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -439,13 +479,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(); } @@ -460,7 +501,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_; @@ -472,38 +514,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; @@ -511,7 +554,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(); @@ -542,7 +587,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) { @@ -554,19 +601,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; @@ -575,21 +626,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 { @@ -597,69 +651,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 @@ -667,30 +737,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; @@ -698,18 +774,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; @@ -718,20 +796,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 { @@ -739,61 +818,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); } @@ -803,30 +889,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; @@ -838,9 +926,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 e79f1fb4..978d8a64 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,35 +72,39 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { connections_ = java.util.Collections.unmodifiableList(connections_); @@ -92,27 +113,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 @@ -121,29 +148,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 { @@ -154,6 +181,8 @@ public java.lang.String getNextPageToken() { public static final int CONNECTIONS_FIELD_NUMBER = 2; private java.util.List connections_; /** + * + * *
    * List of connections.
    * 
@@ -165,6 +194,8 @@ public java.util.List getCon return connections_; } /** + * + * *
    * List of connections.
    * 
@@ -172,11 +203,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.
    * 
@@ -188,6 +221,8 @@ public int getConnectionsCount() { return connections_.size(); } /** + * + * *
    * List of connections.
    * 
@@ -199,6 +234,8 @@ public com.google.cloud.bigquery.connection.v1.Connection getConnections(int ind return connections_.get(index); } /** + * + * *
    * List of connections.
    * 
@@ -212,6 +249,7 @@ public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnection } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -223,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 (!getNextPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nextPageToken_); } @@ -244,8 +281,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; @@ -255,17 +291,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; } @@ -289,117 +324,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() @@ -407,17 +452,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(); @@ -433,13 +478,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(); } @@ -454,7 +500,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) { @@ -474,46 +521,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(); @@ -536,9 +587,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_); } @@ -563,7 +615,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) { @@ -572,22 +626,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; @@ -596,20 +653,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 { @@ -617,72 +675,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.
      * 
@@ -697,6 +770,8 @@ public java.util.List getCon } } /** + * + * *
      * List of connections.
      * 
@@ -711,6 +786,8 @@ public int getConnectionsCount() { } } /** + * + * *
      * List of connections.
      * 
@@ -725,6 +802,8 @@ public com.google.cloud.bigquery.connection.v1.Connection getConnections(int ind } } /** + * + * *
      * List of connections.
      * 
@@ -746,6 +825,8 @@ public Builder setConnections( return this; } /** + * + * *
      * List of connections.
      * 
@@ -764,6 +845,8 @@ public Builder setConnections( return this; } /** + * + * *
      * List of connections.
      * 
@@ -784,6 +867,8 @@ public Builder addConnections(com.google.cloud.bigquery.connection.v1.Connection return this; } /** + * + * *
      * List of connections.
      * 
@@ -805,6 +890,8 @@ public Builder addConnections( return this; } /** + * + * *
      * List of connections.
      * 
@@ -823,6 +910,8 @@ public Builder addConnections( return this; } /** + * + * *
      * List of connections.
      * 
@@ -841,6 +930,8 @@ public Builder addConnections( return this; } /** + * + * *
      * List of connections.
      * 
@@ -851,8 +942,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); @@ -860,6 +950,8 @@ public Builder addAllConnections( return this; } /** + * + * *
      * List of connections.
      * 
@@ -877,6 +969,8 @@ public Builder clearConnections() { return this; } /** + * + * *
      * List of connections.
      * 
@@ -894,6 +988,8 @@ public Builder removeConnections(int index) { return this; } /** + * + * *
      * List of connections.
      * 
@@ -905,6 +1001,8 @@ public com.google.cloud.bigquery.connection.v1.Connection.Builder getConnections return getConnectionsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of connections.
      * 
@@ -914,19 +1012,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 { @@ -934,6 +1035,8 @@ public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnection } } /** + * + * *
      * List of connections.
      * 
@@ -941,10 +1044,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.
      * 
@@ -953,37 +1058,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); } @@ -993,30 +1104,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; @@ -1028,9 +1141,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 6e4ca42f..6b9633e9 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,79 +70,93 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.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 @@ -134,30 +165,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 { @@ -168,11 +201,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 @@ -180,23 +218,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() { @@ -206,11 +255,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 @@ -218,11 +271,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 @@ -230,11 +287,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() { @@ -242,6 +302,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -253,8 +314,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -277,12 +337,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; @@ -292,24 +350,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; @@ -338,117 +394,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() @@ -456,16 +522,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(); @@ -487,13 +552,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(); } @@ -508,7 +574,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_; @@ -528,46 +595,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(); @@ -597,7 +668,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) { @@ -609,19 +682,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; @@ -630,21 +707,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 { @@ -652,57 +732,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; @@ -710,39 +803,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) { @@ -758,11 +870,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) { @@ -776,17 +892,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; } @@ -798,11 +920,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) { @@ -816,48 +942,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_; @@ -865,39 +1007,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) { @@ -913,14 +1071,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(); @@ -931,17 +1091,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; } @@ -953,11 +1116,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) { @@ -971,55 +1137,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); } @@ -1029,30 +1208,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; @@ -1064,9 +1245,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 9602440f..b970c381 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,72 +183,89 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.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 @@ -212,30 +274,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 { @@ -246,11 +310,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 @@ -259,29 +326,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 { @@ -292,11 +359,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 @@ -304,30 +376,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; @@ -339,8 +425,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -366,8 +451,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; @@ -377,21 +461,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; @@ -417,88 +502,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 @@ -508,44 +619,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(); @@ -563,19 +682,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); } @@ -583,8 +706,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) { @@ -600,46 +727,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(); @@ -666,11 +804,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) { @@ -682,19 +823,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; @@ -703,21 +848,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 { @@ -725,57 +873,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; @@ -783,18 +944,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; @@ -803,20 +966,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 { @@ -824,54 +988,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; @@ -879,41 +1050,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(); @@ -927,14 +1120,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(); @@ -945,17 +1143,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; } @@ -967,11 +1173,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) { @@ -985,52 +1195,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) { @@ -1043,30 +1273,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; @@ -1078,70 +1314,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) @@ -1160,53 +1408,63 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.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 @@ -1215,30 +1473,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 { @@ -1247,6 +1507,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1258,8 +1519,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1283,15 +1543,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; } @@ -1310,88 +1572,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 @@ -1401,44 +1677,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(); @@ -1448,19 +1731,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); } @@ -1468,8 +1755,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; @@ -1479,46 +1769,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(); @@ -1538,11 +1838,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) { @@ -1554,19 +1857,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; @@ -1575,21 +1882,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 { @@ -1597,61 +1907,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) { @@ -1664,30 +1988,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; @@ -1699,101 +2027,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_ = ""; @@ -1801,16 +2158,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) @@ -1829,72 +2185,85 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.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 @@ -1903,30 +2272,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 { @@ -1937,11 +2308,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 @@ -1949,23 +2324,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() { @@ -1975,11 +2359,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 @@ -1988,29 +2375,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 { @@ -2019,6 +2406,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2030,8 +2418,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -2054,8 +2441,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 (!getPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -2068,22 +2454,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; } @@ -2108,88 +2494,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 @@ -2199,44 +2611,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(); @@ -2254,19 +2674,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); } @@ -2274,8 +2698,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_; @@ -2291,46 +2718,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(); @@ -2357,11 +2795,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) { @@ -2373,19 +2814,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; @@ -2394,21 +2839,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 { @@ -2416,57 +2864,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; @@ -2474,39 +2935,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) { @@ -2522,14 +3002,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(); @@ -2540,17 +3023,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; } @@ -2562,11 +3051,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) { @@ -2580,48 +3073,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_; @@ -2629,18 +3138,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; @@ -2649,20 +3160,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 { @@ -2670,58 +3182,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) { @@ -2734,30 +3254,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; @@ -2769,54 +3294,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.
      * 
@@ -2825,40 +3363,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(); @@ -2866,16 +3413,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) @@ -2895,35 +3441,42 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { connections_ = java.util.Collections.unmodifiableList(connections_); @@ -2932,27 +3485,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 @@ -2961,29 +3522,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 { @@ -2992,8 +3553,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.
      * 
@@ -3001,10 +3565,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.
      * 
@@ -3012,11 +3579,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.
      * 
@@ -3028,6 +3599,8 @@ public int getConnectionsCount() { return connections_.size(); } /** + * + * *
      * List of connections.
      * 
@@ -3035,10 +3608,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.
      * 
@@ -3046,12 +3622,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; @@ -3063,8 +3640,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 (!getNextPageTokenBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nextPageToken_); } @@ -3084,8 +3660,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; @@ -3095,17 +3670,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; } @@ -3128,88 +3705,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 @@ -3219,45 +3822,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(); @@ -3273,19 +3885,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); } @@ -3293,8 +3909,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) { @@ -3314,46 +3934,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(); @@ -3376,9 +4007,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_); } @@ -3399,11 +4031,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) { @@ -3412,22 +4047,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; @@ -3436,20 +4074,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 { @@ -3457,79 +4096,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 { @@ -3537,6 +4194,8 @@ public java.util.List * List of connections. *
@@ -3551,13 +4210,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 { @@ -3565,6 +4227,8 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection g } } /** + * + * *
        * List of connections.
        * 
@@ -3572,7 +4236,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(); @@ -3586,6 +4251,8 @@ public Builder setConnections( return this; } /** + * + * *
        * List of connections.
        * 
@@ -3593,7 +4260,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()); @@ -3604,13 +4273,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(); @@ -3624,6 +4296,8 @@ public Builder addConnections(com.google.cloud.bigquery.connection.v1beta1.Conne return this; } /** + * + * *
        * List of connections.
        * 
@@ -3631,7 +4305,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(); @@ -3645,6 +4320,8 @@ public Builder addConnections( return this; } /** + * + * *
        * List of connections.
        * 
@@ -3652,7 +4329,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()); @@ -3663,6 +4341,8 @@ public Builder addConnections( return this; } /** + * + * *
        * List of connections.
        * 
@@ -3670,7 +4350,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()); @@ -3681,6 +4363,8 @@ public Builder addConnections( return this; } /** + * + * *
        * List of connections.
        * 
@@ -3688,11 +4372,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); @@ -3700,6 +4385,8 @@ public Builder addAllConnections( return this; } /** + * + * *
        * List of connections.
        * 
@@ -3717,6 +4404,8 @@ public Builder clearConnections() { return this; } /** + * + * *
        * List of connections.
        * 
@@ -3734,39 +4423,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 { @@ -3774,45 +4472,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(), @@ -3821,6 +4538,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) { @@ -3833,30 +4551,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; @@ -3868,124 +4592,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) @@ -4004,79 +4766,97 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.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 @@ -4085,30 +4865,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 { @@ -4119,11 +4901,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 @@ -4131,37 +4918,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 @@ -4169,11 +4973,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 @@ -4181,11 +4989,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() { @@ -4193,6 +5004,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4204,8 +5016,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -4228,12 +5039,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; @@ -4243,24 +5052,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; @@ -4288,88 +5098,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 @@ -4379,44 +5215,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(); @@ -4438,19 +5282,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); } @@ -4458,8 +5306,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_; @@ -4479,46 +5331,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(); @@ -4544,11 +5407,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) { @@ -4560,19 +5426,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; @@ -4581,21 +5451,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 { @@ -4603,57 +5476,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; @@ -4661,41 +5547,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(); @@ -4709,14 +5617,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(); @@ -4727,17 +5640,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; } @@ -4749,11 +5670,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) { @@ -4767,48 +5692,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_; @@ -4816,39 +5760,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) { @@ -4864,14 +5824,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(); @@ -4882,17 +5844,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; } @@ -4904,11 +5871,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) { @@ -4922,52 +5892,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) { @@ -4980,30 +5964,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; @@ -5015,97 +6005,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) @@ -5124,66 +6141,81 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.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 @@ -5192,30 +6224,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 { @@ -5224,13 +6256,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 @@ -5238,30 +6276,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; @@ -5273,8 +6327,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -5294,8 +6347,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; @@ -5305,19 +6357,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; @@ -5341,88 +6398,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 @@ -5432,44 +6516,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(); @@ -5485,19 +6578,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); } @@ -5505,8 +6605,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_; @@ -5521,46 +6627,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(); @@ -5583,11 +6703,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) { @@ -5599,19 +6724,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; @@ -5620,21 +6747,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 { @@ -5642,99 +6770,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(); @@ -5748,14 +6908,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(); @@ -5766,17 +6931,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; } @@ -5788,11 +6961,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) { @@ -5806,52 +6983,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) { @@ -5864,30 +7067,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; @@ -5899,70 +7108,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) @@ -5981,53 +7203,63 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.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 @@ -6036,30 +7268,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 { @@ -6068,6 +7302,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6079,8 +7314,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -6104,15 +7338,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; } @@ -6131,88 +7368,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 @@ -6222,44 +7485,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(); @@ -6269,19 +7540,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); } @@ -6289,8 +7564,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; @@ -6300,46 +7579,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(); @@ -6359,11 +7649,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) { @@ -6375,19 +7668,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; @@ -6396,21 +7693,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 { @@ -6418,61 +7718,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) { @@ -6485,30 +7799,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; @@ -6520,138 +7840,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.
@@ -6659,15 +8016,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_ = "";
@@ -6676,16 +8034,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)
@@ -6704,93 +8061,115 @@ 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) {
         throw e.setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.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;
       }
@@ -6806,31 +8185,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 @@ -6839,30 +8223,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 { @@ -6873,11 +8257,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 @@ -6886,29 +8273,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 { @@ -6919,11 +8306,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 @@ -6932,29 +8322,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 { @@ -6964,11 +8354,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 @@ -6976,21 +8369,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.
      * 
@@ -6998,21 +8399,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 @@ -7023,11 +8430,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 @@ -7038,11 +8448,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 @@ -7051,6 +8464,7 @@ public boolean getHasCredential() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7062,8 +8476,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -7074,7 +8487,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_); @@ -7104,20 +8520,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; @@ -7127,30 +8543,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: @@ -7173,14 +8584,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; @@ -7195,87 +8603,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 @@ -7285,6 +8701,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Configuration parameters to establish connection with an external data
      * source, except the credential attributes.
@@ -7292,38 +8710,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();
@@ -7345,19 +8767,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);
         }
@@ -7365,8 +8790,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_;
@@ -7389,46 +8816,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();
@@ -7451,13 +8886,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();
@@ -7474,11 +8911,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) {
@@ -7487,12 +8927,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() {
@@ -7502,22 +8942,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; @@ -7526,21 +8967,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 { @@ -7548,57 +8990,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; @@ -7606,18 +9055,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; @@ -7626,20 +9077,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 { @@ -7647,54 +9099,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; @@ -7702,18 +9161,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; @@ -7722,20 +9183,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 { @@ -7743,67 +9205,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 @@ -7811,35 +9288,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(); @@ -7853,6 +9340,8 @@ public Builder setCloudSql(com.google.cloud.bigquery.connection.v1beta1.Connecti return this; } /** + * + * *
        * Cloud SQL properties.
        * 
@@ -7860,7 +9349,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(); @@ -7871,18 +9361,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; } @@ -7897,6 +9398,8 @@ public Builder mergeCloudSql(com.google.cloud.bigquery.connection.v1beta1.Connec return this; } /** + * + * *
        * Cloud SQL properties.
        * 
@@ -7920,16 +9423,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.
        * 
@@ -7937,17 +9445,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.
        * 
@@ -7955,31 +9469,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 @@ -7987,42 +9517,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 @@ -8030,42 +9569,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 @@ -8073,34 +9621,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) { @@ -8113,30 +9668,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; @@ -8148,76 +9706,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) @@ -8236,60 +9807,80 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.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; } @@ -8305,29 +9896,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 @@ -8335,21 +9931,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.
      * 
@@ -8357,14 +9961,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; @@ -8376,10 +9984,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); } @@ -8391,8 +10001,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; @@ -8402,18 +10015,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: @@ -8442,88 +10057,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 @@ -8533,44 +10162,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(); @@ -8580,19 +10216,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); } @@ -8600,8 +10240,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_; @@ -8618,54 +10261,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(); @@ -8682,11 +10337,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) { @@ -8695,12 +10353,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() { @@ -8710,15 +10368,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 @@ -8726,35 +10391,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(); @@ -8768,6 +10443,8 @@ public Builder setCloudSql(com.google.cloud.bigquery.connection.v1beta1.Connecti return this; } /** + * + * *
        * Credential for Cloud SQL database.
        * 
@@ -8775,7 +10452,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(); @@ -8786,18 +10464,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; } @@ -8812,6 +10501,8 @@ public Builder mergeCloudSql(com.google.cloud.bigquery.connection.v1beta1.Connec return this; } /** + * + * *
        * Credential for Cloud SQL database.
        * 
@@ -8835,16 +10526,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.
        * 
@@ -8852,17 +10548,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.
        * 
@@ -8870,23 +10572,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) { @@ -8899,30 +10615,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; @@ -8934,118 +10654,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_ = ""; @@ -9054,16 +10812,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) @@ -9082,79 +10839,96 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.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.
        * 
@@ -9163,6 +10937,8 @@ public enum DatabaseType */ DATABASE_TYPE_UNSPECIFIED(0), /** + * + * *
        * Cloud SQL for PostgreSQL.
        * 
@@ -9171,6 +10947,8 @@ public enum DatabaseType */ POSTGRES(1), /** + * + * *
        * Cloud SQL for MySQL.
        * 
@@ -9182,6 +10960,8 @@ public enum DatabaseType ; /** + * + * *
        * Unspecified database type.
        * 
@@ -9190,6 +10970,8 @@ public enum DatabaseType */ public static final int DATABASE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * Cloud SQL for PostgreSQL.
        * 
@@ -9198,6 +10980,8 @@ public enum DatabaseType */ public static final int POSTGRES_VALUE = 1; /** + * + * *
        * Cloud SQL for MySQL.
        * 
@@ -9206,7 +10990,6 @@ public enum DatabaseType */ public static final int MYSQL_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -9231,49 +11014,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; @@ -9293,11 +11079,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 @@ -9306,29 +11095,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 { @@ -9339,11 +11128,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 @@ -9352,29 +11144,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 { @@ -9385,38 +11177,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 @@ -9424,30 +11240,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; @@ -9459,15 +11290,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 (!getInstanceIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_); } if (!getDatabaseBytes().isEmpty()) { 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) { @@ -9488,13 +11321,14 @@ public int getSerializedSize() { if (!getDatabaseBytes().isEmpty()) { 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; @@ -9504,22 +11338,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; @@ -9547,88 +11381,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 @@ -9638,44 +11485,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(); @@ -9695,19 +11549,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); } @@ -9715,8 +11573,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_; @@ -9733,46 +11594,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(); @@ -9802,11 +11673,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) { @@ -9818,18 +11692,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; @@ -9838,20 +11714,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 { @@ -9859,54 +11736,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; @@ -9914,18 +11798,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; @@ -9934,20 +11820,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 { @@ -9955,54 +11842,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; @@ -10010,115 +11904,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(); @@ -10132,14 +12083,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(); @@ -10150,17 +12106,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; } @@ -10172,11 +12136,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) { @@ -10190,52 +12158,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) { @@ -10248,30 +12241,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; @@ -10283,72 +12280,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_ = ""; @@ -10356,16 +12367,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) @@ -10384,58 +12394,66 @@ 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) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.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 @@ -10444,29 +12462,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 { @@ -10477,11 +12495,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 @@ -10490,29 +12511,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 { @@ -10521,6 +12542,7 @@ public java.lang.String getPassword() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10532,8 +12554,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 (!getUsernameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -10563,17 +12584,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; } @@ -10594,88 +12616,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 @@ -10685,44 +12720,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(); @@ -10734,19 +12776,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); } @@ -10754,8 +12800,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(); @@ -10766,46 +12815,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(); @@ -10829,11 +12888,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) { @@ -10845,18 +12907,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; @@ -10865,20 +12929,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 { @@ -10886,54 +12951,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; @@ -10941,18 +13013,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; @@ -10961,20 +13035,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 { @@ -10982,58 +13057,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) { @@ -11046,30 +13129,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; @@ -11081,272 +13168,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); @@ -11356,8 +13462,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