From eefe8c4210e83de83fd2b82328dfda255a960aa4 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 16 Mar 2023 21:28:53 +0000 Subject: [PATCH 1/2] feat: add spark connection properties type PiperOrigin-RevId: 517172721 Source-Link: https://github.com/googleapis/googleapis/commit/98c303c996d33de57b06237f54d0dc918864463a Source-Link: https://github.com/googleapis/googleapis-gen/commit/384639d6a8724bd5de0307da4b5335eb24aa929e Copy-Tag: eyJwIjoiamF2YS1iaWdxdWVyeWNvbm5lY3Rpb24vLk93bEJvdC55YW1sIiwiaCI6IjM4NDYzOWQ2YTg3MjRiZDVkZTAzMDdkYTRiNTMzNWViMjRhYTkyOWUifQ== --- .../connection/v1/ConnectionServiceGrpc.java | 1216 --- .../v1beta1/ConnectionServiceGrpc.java | 1417 --- .../connection/v1/ConnectionOuterClass.java | 397 - .../v1/DeleteConnectionRequestOrBuilder.java | 56 - .../v1/GetConnectionRequestOrBuilder.java | 56 - .../v1/ConnectionServiceClient.java | 0 .../v1/ConnectionServiceSettings.java | 1 + .../bigqueryconnection/v1/gapic_metadata.json | 0 .../bigqueryconnection/v1/package-info.java | 0 .../v1/stub/ConnectionServiceStub.java | 0 .../stub/ConnectionServiceStubSettings.java | 0 .../GrpcConnectionServiceCallableFactory.java | 0 .../v1/stub/GrpcConnectionServiceStub.java | 1 + ...pJsonConnectionServiceCallableFactory.java | 0 .../stub/HttpJsonConnectionServiceStub.java | 0 .../ConnectionServiceClientHttpJsonTest.java | 0 .../v1/ConnectionServiceClientTest.java | 0 .../v1/MockConnectionService.java | 0 .../v1/MockConnectionServiceImpl.java | 0 .../connection/v1/ConnectionServiceGrpc.java | 945 ++ .../bigquery/connection/v1/AwsAccessRole.java | 400 +- .../connection/v1/AwsAccessRoleOrBuilder.java | 36 +- .../connection/v1/AwsCrossAccountRole.java | 472 +- .../v1/AwsCrossAccountRoleOrBuilder.java | 45 +- .../bigquery/connection/v1/AwsProperties.java | 606 +- .../connection/v1/AwsPropertiesOrBuilder.java | 63 +- .../connection/v1/AzureProperties.java | 767 +- .../v1/AzurePropertiesOrBuilder.java | 81 +- .../v1/CloudResourceProperties.java | 351 +- .../v1/CloudResourcePropertiesOrBuilder.java | 27 +- .../connection/v1/CloudSpannerProperties.java | 492 +- .../v1/CloudSpannerPropertiesOrBuilder.java | 42 +- .../connection/v1/CloudSqlCredential.java | 400 +- .../v1/CloudSqlCredentialOrBuilder.java | 36 +- .../connection/v1/CloudSqlProperties.java | 767 +- .../v1/CloudSqlPropertiesOrBuilder.java | 71 +- .../bigquery/connection/v1/Connection.java | 1451 ++- .../connection/v1/ConnectionName.java | 0 .../connection/v1/ConnectionOrBuilder.java | 123 +- .../connection/v1/ConnectionOuterClass.java | 402 + .../v1/CreateConnectionRequest.java | 594 +- .../v1/CreateConnectionRequestOrBuilder.java | 64 +- .../v1/DeleteConnectionRequest.java | 379 +- .../v1/DeleteConnectionRequestOrBuilder.java | 31 + .../connection/v1/GetConnectionRequest.java | 366 +- .../v1/GetConnectionRequestOrBuilder.java | 31 + .../connection/v1/ListConnectionsRequest.java | 481 +- .../v1/ListConnectionsRequestOrBuilder.java | 47 +- .../v1/ListConnectionsResponse.java | 497 +- .../v1/ListConnectionsResponseOrBuilder.java | 45 +- .../bigquery/connection/v1/LocationName.java | 0 .../connection/v1/MetastoreServiceConfig.java | 594 ++ .../v1/MetastoreServiceConfigOrBuilder.java | 33 + .../v1/SparkHistoryServerConfig.java | 601 ++ .../v1/SparkHistoryServerConfigOrBuilder.java | 35 + .../connection/v1/SparkProperties.java | 1096 +++ .../v1/SparkPropertiesOrBuilder.java | 99 + .../v1/UpdateConnectionRequest.java | 647 +- .../v1/UpdateConnectionRequestOrBuilder.java | 72 +- .../bigquery/connection/v1/connection.proto | 67 + .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateConnection.java | 0 .../SyncCreateConnection.java | 0 ...onnectionLocationnameConnectionString.java | 0 ...reateConnectionStringConnectionString.java | 0 .../AsyncDeleteConnection.java | 0 .../SyncDeleteConnection.java | 0 .../SyncDeleteConnectionConnectionname.java | 0 .../SyncDeleteConnectionString.java | 0 .../getconnection/AsyncGetConnection.java | 0 .../getconnection/SyncGetConnection.java | 0 .../SyncGetConnectionConnectionname.java | 0 .../SyncGetConnectionString.java | 0 .../getiampolicy/AsyncGetIamPolicy.java | 0 .../getiampolicy/SyncGetIamPolicy.java | 0 ...IamPolicyResourcenameGetpolicyoptions.java | 0 ...yncGetIamPolicyStringGetpolicyoptions.java | 0 .../listconnections/AsyncListConnections.java | 0 .../AsyncListConnectionsPaged.java | 0 .../listconnections/SyncListConnections.java | 0 .../SyncListConnectionsLocationname.java | 0 .../SyncListConnectionsString.java | 0 .../setiampolicy/AsyncSetIamPolicy.java | 0 .../setiampolicy/SyncSetIamPolicy.java | 0 .../SyncSetIamPolicyResourcenamePolicy.java | 0 .../SyncSetIamPolicyStringPolicy.java | 0 .../AsyncTestIamPermissions.java | 0 .../SyncTestIamPermissions.java | 0 ...tIamPermissionsResourcenameListstring.java | 0 ...yncTestIamPermissionsStringListstring.java | 0 .../AsyncUpdateConnection.java | 0 .../SyncUpdateConnection.java | 0 ...tionConnectionnameConnectionFieldmask.java | 0 ...teConnectionStringConnectionFieldmask.java | 0 .../SyncCreateConnection.java | 0 .../SyncCreateConnection.java | 0 .../v1beta1/ConnectionServiceClient.java | 0 .../v1beta1/ConnectionServiceSettings.java | 1 + .../connection/v1beta1/gapic_metadata.json | 0 .../connection/v1beta1/package-info.java | 0 .../v1beta1/stub/ConnectionServiceStub.java | 0 .../stub/ConnectionServiceStubSettings.java | 0 .../GrpcConnectionServiceCallableFactory.java | 0 .../stub/GrpcConnectionServiceStub.java | 1 + ...pJsonConnectionServiceCallableFactory.java | 0 .../stub/HttpJsonConnectionServiceStub.java | 0 .../ConnectionServiceClientHttpJsonTest.java | 0 .../v1beta1/ConnectionServiceClientTest.java | 0 .../v1beta1/MockConnectionService.java | 0 .../v1beta1/MockConnectionServiceImpl.java | 0 .../v1beta1/ConnectionServiceGrpc.java | 1031 +++ .../connection/v1beta1/ConnectionName.java | 0 .../connection/v1beta1/ConnectionProto.java | 8035 ++++++----------- .../connection/v1beta1/LocationName.java | 0 .../connection/v1beta1/connection.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateConnection.java | 0 .../SyncCreateConnection.java | 0 ...onnameConnectionprotoconnectionString.java | 0 ...StringConnectionprotoconnectionString.java | 0 .../AsyncDeleteConnection.java | 0 .../SyncDeleteConnection.java | 0 .../SyncDeleteConnectionConnectionname.java | 0 .../SyncDeleteConnectionString.java | 0 .../getconnection/AsyncGetConnection.java | 0 .../getconnection/SyncGetConnection.java | 0 .../SyncGetConnectionConnectionname.java | 0 .../SyncGetConnectionString.java | 0 .../getiampolicy/AsyncGetIamPolicy.java | 0 .../getiampolicy/SyncGetIamPolicy.java | 0 ...IamPolicyResourcenameGetpolicyoptions.java | 0 ...yncGetIamPolicyStringGetpolicyoptions.java | 0 .../listconnections/AsyncListConnections.java | 0 .../listconnections/SyncListConnections.java | 0 ...istConnectionsLocationnameUint32Value.java | 0 .../SyncListConnectionsStringUint32Value.java | 0 .../setiampolicy/AsyncSetIamPolicy.java | 0 .../setiampolicy/SyncSetIamPolicy.java | 0 .../SyncSetIamPolicyResourcenamePolicy.java | 0 .../SyncSetIamPolicyStringPolicy.java | 0 .../AsyncTestIamPermissions.java | 0 .../SyncTestIamPermissions.java | 0 ...tIamPermissionsResourcenameListstring.java | 0 ...yncTestIamPermissionsStringListstring.java | 0 .../AsyncUpdateConnection.java | 0 .../SyncUpdateConnection.java | 0 ...ameConnectionprotoconnectionFieldmask.java | 0 ...ingConnectionprotoconnectionFieldmask.java | 0 .../AsyncUpdateConnectionCredential.java | 0 .../SyncUpdateConnectionCredential.java | 0 ...ngConnectionprotoconnectioncredential.java | 0 .../SyncCreateConnection.java | 0 .../SyncCreateConnection.java | 0 157 files changed, 11533 insertions(+), 14035 deletions(-) delete mode 100644 java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java delete mode 100644 java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java delete mode 100644 java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java delete mode 100644 java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequestOrBuilder.java delete mode 100644 java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequestOrBuilder.java rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java (99%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/gapic_metadata.json (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/package-info.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStub.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceCallableFactory.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java (99%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceCallableFactory.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceStub.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientHttpJsonTest.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientTest.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionService.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionServiceImpl.java (100%) create mode 100644 owl-bot-staging/java-bigqueryconnection/v1/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java (69%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.java (61%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRole.java (71%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRoleOrBuilder.java (70%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java (64%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java (60%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzureProperties.java (73%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzurePropertiesOrBuilder.java (75%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourceProperties.java (69%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourcePropertiesOrBuilder.java (71%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.java (73%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java (78%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredential.java (67%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredentialOrBuilder.java (54%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.java (67%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java (68%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java (67%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionName.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java (83%) create mode 100644 owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequest.java (62%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequestOrBuilder.java (53%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequest.java (61%) create mode 100644 owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequestOrBuilder.java rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequest.java (62%) create mode 100644 owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequestOrBuilder.java rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequest.java (65%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequestOrBuilder.java (52%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponse.java (70%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponseOrBuilder.java (67%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/LocationName.java (100%) create mode 100644 owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/MetastoreServiceConfig.java create mode 100644 owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/MetastoreServiceConfigOrBuilder.java create mode 100644 owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkHistoryServerConfig.java create mode 100644 owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkHistoryServerConfigOrBuilder.java create mode 100644 owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkProperties.java create mode 100644 owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkPropertiesOrBuilder.java rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequest.java (62%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequestOrBuilder.java (56%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/proto-google-cloud-bigqueryconnection-v1/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto (86%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetEndpoint.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/AsyncCreateConnection.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnection.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnectionLocationnameConnectionString.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnectionStringConnectionString.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/AsyncDeleteConnection.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnection.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnectionConnectionname.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnectionString.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/AsyncGetConnection.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnection.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnectionConnectionname.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnectionString.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/AsyncGetIamPolicy.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicy.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicyResourcenameGetpolicyoptions.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicyStringGetpolicyoptions.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/AsyncListConnections.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/AsyncListConnectionsPaged.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnections.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnectionsLocationname.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnectionsString.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/AsyncSetIamPolicy.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicy.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicyStringPolicy.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/AsyncTestIamPermissions.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissions.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissionsStringListstring.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/AsyncUpdateConnection.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnection.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnectionConnectionnameConnectionFieldmask.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnectionStringConnectionFieldmask.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservicesettings/createconnection/SyncCreateConnection.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/stub/connectionservicestubsettings/createconnection/SyncCreateConnection.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java (99%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/gapic_metadata.json (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/package-info.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStub.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceCallableFactory.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java (99%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceCallableFactory.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceStub.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientHttpJsonTest.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientTest.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionService.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionServiceImpl.java (100%) create mode 100644 owl-bot-staging/java-bigqueryconnection/v1beta1/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionName.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java (58%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/LocationName.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/proto-google-cloud-bigqueryconnection-v1beta1/src/main/proto/google/cloud/bigquery/connection/v1beta1/connection.proto (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetEndpoint.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/AsyncCreateConnection.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnection.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnectionLocationnameConnectionprotoconnectionString.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnectionStringConnectionprotoconnectionString.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/AsyncDeleteConnection.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnection.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnectionConnectionname.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnectionString.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/AsyncGetConnection.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnection.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnectionConnectionname.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnectionString.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/AsyncGetIamPolicy.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicy.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicyResourcenameGetpolicyoptions.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicyStringGetpolicyoptions.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/AsyncListConnections.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnections.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnectionsLocationnameUint32Value.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnectionsStringUint32Value.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/AsyncSetIamPolicy.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicy.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicyStringPolicy.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/AsyncTestIamPermissions.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissions.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissionsStringListstring.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/AsyncUpdateConnection.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnection.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnectionConnectionnameConnectionprotoconnectionFieldmask.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnectionStringConnectionprotoconnectionFieldmask.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/AsyncUpdateConnectionCredential.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/SyncUpdateConnectionCredential.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/SyncUpdateConnectionCredentialStringConnectionprotoconnectioncredential.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservicesettings/createconnection/SyncCreateConnection.java (100%) rename {java-bigqueryconnection => owl-bot-staging/java-bigqueryconnection/v1beta1}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/stub/connectionservicestubsettings/createconnection/SyncCreateConnection.java (100%) diff --git a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java deleted file mode 100644 index 3c517226a410..000000000000 --- a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java +++ /dev/null @@ -1,1216 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.bigquery.connection.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Manages external data source connections and credentials.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/connection/v1/connection.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ConnectionServiceGrpc { - - private ConnectionServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.bigquery.connection.v1.ConnectionService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection> - getCreateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateConnection", - requestType = com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.class, - responseType = com.google.cloud.bigquery.connection.v1.Connection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection> - getCreateConnectionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection> - getCreateConnectionMethod; - if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { - ConnectionServiceGrpc.getCreateConnectionMethod = - getCreateConnectionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.Connection - .getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("CreateConnection")) - .build(); - } - } - } - return getCreateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.GetConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection> - getGetConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetConnection", - requestType = com.google.cloud.bigquery.connection.v1.GetConnectionRequest.class, - responseType = com.google.cloud.bigquery.connection.v1.Connection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.GetConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection> - getGetConnectionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.GetConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection> - getGetConnectionMethod; - if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { - ConnectionServiceGrpc.getGetConnectionMethod = - getGetConnectionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.GetConnectionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.Connection - .getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("GetConnection")) - .build(); - } - } - } - return getGetConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest, - com.google.cloud.bigquery.connection.v1.ListConnectionsResponse> - getListConnectionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListConnections", - requestType = com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.class, - responseType = com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest, - com.google.cloud.bigquery.connection.v1.ListConnectionsResponse> - getListConnectionsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest, - com.google.cloud.bigquery.connection.v1.ListConnectionsResponse> - getListConnectionsMethod; - if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { - ConnectionServiceGrpc.getListConnectionsMethod = - getListConnectionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnections")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.ListConnectionsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("ListConnections")) - .build(); - } - } - } - return getListConnectionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection> - getUpdateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateConnection", - requestType = com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.class, - responseType = com.google.cloud.bigquery.connection.v1.Connection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection> - getUpdateConnectionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection> - getUpdateConnectionMethod; - if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { - ConnectionServiceGrpc.getUpdateConnectionMethod = - getUpdateConnectionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.Connection - .getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("UpdateConnection")) - .build(); - } - } - } - return getUpdateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest, - com.google.protobuf.Empty> - getDeleteConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteConnection", - requestType = com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest, - com.google.protobuf.Empty> - getDeleteConnectionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest, - com.google.protobuf.Empty> - getDeleteConnectionMethod; - if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { - ConnectionServiceGrpc.getDeleteConnectionMethod = - getDeleteConnectionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("DeleteConnection")) - .build(); - } - } - } - return getDeleteConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", - requestType = com.google.iam.v1.GetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod() { - io.grpc.MethodDescriptor - getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { - ConnectionServiceGrpc.getGetIamPolicyMethod = - getGetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", - requestType = com.google.iam.v1.SetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod() { - io.grpc.MethodDescriptor - getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { - ConnectionServiceGrpc.getSetIamPolicyMethod = - getSetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", - requestType = com.google.iam.v1.TestIamPermissionsRequest.class, - responseType = com.google.iam.v1.TestIamPermissionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) - == null) { - ConnectionServiceGrpc.getTestIamPermissionsMethod = - getTestIamPermissionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ConnectionServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceStub(channel, callOptions); - } - }; - return ConnectionServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ConnectionServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceBlockingStub(channel, callOptions); - } - }; - return ConnectionServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ConnectionServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceFutureStub(channel, callOptions); - } - }; - return ConnectionServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Manages external data source connections and credentials.
-   * 
- */ - public abstract static class ConnectionServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a new connection.
-     * 
- */ - public void createConnection( - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateConnectionMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns specified connection.
-     * 
- */ - public void getConnection( - com.google.cloud.bigquery.connection.v1.GetConnectionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetConnectionMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a list of connections in the given project.
-     * 
- */ - public void listConnections( - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListConnectionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the specified connection. For security reasons, also resets
-     * credential if connection properties are in the update field mask.
-     * 
- */ - public void updateConnection( - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateConnectionMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes connection and associated credential.
-     * 
- */ - public void deleteConnection( - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteConnectionMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
-     * 
- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a `NOT_FOUND` error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTestIamPermissionsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection>( - this, METHODID_CREATE_CONNECTION))) - .addMethod( - getGetConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1.GetConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection>( - this, METHODID_GET_CONNECTION))) - .addMethod( - getListConnectionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest, - com.google.cloud.bigquery.connection.v1.ListConnectionsResponse>( - this, METHODID_LIST_CONNECTIONS))) - .addMethod( - getUpdateConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection>( - this, METHODID_UPDATE_CONNECTION))) - .addMethod( - getDeleteConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_CONNECTION))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_GET_IAM_POLICY))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_SET_IAM_POLICY))) - .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - this, METHODID_TEST_IAM_PERMISSIONS))) - .build(); - } - } - - /** - * - * - *
-   * Manages external data source connections and credentials.
-   * 
- */ - public static final class ConnectionServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private ConnectionServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConnectionServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new connection.
-     * 
- */ - public void createConnection( - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateConnectionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns specified connection.
-     * 
- */ - public void getConnection( - com.google.cloud.bigquery.connection.v1.GetConnectionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConnectionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a list of connections in the given project.
-     * 
- */ - public void listConnections( - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListConnectionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates the specified connection. For security reasons, also resets
-     * credential if connection properties are in the update field mask.
-     * 
- */ - public void updateConnection( - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateConnectionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes connection and associated credential.
-     * 
- */ - public void deleteConnection( - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteConnectionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
-     * 
- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a `NOT_FOUND` error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Manages external data source connections and credentials.
-   * 
- */ - public static final class ConnectionServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ConnectionServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConnectionServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new connection.
-     * 
- */ - public com.google.cloud.bigquery.connection.v1.Connection createConnection( - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateConnectionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns specified connection.
-     * 
- */ - public com.google.cloud.bigquery.connection.v1.Connection getConnection( - com.google.cloud.bigquery.connection.v1.GetConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConnectionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a list of connections in the given project.
-     * 
- */ - public com.google.cloud.bigquery.connection.v1.ListConnectionsResponse listConnections( - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListConnectionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates the specified connection. For security reasons, also resets
-     * credential if connection properties are in the update field mask.
-     * 
- */ - public com.google.cloud.bigquery.connection.v1.Connection updateConnection( - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateConnectionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes connection and associated credential.
-     * 
- */ - public com.google.protobuf.Empty deleteConnection( - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteConnectionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
-     * 
- */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a `NOT_FOUND` error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Manages external data source connections and credentials.
-   * 
- */ - public static final class ConnectionServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ConnectionServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConnectionServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new connection.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.connection.v1.Connection> - createConnection(com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateConnectionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns specified connection.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.connection.v1.Connection> - getConnection(com.google.cloud.bigquery.connection.v1.GetConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetConnectionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns a list of connections in the given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.connection.v1.ListConnectionsResponse> - listConnections(com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListConnectionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates the specified connection. For security reasons, also resets
-     * credential if connection properties are in the update field mask.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.connection.v1.Connection> - updateConnection(com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateConnectionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes connection and associated credential.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteConnection(com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteConnectionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a `NOT_FOUND` error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v1.TestIamPermissionsResponse> - testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_CONNECTION = 0; - private static final int METHODID_GET_CONNECTION = 1; - private static final int METHODID_LIST_CONNECTIONS = 2; - private static final int METHODID_UPDATE_CONNECTION = 3; - private static final int METHODID_DELETE_CONNECTION = 4; - private static final int METHODID_GET_IAM_POLICY = 5; - private static final int METHODID_SET_IAM_POLICY = 6; - private static final int METHODID_TEST_IAM_PERMISSIONS = 7; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final ConnectionServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ConnectionServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_CONNECTION: - serviceImpl.createConnection( - (com.google.cloud.bigquery.connection.v1.CreateConnectionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_CONNECTION: - serviceImpl.getConnection( - (com.google.cloud.bigquery.connection.v1.GetConnectionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_CONNECTIONS: - serviceImpl.listConnections( - (com.google.cloud.bigquery.connection.v1.ListConnectionsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.connection.v1.ListConnectionsResponse>) - responseObserver); - break; - case METHODID_UPDATE_CONNECTION: - serviceImpl.updateConnection( - (com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_CONNECTION: - serviceImpl.deleteConnection( - (com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy( - (com.google.iam.v1.GetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy( - (com.google.iam.v1.SetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions( - (com.google.iam.v1.TestIamPermissionsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class ConnectionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ConnectionServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ConnectionService"); - } - } - - private static final class ConnectionServiceFileDescriptorSupplier - extends ConnectionServiceBaseDescriptorSupplier { - ConnectionServiceFileDescriptorSupplier() {} - } - - private static final class ConnectionServiceMethodDescriptorSupplier - extends ConnectionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ConnectionServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (ConnectionServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ConnectionServiceFileDescriptorSupplier()) - .addMethod(getCreateConnectionMethod()) - .addMethod(getGetConnectionMethod()) - .addMethod(getListConnectionsMethod()) - .addMethod(getUpdateConnectionMethod()) - .addMethod(getDeleteConnectionMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java deleted file mode 100644 index 29002cfd6e78..000000000000 --- a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java +++ /dev/null @@ -1,1417 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.bigquery.connection.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Manages external data source connections and credentials.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/connection/v1beta1/connection.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ConnectionServiceGrpc { - - private ConnectionServiceGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.bigquery.connection.v1beta1.ConnectionService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - getCreateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateConnection", - requestType = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest - .class, - responseType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - getCreateConnectionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - getCreateConnectionMethod; - if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { - ConnectionServiceGrpc.getCreateConnectionMethod = - getCreateConnectionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .CreateConnectionRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .Connection.getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("CreateConnection")) - .build(); - } - } - } - return getCreateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - getGetConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetConnection", - requestType = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.class, - responseType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - getGetConnectionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - getGetConnectionMethod; - if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { - ConnectionServiceGrpc.getGetConnectionMethod = - getGetConnectionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .GetConnectionRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .Connection.getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("GetConnection")) - .build(); - } - } - } - return getGetConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse> - getListConnectionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListConnections", - requestType = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.class, - responseType = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse - .class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse> - getListConnectionsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse> - getListConnectionsMethod; - if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { - ConnectionServiceGrpc.getListConnectionsMethod = - getListConnectionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnections")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("ListConnections")) - .build(); - } - } - } - return getListConnectionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - getUpdateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateConnection", - requestType = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest - .class, - responseType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - getUpdateConnectionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest, - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - getUpdateConnectionMethod; - if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { - ConnectionServiceGrpc.getUpdateConnectionMethod = - getUpdateConnectionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .Connection.getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("UpdateConnection")) - .build(); - } - } - } - return getUpdateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest, - com.google.protobuf.Empty> - getUpdateConnectionCredentialMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateConnectionCredential", - requestType = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest, - com.google.protobuf.Empty> - getUpdateConnectionCredentialMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest, - com.google.protobuf.Empty> - getUpdateConnectionCredentialMethod; - if ((getUpdateConnectionCredentialMethod = - ConnectionServiceGrpc.getUpdateConnectionCredentialMethod) - == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getUpdateConnectionCredentialMethod = - ConnectionServiceGrpc.getUpdateConnectionCredentialMethod) - == null) { - ConnectionServiceGrpc.getUpdateConnectionCredentialMethod = - getUpdateConnectionCredentialMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateConnectionCredential")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier( - "UpdateConnectionCredential")) - .build(); - } - } - } - return getUpdateConnectionCredentialMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest, - com.google.protobuf.Empty> - getDeleteConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteConnection", - requestType = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest - .class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest, - com.google.protobuf.Empty> - getDeleteConnectionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest, - com.google.protobuf.Empty> - getDeleteConnectionMethod; - if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { - ConnectionServiceGrpc.getDeleteConnectionMethod = - getDeleteConnectionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .DeleteConnectionRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("DeleteConnection")) - .build(); - } - } - } - return getDeleteConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", - requestType = com.google.iam.v1.GetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod() { - io.grpc.MethodDescriptor - getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { - ConnectionServiceGrpc.getGetIamPolicyMethod = - getGetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", - requestType = com.google.iam.v1.SetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod() { - io.grpc.MethodDescriptor - getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { - ConnectionServiceGrpc.getSetIamPolicyMethod = - getSetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", - requestType = com.google.iam.v1.TestIamPermissionsRequest.class, - responseType = com.google.iam.v1.TestIamPermissionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) - == null) { - ConnectionServiceGrpc.getTestIamPermissionsMethod = - getTestIamPermissionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ConnectionServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceStub(channel, callOptions); - } - }; - return ConnectionServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ConnectionServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceBlockingStub(channel, callOptions); - } - }; - return ConnectionServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ConnectionServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceFutureStub(channel, callOptions); - } - }; - return ConnectionServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Manages external data source connections and credentials.
-   * 
- */ - public abstract static class ConnectionServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a new connection.
-     * 
- */ - public void createConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateConnectionMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns specified connection.
-     * 
- */ - public void getConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetConnectionMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a list of connections in the given project.
-     * 
- */ - public void listConnections( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ListConnectionsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListConnectionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the specified connection. For security reasons, also resets
-     * credential if connection properties are in the update field mask.
-     * 
- */ - public void updateConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateConnectionMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the credential for the specified connection.
-     * 
- */ - public void updateConnectionCredential( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest - request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateConnectionCredentialMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes connection and associated credential.
-     * 
- */ - public void deleteConnection( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest - request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteConnectionMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * Can return `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.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 `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.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 `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.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 `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_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/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java deleted file mode 100644 index 5d2825cd09f5..000000000000 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java +++ /dev/null @@ -1,397 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/connection/v1/connection.proto - -package com.google.cloud.bigquery.connection.v1; - -public final class ConnectionOuterClass { - private ConnectionOuterClass() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_Connection_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_AwsProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_AzureProperties_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_AzureProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/bigquery/connection/v1/co" - + "nnection.proto\022#google.cloud.bigquery.co" - + "nnection.v1\032\034google/api/annotations.prot" - + "o\032\027google/api/client.proto\032\037google/api/f" - + "ield_behavior.proto\032\031google/api/resource" - + ".proto\032\036google/iam/v1/iam_policy.proto\032\032" - + "google/iam/v1/policy.proto\032\033google/proto" - + "buf/empty.proto\032 google/protobuf/field_m" - + "ask.proto\"\272\001\n\027CreateConnectionRequest\0229\n" - + "\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googlea" - + "pis.com/Location\022\032\n\rconnection_id\030\002 \001(\tB" - + "\003\340A\001\022H\n\nconnection\030\003 \001(\0132/.google.cloud." - + "bigquery.connection.v1.ConnectionB\003\340A\002\"Z" - + "\n\024GetConnectionRequest\022B\n\004name\030\001 \001(\tB4\340A" - + "\002\372A.\n,bigqueryconnection.googleapis.com/" - + "Connection\"\177\n\026ListConnectionsRequest\0229\n\006" - + "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" - + "is.com/Location\022\026\n\tpage_size\030\004 \001(\005B\003\340A\002\022" - + "\022\n\npage_token\030\003 \001(\t\"x\n\027ListConnectionsRe" - + "sponse\022\027\n\017next_page_token\030\001 \001(\t\022D\n\013conne" - + "ctions\030\002 \003(\0132/.google.cloud.bigquery.con" - + "nection.v1.Connection\"\335\001\n\027UpdateConnecti" - + "onRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,bigquer" - + "yconnection.googleapis.com/Connection\022H\n" - + "\nconnection\030\002 \001(\0132/.google.cloud.bigquer" - + "y.connection.v1.ConnectionB\003\340A\002\0224\n\013updat" - + "e_mask\030\003 \001(\0132\032.google.protobuf.FieldMask" - + "B\003\340A\002\"]\n\027DeleteConnectionRequest\022B\n\004name" - + "\030\001 \001(\tB4\340A\002\372A.\n,bigqueryconnection.googl" - + "eapis.com/Connection\"\251\005\n\nConnection\022\014\n\004n" - + "ame\030\001 \001(\t\022\025\n\rfriendly_name\030\002 \001(\t\022\023\n\013desc" - + "ription\030\003 \001(\t\022L\n\tcloud_sql\030\004 \001(\01327.googl" - + "e.cloud.bigquery.connection.v1.CloudSqlP" - + "ropertiesH\000\022A\n\003aws\030\010 \001(\01322.google.cloud." - + "bigquery.connection.v1.AwsPropertiesH\000\022E" - + "\n\005azure\030\013 \001(\01324.google.cloud.bigquery.co" - + "nnection.v1.AzurePropertiesH\000\022T\n\rcloud_s" - + "panner\030\025 \001(\0132;.google.cloud.bigquery.con" - + "nection.v1.CloudSpannerPropertiesH\000\022V\n\016c" - + "loud_resource\030\026 \001(\0132<.google.cloud.bigqu" - + "ery.connection.v1.CloudResourcePropertie" - + "sH\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_credenti" - + "al\030\007 \001(\010B\003\340A\003:s\352Ap\n,bigqueryconnection.g" - + "oogleapis.com/Connection\022@projects/{proj" - + "ect}/locations/{location}/connections/{c" - + "onnection}B\014\n\nproperties\"\312\002\n\022CloudSqlPro" - + "perties\022\023\n\013instance_id\030\001 \001(\t\022\020\n\010database" - + "\030\002 \001(\t\022R\n\004type\030\003 \001(\0162D.google.cloud.bigq" - + "uery.connection.v1.CloudSqlProperties.Da" - + "tabaseType\022P\n\ncredential\030\004 \001(\01327.google." - + "cloud.bigquery.connection.v1.CloudSqlCre" - + "dentialB\003\340A\004\022\037\n\022service_account_id\030\005 \001(\t" - + "B\003\340A\003\"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\"\201\001\n\026CloudSpannerProperti" - + "es\022\020\n\010database\030\001 \001(\t\022\027\n\017use_parallelism\030" - + "\002 \001(\010\022 \n\030use_serverless_analytics\030\003 \001(\010\022" - + "\032\n\rdatabase_role\030\004 \001(\tB\003\340A\001\"\317\001\n\rAwsPrope" - + "rties\022Z\n\022cross_account_role\030\002 \001(\01328.goog" - + "le.cloud.bigquery.connection.v1.AwsCross" - + "AccountRoleB\002\030\001H\000\022I\n\013access_role\030\003 \001(\01322" - + ".google.cloud.bigquery.connection.v1.Aws" - + "AccessRoleH\000B\027\n\025authentication_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\rAwsAccessRole\022\023\n\013iam_ro" - + "le_id\030\001 \001(\t\022\020\n\010identity\030\002 \001(\t\"\315\001\n\017AzureP" - + "roperties\022\030\n\013application\030\001 \001(\tB\003\340A\003\022\026\n\tc" - + "lient_id\030\002 \001(\tB\003\340A\003\022\026\n\tobject_id\030\003 \001(\tB\003" - + "\340A\003\022\032\n\022customer_tenant_id\030\004 \001(\t\022\024\n\014redir" - + "ect_uri\030\005 \001(\t\022\'\n\037federated_application_c" - + "lient_id\030\006 \001(\t\022\025\n\010identity\030\007 \001(\tB\003\340A\003\":\n" - + "\027CloudResourceProperties\022\037\n\022service_acco" - + "unt_id\030\001 \001(\tB\003\340A\0032\314\r\n\021ConnectionService\022" - + "\350\001\n\020CreateConnection\022<.google.cloud.bigq" - + "uery.connection.v1.CreateConnectionReque" - + "st\032/.google.cloud.bigquery.connection.v1" - + ".Connection\"e\202\323\344\223\002=\"//v1/{parent=project" - + "s/*/locations/*}/connections:\nconnection" - + "\332A\037parent,connection,connection_id\022\273\001\n\rG" - + "etConnection\0229.google.cloud.bigquery.con" - + "nection.v1.GetConnectionRequest\032/.google" - + ".cloud.bigquery.connection.v1.Connection" - + "\">\202\323\344\223\0021\022//v1/{name=projects/*/locations" - + "/*/connections/*}\332A\004name\022\316\001\n\017ListConnect" - + "ions\022;.google.cloud.bigquery.connection." - + "v1.ListConnectionsRequest\032<.google.cloud" - + ".bigquery.connection.v1.ListConnectionsR" - + "esponse\"@\202\323\344\223\0021\022//v1/{parent=projects/*/" - + "locations/*}/connections\332A\006parent\022\344\001\n\020Up" - + "dateConnection\022<.google.cloud.bigquery.c" - + "onnection.v1.UpdateConnectionRequest\032/.g" - + "oogle.cloud.bigquery.connection.v1.Conne" - + "ction\"a\202\323\344\223\002=2//v1/{name=projects/*/loca" - + "tions/*/connections/*}:\nconnection\332A\033nam" - + "e,connection,update_mask\022\250\001\n\020DeleteConne" - + "ction\022<.google.cloud.bigquery.connection" - + ".v1.DeleteConnectionRequest\032\026.google.pro" - + "tobuf.Empty\">\202\323\344\223\0021*//v1/{name=projects/" - + "*/locations/*/connections/*}\332A\004name\022\251\001\n\014" - + "GetIamPolicy\022\".google.iam.v1.GetIamPolic" - + "yRequest\032\025.google.iam.v1.Policy\"^\202\323\344\223\002E\"" - + "@/v1/{resource=projects/*/locations/*/co" - + "nnections/*}:getIamPolicy:\001*\332A\020resource," - + "options\022\250\001\n\014SetIamPolicy\022\".google.iam.v1" - + ".SetIamPolicyRequest\032\025.google.iam.v1.Pol" - + "icy\"]\202\323\344\223\002E\"@/v1/{resource=projects/*/lo" - + "cations/*/connections/*}:setIamPolicy:\001*" - + "\332A\017resource,policy\022\323\001\n\022TestIamPermission" - + "s\022(.google.iam.v1.TestIamPermissionsRequ" - + "est\032).google.iam.v1.TestIamPermissionsRe" - + "sponse\"h\202\323\344\223\002K\"F/v1/{resource=projects/*" - + "/locations/*/connections/*}:testIamPermi" - + "ssions:\001*\332A\024resource,permissions\032~\312A!big" - + "queryconnection.googleapis.com\322AWhttps:/" - + "/www.googleapis.com/auth/bigquery,https:" - + "//www.googleapis.com/auth/cloud-platform" - + "B\300\001\n\'com.google.cloud.bigquery.connectio" - + "n.v1P\001ZGcloud.google.com/go/bigquery/con" - + "nection/apiv1/connectionpb;connectionpb\252" - + "\002#Google.Cloud.BigQuery.Connection.V1\312\002#" - + "Google\\Cloud\\BigQuery\\Connection\\V1b\006pro" - + "to3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor, - new java.lang.String[] { - "Parent", "ConnectionId", "Connection", - }); - internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor, - new java.lang.String[] { - "NextPageToken", "Connections", - }); - internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor, - new java.lang.String[] { - "Name", "Connection", "UpdateMask", - }); - internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_bigquery_connection_v1_Connection_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor, - new java.lang.String[] { - "Name", - "FriendlyName", - "Description", - "CloudSql", - "Aws", - "Azure", - "CloudSpanner", - "CloudResource", - "CreationTime", - "LastModifiedTime", - "HasCredential", - "Properties", - }); - internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor, - new java.lang.String[] { - "InstanceId", "Database", "Type", "Credential", "ServiceAccountId", - }); - 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", "UseServerlessAnalytics", "DatabaseRole", - }); - internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_bigquery_connection_v1_AwsProperties_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor, - new java.lang.String[] { - "CrossAccountRole", "AccessRole", "AuthenticationMethod", - }); - internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor, - new java.lang.String[] { - "IamRoleId", "IamUserId", "ExternalId", - }); - internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor, - new java.lang.String[] { - "IamRoleId", "Identity", - }); - internal_static_google_cloud_bigquery_connection_v1_AzureProperties_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_bigquery_connection_v1_AzureProperties_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_AzureProperties_descriptor, - new java.lang.String[] { - "Application", - "ClientId", - "ObjectId", - "CustomerTenantId", - "RedirectUri", - "FederatedApplicationClientId", - "Identity", - }); - internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor, - new java.lang.String[] { - "ServiceAccountId", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequestOrBuilder.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequestOrBuilder.java deleted file mode 100644 index 7dcb0a56fdc1..000000000000 --- a/java-bigqueryconnection/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/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequestOrBuilder.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequestOrBuilder.java deleted file mode 100644 index e2b275c5f37d..000000000000 --- a/java-bigqueryconnection/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(); -} diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java b/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java similarity index 100% rename from java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java rename to owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java b/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java similarity index 99% rename from java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java rename to owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java index 1e1044fa4127..912b5ef0f573 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java +++ b/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java @@ -28,6 +28,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; diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/gapic_metadata.json b/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/gapic_metadata.json similarity index 100% rename from java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/gapic_metadata.json rename to owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/gapic_metadata.json diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/package-info.java b/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/package-info.java similarity index 100% rename from java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/package-info.java rename to owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/package-info.java diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStub.java b/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStub.java similarity index 100% rename from java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStub.java rename to owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStub.java diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java b/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java similarity index 100% rename from java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java rename to owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceCallableFactory.java b/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceCallableFactory.java similarity index 100% rename from java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceCallableFactory.java rename to owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceCallableFactory.java diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java b/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java similarity index 99% rename from java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java rename to owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java index 31b7ac5d6c0e..08551b68237a 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java +++ b/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java @@ -42,6 +42,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceCallableFactory.java b/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceCallableFactory.java similarity index 100% rename from java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceCallableFactory.java rename to owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceCallableFactory.java diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceStub.java b/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceStub.java similarity index 100% rename from java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceStub.java rename to owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceStub.java diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientHttpJsonTest.java b/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientHttpJsonTest.java similarity index 100% rename from java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientHttpJsonTest.java rename to owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientHttpJsonTest.java diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientTest.java b/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientTest.java similarity index 100% rename from java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientTest.java rename to owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientTest.java diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionService.java b/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionService.java similarity index 100% rename from java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionService.java rename to owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionService.java diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionServiceImpl.java b/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionServiceImpl.java similarity index 100% rename from java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionServiceImpl.java rename to owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionServiceImpl.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java b/owl-bot-staging/java-bigqueryconnection/v1/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java new file mode 100644 index 000000000000..f9bfa8081d96 --- /dev/null +++ b/owl-bot-staging/java-bigqueryconnection/v1/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java @@ -0,0 +1,945 @@ +package com.google.cloud.bigquery.connection.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Manages external data source connections and credentials.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/bigquery/connection/v1/connection.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ConnectionServiceGrpc { + + private ConnectionServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.bigquery.connection.v1.ConnectionService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateConnection", + requestType = com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.class, + responseType = com.google.cloud.bigquery.connection.v1.Connection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateConnectionMethod() { + io.grpc.MethodDescriptor getCreateConnectionMethod; + if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { + ConnectionServiceGrpc.getCreateConnectionMethod = getCreateConnectionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("CreateConnection")) + .build(); + } + } + } + return getCreateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConnection", + requestType = com.google.cloud.bigquery.connection.v1.GetConnectionRequest.class, + responseType = com.google.cloud.bigquery.connection.v1.Connection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetConnectionMethod() { + io.grpc.MethodDescriptor getGetConnectionMethod; + if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { + ConnectionServiceGrpc.getGetConnectionMethod = getGetConnectionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.GetConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("GetConnection")) + .build(); + } + } + } + return getGetConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor getListConnectionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConnections", + requestType = com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.class, + responseType = com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListConnectionsMethod() { + io.grpc.MethodDescriptor getListConnectionsMethod; + if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { + ConnectionServiceGrpc.getListConnectionsMethod = getListConnectionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnections")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("ListConnections")) + .build(); + } + } + } + return getListConnectionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConnection", + requestType = com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.class, + responseType = com.google.cloud.bigquery.connection.v1.Connection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateConnectionMethod() { + io.grpc.MethodDescriptor getUpdateConnectionMethod; + if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { + ConnectionServiceGrpc.getUpdateConnectionMethod = getUpdateConnectionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("UpdateConnection")) + .build(); + } + } + } + return getUpdateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConnection", + requestType = com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteConnectionMethod() { + io.grpc.MethodDescriptor getDeleteConnectionMethod; + if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { + ConnectionServiceGrpc.getDeleteConnectionMethod = getDeleteConnectionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("DeleteConnection")) + .build(); + } + } + } + return getDeleteConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", + requestType = com.google.iam.v1.GetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetIamPolicyMethod() { + io.grpc.MethodDescriptor getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { + ConnectionServiceGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", + requestType = com.google.iam.v1.SetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetIamPolicyMethod() { + io.grpc.MethodDescriptor getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { + ConnectionServiceGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", + requestType = com.google.iam.v1.TestIamPermissionsRequest.class, + responseType = com.google.iam.v1.TestIamPermissionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor getTestIamPermissionsMethod; + if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) == null) { + ConnectionServiceGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static ConnectionServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceStub(channel, callOptions); + } + }; + return ConnectionServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ConnectionServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceBlockingStub(channel, callOptions); + } + }; + return ConnectionServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static ConnectionServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceFutureStub(channel, callOptions); + } + }; + return ConnectionServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Manages external data source connections and credentials.
+   * 
+ */ + public static abstract class ConnectionServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a new connection.
+     * 
+ */ + public void createConnection(com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateConnectionMethod(), responseObserver); + } + + /** + *
+     * Returns specified connection.
+     * 
+ */ + public void getConnection(com.google.cloud.bigquery.connection.v1.GetConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConnectionMethod(), responseObserver); + } + + /** + *
+     * Returns a list of connections in the given project.
+     * 
+ */ + public void listConnections(com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListConnectionsMethod(), responseObserver); + } + + /** + *
+     * Updates the specified connection. For security reasons, also resets
+     * credential if connection properties are in the update field mask.
+     * 
+ */ + public void updateConnection(com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConnectionMethod(), responseObserver); + } + + /** + *
+     * Deletes connection and associated credential.
+     * 
+ */ + public void deleteConnection(com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteConnectionMethod(), responseObserver); + } + + /** + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); + } + + /** + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
+     * 
+ */ + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); + } + + /** + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a `NOT_FOUND` error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection>( + this, METHODID_CREATE_CONNECTION))) + .addMethod( + getGetConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1.GetConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection>( + this, METHODID_GET_CONNECTION))) + .addMethod( + getListConnectionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest, + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse>( + this, METHODID_LIST_CONNECTIONS))) + .addMethod( + getUpdateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection>( + this, METHODID_UPDATE_CONNECTION))) + .addMethod( + getDeleteConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_CONNECTION))) + .addMethod( + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, + com.google.iam.v1.Policy>( + this, METHODID_GET_IAM_POLICY))) + .addMethod( + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, + com.google.iam.v1.Policy>( + this, METHODID_SET_IAM_POLICY))) + .addMethod( + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + this, METHODID_TEST_IAM_PERMISSIONS))) + .build(); + } + } + + /** + *
+   * Manages external data source connections and credentials.
+   * 
+ */ + public static final class ConnectionServiceStub extends io.grpc.stub.AbstractAsyncStub { + private ConnectionServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConnectionServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceStub(channel, callOptions); + } + + /** + *
+     * Creates a new connection.
+     * 
+ */ + public void createConnection(com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateConnectionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns specified connection.
+     * 
+ */ + public void getConnection(com.google.cloud.bigquery.connection.v1.GetConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConnectionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns a list of connections in the given project.
+     * 
+ */ + public void listConnections(com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListConnectionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates the specified connection. For security reasons, also resets
+     * credential if connection properties are in the update field mask.
+     * 
+ */ + public void updateConnection(com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConnectionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes connection and associated credential.
+     * 
+ */ + public void deleteConnection(com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteConnectionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
+     * 
+ */ + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a `NOT_FOUND` error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Manages external data source connections and credentials.
+   * 
+ */ + public static final class ConnectionServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private ConnectionServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConnectionServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a new connection.
+     * 
+ */ + public com.google.cloud.bigquery.connection.v1.Connection createConnection(com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateConnectionMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns specified connection.
+     * 
+ */ + public com.google.cloud.bigquery.connection.v1.Connection getConnection(com.google.cloud.bigquery.connection.v1.GetConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConnectionMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns a list of connections in the given project.
+     * 
+ */ + public com.google.cloud.bigquery.connection.v1.ListConnectionsResponse listConnections(com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListConnectionsMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates the specified connection. For security reasons, also resets
+     * credential if connection properties are in the update field mask.
+     * 
+ */ + public com.google.cloud.bigquery.connection.v1.Connection updateConnection(com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConnectionMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes connection and associated credential.
+     * 
+ */ + public com.google.protobuf.Empty deleteConnection(com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteConnectionMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a `NOT_FOUND` error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Manages external data source connections and credentials.
+   * 
+ */ + public static final class ConnectionServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private ConnectionServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConnectionServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a new connection.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createConnection( + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateConnectionMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns specified connection.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getConnection( + com.google.cloud.bigquery.connection.v1.GetConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConnectionMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns a list of connections in the given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listConnections( + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListConnectionsMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates the specified connection. For security reasons, also resets
+     * credential if connection properties are in the update field mask.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateConnection( + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateConnectionMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes connection and associated credential.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteConnection( + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteConnectionMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a `NOT_FOUND` error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_CONNECTION = 0; + private static final int METHODID_GET_CONNECTION = 1; + private static final int METHODID_LIST_CONNECTIONS = 2; + private static final int METHODID_UPDATE_CONNECTION = 3; + private static final int METHODID_DELETE_CONNECTION = 4; + private static final int METHODID_GET_IAM_POLICY = 5; + private static final int METHODID_SET_IAM_POLICY = 6; + private static final int METHODID_TEST_IAM_PERMISSIONS = 7; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final ConnectionServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ConnectionServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_CONNECTION: + serviceImpl.createConnection((com.google.cloud.bigquery.connection.v1.CreateConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CONNECTION: + serviceImpl.getConnection((com.google.cloud.bigquery.connection.v1.GetConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CONNECTIONS: + serviceImpl.listConnections((com.google.cloud.bigquery.connection.v1.ListConnectionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CONNECTION: + serviceImpl.updateConnection((com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CONNECTION: + serviceImpl.deleteConnection((com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TEST_IAM_PERMISSIONS: + serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class ConnectionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ConnectionServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ConnectionService"); + } + } + + private static final class ConnectionServiceFileDescriptorSupplier + extends ConnectionServiceBaseDescriptorSupplier { + ConnectionServiceFileDescriptorSupplier() {} + } + + private static final class ConnectionServiceMethodDescriptorSupplier + extends ConnectionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ConnectionServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ConnectionServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ConnectionServiceFileDescriptorSupplier()) + .addMethod(getCreateConnectionMethod()) + .addMethod(getGetConnectionMethod()) + .addMethod(getListConnectionsMethod()) + .addMethod(getUpdateConnectionMethod()) + .addMethod(getDeleteConnectionMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java similarity index 69% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java index a043a07ef9fa..cfc7b329249c 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java +++ b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** - * - * *
  * Authentication method for Amazon Web Services (AWS) that uses Google owned
  * Google service account to assume into customer's AWS IAM Role.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.bigquery.connection.v1.AwsAccessRole}
  */
-public final class AwsAccessRole extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AwsAccessRole extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.AwsAccessRole)
     AwsAccessRoleOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AwsAccessRole.newBuilder() to construct.
   private AwsAccessRole(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AwsAccessRole() {
     iamRoleId_ = "";
     identity_ = "";
@@ -45,44 +27,39 @@ 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;
   }
-
-  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;
-
   @SuppressWarnings("serial")
   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 @@ -91,30 +68,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 { @@ -123,19 +100,15 @@ public com.google.protobuf.ByteString getIamRoleIdBytes() { } public static final int IDENTITY_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -144,30 +117,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 { @@ -176,7 +149,6 @@ public com.google.protobuf.ByteString getIdentityBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,7 +160,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iamRoleId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, iamRoleId_); } @@ -218,16 +191,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.connection.v1.AwsAccessRole)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.AwsAccessRole other = - (com.google.cloud.bigquery.connection.v1.AwsAccessRole) obj; + com.google.cloud.bigquery.connection.v1.AwsAccessRole other = (com.google.cloud.bigquery.connection.v1.AwsAccessRole) obj; - if (!getIamRoleId().equals(other.getIamRoleId())) return false; - if (!getIdentity().equals(other.getIdentity())) return false; + if (!getIamRoleId() + .equals(other.getIamRoleId())) return false; + if (!getIdentity() + .equals(other.getIdentity())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -249,104 +223,96 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.AwsAccessRole parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.AwsAccessRole parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1.AwsAccessRole parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.AwsAccessRole parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1.AwsAccessRole parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.AwsAccessRole parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1.AwsAccessRole parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.AwsAccessRole parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.AwsAccessRole parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1.AwsAccessRole parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.AwsAccessRole parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.AwsAccessRole parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1.AwsAccessRole parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.AwsAccessRole parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.connection.v1.AwsAccessRole prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.connection.v1.AwsAccessRole prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Authentication method for Amazon Web Services (AWS) that uses Google owned
    * Google service account to assume into customer's AWS IAM Role.
@@ -354,32 +320,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.bigquery.connection.v1.AwsAccessRole}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.connection.v1.AwsAccessRole)
       com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
-          .internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
-          .internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_fieldAccessorTable
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.connection.v1.AwsAccessRole.class,
-              com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder.class);
+              com.google.cloud.bigquery.connection.v1.AwsAccessRole.class, com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.connection.v1.AwsAccessRole.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -390,9 +357,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
@@ -411,11 +378,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.bigquery.connection.v1.AwsAccessRole result = new com.google.cloud.bigquery.connection.v1.AwsAccessRole(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -434,39 +398,38 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.AwsAccessRole
     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;
@@ -474,8 +437,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.AwsAccessRole other) {
-      if (other == com.google.cloud.bigquery.connection.v1.AwsAccessRole.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.bigquery.connection.v1.AwsAccessRole.getDefaultInstance()) return this;
       if (!other.getIamRoleId().isEmpty()) {
         iamRoleId_ = other.iamRoleId_;
         bitField0_ |= 0x00000001;
@@ -512,25 +474,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                iamRoleId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                identity_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              iamRoleId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              identity_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -540,26 +499,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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; @@ -568,22 +524,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 { @@ -591,37 +546,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIamRoleId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } iamRoleId_ = value; bitField0_ |= 0x00000001; 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() { @@ -631,22 +579,18 @@ public Builder clearIamRoleId() { 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(); - } + public Builder setIamRoleIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); iamRoleId_ = value; bitField0_ |= 0x00000001; @@ -656,21 +600,19 @@ public Builder setIamRoleIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object identity_ = ""; /** - * - * *
      * A unique Google-owned and Google-generated identity for the Connection.
      * This identity will be used to access the user's AWS IAM Role.
      * 
* * string identity = 2; - * * @return The identity. */ public java.lang.String getIdentity() { java.lang.Object ref = identity_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); identity_ = s; return s; @@ -679,22 +621,21 @@ public java.lang.String getIdentity() { } } /** - * - * *
      * A unique Google-owned and Google-generated identity for the Connection.
      * This identity will be used to access the user's AWS IAM Role.
      * 
* * string identity = 2; - * * @return The bytes for identity. */ - public com.google.protobuf.ByteString getIdentityBytes() { + public com.google.protobuf.ByteString + getIdentityBytes() { java.lang.Object ref = identity_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); identity_ = b; return b; } else { @@ -702,37 +643,30 @@ public com.google.protobuf.ByteString getIdentityBytes() { } } /** - * - * *
      * A unique Google-owned and Google-generated identity for the Connection.
      * This identity will be used to access the user's AWS IAM Role.
      * 
* * string identity = 2; - * * @param value The identity to set. * @return This builder for chaining. */ - public Builder setIdentity(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIdentity( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } identity_ = value; bitField0_ |= 0x00000002; 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() { @@ -742,31 +676,27 @@ public Builder clearIdentity() { 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(); - } + public Builder setIdentityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); identity_ = value; bitField0_ |= 0x00000002; 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); } @@ -776,12 +706,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(); } @@ -790,27 +720,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -825,4 +755,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.connection.v1.AwsAccessRole getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.java similarity index 61% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.java rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.java index 0c06ce431dc6..192c1165e70b 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.java +++ b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.java @@ -1,79 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; -public interface AwsAccessRoleOrBuilder - extends +public interface AwsAccessRoleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.AwsAccessRole) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
    * Connection.
    * 
* * string iam_role_id = 1; - * * @return The iamRoleId. */ java.lang.String getIamRoleId(); /** - * - * *
    * The user’s AWS IAM Role that trusts the Google-owned AWS IAM user
    * Connection.
    * 
* * string iam_role_id = 1; - * * @return The bytes for iamRoleId. */ - com.google.protobuf.ByteString getIamRoleIdBytes(); + com.google.protobuf.ByteString + getIamRoleIdBytes(); /** - * - * *
    * A unique Google-owned and Google-generated identity for the Connection.
    * This identity will be used to access the user's AWS IAM Role.
    * 
* * string identity = 2; - * * @return The identity. */ java.lang.String getIdentity(); /** - * - * *
    * A unique Google-owned and Google-generated identity for the Connection.
    * This identity will be used to access the user's AWS IAM Role.
    * 
* * string identity = 2; - * * @return The bytes for identity. */ - com.google.protobuf.ByteString getIdentityBytes(); + com.google.protobuf.ByteString + getIdentityBytes(); } diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRole.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRole.java similarity index 71% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRole.java rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRole.java index 373e052d0e7d..9b0990114786 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRole.java +++ b/owl-bot-staging/java-bigqueryconnection/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,44 +28,39 @@ 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;
   }
-
-  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;
-
   @SuppressWarnings("serial")
   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 @@ -92,30 +69,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 { @@ -124,18 +101,14 @@ public com.google.protobuf.ByteString getIamRoleIdBytes() { } public static final int IAM_USER_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -144,29 +117,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 { @@ -175,12 +148,9 @@ public com.google.protobuf.ByteString getIamUserIdBytes() { } public static final int EXTERNAL_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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
@@ -189,7 +159,6 @@ public com.google.protobuf.ByteString getIamUserIdBytes() {
    * 
* * string external_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The externalId. */ @java.lang.Override @@ -198,15 +167,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
@@ -215,15 +183,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 { @@ -232,7 +201,6 @@ public com.google.protobuf.ByteString getExternalIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -244,7 +212,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iamRoleId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, iamRoleId_); } @@ -280,17 +249,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -314,104 +285,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.
@@ -419,32 +382,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -456,9 +420,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
@@ -477,11 +441,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole result = new com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -503,39 +464,38 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.AwsCrossAccou
     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;
@@ -543,8 +503,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_;
         bitField0_ |= 0x00000001;
@@ -586,31 +545,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                iamRoleId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                iamUserId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                externalId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              iamRoleId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              iamUserId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              externalId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -620,26 +575,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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; @@ -648,22 +600,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 { @@ -671,37 +622,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIamRoleId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } iamRoleId_ = value; bitField0_ |= 0x00000001; 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() { @@ -711,22 +655,18 @@ public Builder clearIamRoleId() { 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(); - } + public Builder setIamRoleIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); iamRoleId_ = value; bitField0_ |= 0x00000001; @@ -736,20 +676,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; @@ -758,21 +696,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 { @@ -780,35 +717,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIamUserId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } iamUserId_ = value; bitField0_ |= 0x00000002; 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() { @@ -818,21 +748,17 @@ public Builder clearIamUserId() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIamUserIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); iamUserId_ = value; bitField0_ |= 0x00000002; @@ -842,8 +768,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
@@ -852,13 +776,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; @@ -867,8 +791,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
@@ -877,14 +799,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 { @@ -892,8 +815,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
@@ -902,22 +823,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setExternalId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } externalId_ = value; bitField0_ |= 0x00000004; 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
@@ -926,7 +843,6 @@ 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() { @@ -936,8 +852,6 @@ public Builder clearExternalId() { 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
@@ -946,23 +860,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setExternalIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); externalId_ = value; bitField0_ |= 0x00000004; 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); } @@ -972,12 +884,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(); } @@ -986,27 +898,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1021,4 +933,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRoleOrBuilder.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRoleOrBuilder.java similarity index 70% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRoleOrBuilder.java rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRoleOrBuilder.java index a0b7efd4d24d..046ef2d4e2e7 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRoleOrBuilder.java +++ b/owl-bot-staging/java-bigqueryconnection/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
@@ -86,13 +58,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
@@ -101,8 +70,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/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java similarity index 64% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java index 4a15fa6b8902..87166d63dc31 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java +++ b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java @@ -1,83 +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; /** - * - * *
  * 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; } - - 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 { - @java.lang.Deprecated - CROSS_ACCOUNT_ROLE(2), + @java.lang.Deprecated CROSS_ACCOUNT_ROLE(2), ACCESS_ROLE(3), AUTHENTICATIONMETHOD_NOT_SET(0); private final int value; - private AuthenticationMethodCase(int value) { this.value = value; } @@ -93,108 +71,84 @@ 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.
    * Deprecated, do not use.
    * 
* - * - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; - * - * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; * @deprecated google.cloud.bigquery.connection.v1.AwsProperties.cross_account_role is deprecated. - * See google/cloud/bigquery/connection/v1/connection.proto;l=345 + * See google/cloud/bigquery/connection/v1/connection.proto;l=356 * @return Whether the crossAccountRole field is set. */ @java.lang.Override - @java.lang.Deprecated - public boolean hasCrossAccountRole() { + @java.lang.Deprecated public boolean hasCrossAccountRole() { return authenticationMethodCase_ == 2; } /** - * - * *
    * Authentication using Google owned AWS IAM user's access key to assume
    * into customer's AWS IAM Role.
    * Deprecated, do not use.
    * 
* - * - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; - * - * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; * @deprecated google.cloud.bigquery.connection.v1.AwsProperties.cross_account_role is deprecated. - * See google/cloud/bigquery/connection/v1/connection.proto;l=345 + * See google/cloud/bigquery/connection/v1/connection.proto;l=356 * @return The crossAccountRole. */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole getCrossAccountRole() { + @java.lang.Deprecated 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.
    * Deprecated, do not use.
    * 
* - * - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; - * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder - getCrossAccountRoleOrBuilder() { + @java.lang.Deprecated 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 @@ -202,27 +156,22 @@ public boolean hasAccessRole() { return authenticationMethodCase_ == 3; } /** - * - * *
    * Authentication using Google owned service account to assume into
    * customer's AWS IAM Role.
    * 
* * .google.cloud.bigquery.connection.v1.AwsAccessRole access_role = 3; - * * @return The accessRole. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.AwsAccessRole getAccessRole() { if (authenticationMethodCase_ == 3) { - return (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_; + return (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_; } return com.google.cloud.bigquery.connection.v1.AwsAccessRole.getDefaultInstance(); } /** - * - * *
    * Authentication using Google owned service account to assume into
    * customer's AWS IAM Role.
@@ -233,13 +182,12 @@ public com.google.cloud.bigquery.connection.v1.AwsAccessRole getAccessRole() {
   @java.lang.Override
   public com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder getAccessRoleOrBuilder() {
     if (authenticationMethodCase_ == 3) {
-      return (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_;
+       return (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_;
     }
     return com.google.cloud.bigquery.connection.v1.AwsAccessRole.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -251,14 +199,13 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (authenticationMethodCase_ == 2) {
-      output.writeMessage(
-          2, (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_);
+      output.writeMessage(2, (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_);
     }
     if (authenticationMethodCase_ == 3) {
-      output.writeMessage(
-          3, (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_);
+      output.writeMessage(3, (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_);
     }
     getUnknownFields().writeTo(output);
   }
@@ -270,15 +217,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (authenticationMethodCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2,
-              (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole) authenticationMethod_);
     }
     if (authenticationMethodCase_ == 3) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              3, (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -288,21 +232,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.bigquery.connection.v1.AwsProperties)) {
       return super.equals(obj);
     }
-    com.google.cloud.bigquery.connection.v1.AwsProperties other =
-        (com.google.cloud.bigquery.connection.v1.AwsProperties) obj;
+    com.google.cloud.bigquery.connection.v1.AwsProperties other = (com.google.cloud.bigquery.connection.v1.AwsProperties) obj;
 
     if (!getAuthenticationMethodCase().equals(other.getAuthenticationMethodCase())) return false;
     switch (authenticationMethodCase_) {
       case 2:
-        if (!getCrossAccountRole().equals(other.getCrossAccountRole())) return false;
+        if (!getCrossAccountRole()
+            .equals(other.getCrossAccountRole())) return false;
         break;
       case 3:
-        if (!getAccessRole().equals(other.getAccessRole())) return false;
+        if (!getAccessRole()
+            .equals(other.getAccessRole())) return false;
         break;
       case 0:
       default:
@@ -336,136 +281,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -482,9 +420,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 @@ -503,11 +441,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.connection.v1.AwsProperties result = new com.google.cloud.bigquery.connection.v1.AwsProperties(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -520,10 +455,12 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.AwsProperties private void buildPartialOneofs(com.google.cloud.bigquery.connection.v1.AwsProperties result) { result.authenticationMethodCase_ = authenticationMethodCase_; result.authenticationMethod_ = this.authenticationMethod_; - if (authenticationMethodCase_ == 2 && crossAccountRoleBuilder_ != null) { + if (authenticationMethodCase_ == 2 && + crossAccountRoleBuilder_ != null) { result.authenticationMethod_ = crossAccountRoleBuilder_.build(); } - if (authenticationMethodCase_ == 3 && accessRoleBuilder_ != null) { + if (authenticationMethodCase_ == 3 && + accessRoleBuilder_ != null) { result.authenticationMethod_ = accessRoleBuilder_.build(); } } @@ -532,39 +469,38 @@ private void buildPartialOneofs(com.google.cloud.bigquery.connection.v1.AwsPrope 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; @@ -572,23 +508,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.AwsProperties other) { - if (other == com.google.cloud.bigquery.connection.v1.AwsProperties.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.connection.v1.AwsProperties.getDefaultInstance()) return this; switch (other.getAuthenticationMethodCase()) { - case CROSS_ACCOUNT_ROLE: - { - mergeCrossAccountRole(other.getCrossAccountRole()); - break; - } - case ACCESS_ROLE: - { - mergeAccessRole(other.getAccessRole()); - break; - } - case AUTHENTICATIONMETHOD_NOT_SET: - { - break; - } + case CROSS_ACCOUNT_ROLE: { + mergeCrossAccountRole(other.getCrossAccountRole()); + break; + } + case ACCESS_ROLE: { + mergeAccessRole(other.getAccessRole()); + break; + } + case AUTHENTICATIONMETHOD_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -616,26 +548,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - input.readMessage( - getCrossAccountRoleFieldBuilder().getBuilder(), extensionRegistry); - authenticationMethodCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getAccessRoleFieldBuilder().getBuilder(), extensionRegistry); - authenticationMethodCase_ = 3; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + input.readMessage( + getCrossAccountRoleFieldBuilder().getBuilder(), + extensionRegistry); + authenticationMethodCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getAccessRoleFieldBuilder().getBuilder(), + extensionRegistry); + authenticationMethodCase_ = 3; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -645,12 +577,12 @@ public Builder mergeFrom( } // finally 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() { @@ -663,56 +595,40 @@ public Builder clearAuthenticationMethod() { private int bitField0_; 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.
      * Deprecated, do not use.
      * 
* - * - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; - * - * - * @deprecated google.cloud.bigquery.connection.v1.AwsProperties.cross_account_role is - * deprecated. See google/cloud/bigquery/connection/v1/connection.proto;l=345 + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * @deprecated google.cloud.bigquery.connection.v1.AwsProperties.cross_account_role is deprecated. + * See google/cloud/bigquery/connection/v1/connection.proto;l=356 * @return Whether the crossAccountRole field is set. */ @java.lang.Override - @java.lang.Deprecated - public boolean hasCrossAccountRole() { + @java.lang.Deprecated public boolean hasCrossAccountRole() { return authenticationMethodCase_ == 2; } /** - * - * *
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
      * Deprecated, do not use.
      * 
* - * - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; - * - * - * @deprecated google.cloud.bigquery.connection.v1.AwsProperties.cross_account_role is - * deprecated. See google/cloud/bigquery/connection/v1/connection.proto;l=345 + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * @deprecated google.cloud.bigquery.connection.v1.AwsProperties.cross_account_role is deprecated. + * See google/cloud/bigquery/connection/v1/connection.proto;l=356 * @return The crossAccountRole. */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole getCrossAccountRole() { + @java.lang.Deprecated 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 { @@ -723,21 +639,15 @@ 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.
      * Deprecated, do not use.
      * 
* - * - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; - * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setCrossAccountRole( - com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole value) { + @java.lang.Deprecated public Builder setCrossAccountRole(com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole value) { if (crossAccountRoleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -751,20 +661,15 @@ public Builder setCrossAccountRole( return this; } /** - * - * *
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
      * Deprecated, do not use.
      * 
* - * - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; - * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setCrossAccountRole( + @java.lang.Deprecated public Builder setCrossAccountRole( com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder builderForValue) { if (crossAccountRoleBuilder_ == null) { authenticationMethod_ = builderForValue.build(); @@ -776,32 +681,20 @@ public Builder setCrossAccountRole( return this; } /** - * - * *
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
      * Deprecated, do not use.
      * 
* - * - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; - * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; */ - @java.lang.Deprecated - public Builder mergeCrossAccountRole( - com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole value) { + @java.lang.Deprecated 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; } @@ -817,20 +710,15 @@ public Builder mergeCrossAccountRole( return this; } /** - * - * *
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
      * Deprecated, do not use.
      * 
* - * - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; - * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; */ - @java.lang.Deprecated - public Builder clearCrossAccountRole() { + @java.lang.Deprecated public Builder clearCrossAccountRole() { if (crossAccountRoleBuilder_ == null) { if (authenticationMethodCase_ == 2) { authenticationMethodCase_ = 0; @@ -847,78 +735,55 @@ public Builder clearCrossAccountRole() { return this; } /** - * - * *
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
      * Deprecated, do not use.
      * 
* - * - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; - * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder - getCrossAccountRoleBuilder() { + @java.lang.Deprecated 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.
      * Deprecated, do not use.
      * 
* - * - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; - * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder - getCrossAccountRoleOrBuilder() { + @java.lang.Deprecated 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.
      * Deprecated, do not use.
      * 
* - * - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; - * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; */ 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()); @@ -930,20 +795,14 @@ public Builder clearCrossAccountRole() { } 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 @@ -951,15 +810,12 @@ public boolean hasAccessRole() { return authenticationMethodCase_ == 3; } /** - * - * *
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
      * 
* * .google.cloud.bigquery.connection.v1.AwsAccessRole access_role = 3; - * * @return The accessRole. */ @java.lang.Override @@ -977,8 +833,6 @@ public com.google.cloud.bigquery.connection.v1.AwsAccessRole getAccessRole() { } } /** - * - * *
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
@@ -1000,8 +854,6 @@ public Builder setAccessRole(com.google.cloud.bigquery.connection.v1.AwsAccessRo
       return this;
     }
     /**
-     *
-     *
      * 
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
@@ -1021,8 +873,6 @@ public Builder setAccessRole(
       return this;
     }
     /**
-     *
-     *
      * 
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
@@ -1032,14 +882,10 @@ public Builder setAccessRole(
      */
     public Builder mergeAccessRole(com.google.cloud.bigquery.connection.v1.AwsAccessRole value) {
       if (accessRoleBuilder_ == null) {
-        if (authenticationMethodCase_ == 3
-            && authenticationMethod_
-                != com.google.cloud.bigquery.connection.v1.AwsAccessRole.getDefaultInstance()) {
-          authenticationMethod_ =
-              com.google.cloud.bigquery.connection.v1.AwsAccessRole.newBuilder(
-                      (com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (authenticationMethodCase_ == 3 &&
+            authenticationMethod_ != com.google.cloud.bigquery.connection.v1.AwsAccessRole.getDefaultInstance()) {
+          authenticationMethod_ = com.google.cloud.bigquery.connection.v1.AwsAccessRole.newBuilder((com.google.cloud.bigquery.connection.v1.AwsAccessRole) authenticationMethod_)
+              .mergeFrom(value).buildPartial();
         } else {
           authenticationMethod_ = value;
         }
@@ -1055,8 +901,6 @@ public Builder mergeAccessRole(com.google.cloud.bigquery.connection.v1.AwsAccess
       return this;
     }
     /**
-     *
-     *
      * 
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
@@ -1081,8 +925,6 @@ public Builder clearAccessRole() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
@@ -1094,8 +936,6 @@ public com.google.cloud.bigquery.connection.v1.AwsAccessRole.Builder getAccessRo
       return getAccessRoleFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
@@ -1115,8 +955,6 @@ public com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder getAccessR
       }
     }
     /**
-     *
-     *
      * 
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
@@ -1125,20 +963,14 @@ 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());
@@ -1148,9 +980,9 @@ public com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder getAccessR
       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);
     }
 
@@ -1160,12 +992,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();
   }
@@ -1174,27 +1006,27 @@ 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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  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 {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1209,4 +1041,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.bigquery.connection.v1.AwsProperties getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java
similarity index 60%
rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java
rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java
index 6b3297419242..472ade88168e 100644
--- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java
+++ b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java
@@ -1,112 +1,70 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the 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.
    * Deprecated, do not use.
    * 
* - * - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; - * - * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; * @deprecated google.cloud.bigquery.connection.v1.AwsProperties.cross_account_role is deprecated. - * See google/cloud/bigquery/connection/v1/connection.proto;l=345 + * See google/cloud/bigquery/connection/v1/connection.proto;l=356 * @return Whether the crossAccountRole field is set. */ - @java.lang.Deprecated - boolean hasCrossAccountRole(); + @java.lang.Deprecated boolean hasCrossAccountRole(); /** - * - * *
    * Authentication using Google owned AWS IAM user's access key to assume
    * into customer's AWS IAM Role.
    * Deprecated, do not use.
    * 
* - * - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; - * - * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; * @deprecated google.cloud.bigquery.connection.v1.AwsProperties.cross_account_role is deprecated. - * See google/cloud/bigquery/connection/v1/connection.proto;l=345 + * See google/cloud/bigquery/connection/v1/connection.proto;l=356 * @return The crossAccountRole. */ - @java.lang.Deprecated - com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole getCrossAccountRole(); + @java.lang.Deprecated 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.
    * Deprecated, do not use.
    * 
* - * - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; - * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; */ - @java.lang.Deprecated - com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder - getCrossAccountRoleOrBuilder(); + @java.lang.Deprecated 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.
@@ -116,6 +74,5 @@ public interface AwsPropertiesOrBuilder
    */
   com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder getAccessRoleOrBuilder();
 
-  public com.google.cloud.bigquery.connection.v1.AwsProperties.AuthenticationMethodCase
-      getAuthenticationMethodCase();
+  public com.google.cloud.bigquery.connection.v1.AwsProperties.AuthenticationMethodCase getAuthenticationMethodCase();
 }
diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzureProperties.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzureProperties.java
similarity index 73%
rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzureProperties.java
rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzureProperties.java
index 6d9f30cd13e0..52fdefb1ef10 100644
--- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzureProperties.java
+++ b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzureProperties.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;
 
 /**
- *
- *
  * 
  * Container for connection properties specific to Azure.
  * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.AzureProperties} */ -public final class AzureProperties extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AzureProperties extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.AzureProperties) AzurePropertiesOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AzureProperties.newBuilder() to construct. private AzureProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AzureProperties() { application_ = ""; clientId_ = ""; @@ -49,43 +31,38 @@ private AzureProperties() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AzureProperties(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_AzureProperties_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_AzureProperties_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_AzureProperties_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AzureProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.AzureProperties.class, - com.google.cloud.bigquery.connection.v1.AzureProperties.Builder.class); + com.google.cloud.bigquery.connection.v1.AzureProperties.class, com.google.cloud.bigquery.connection.v1.AzureProperties.Builder.class); } public static final int APPLICATION_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object application_ = ""; /** - * - * *
    * Output only. The name of the Azure Active Directory Application.
    * 
* * string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The application. */ @java.lang.Override @@ -94,29 +71,29 @@ public java.lang.String getApplication() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); application_ = s; return s; } } /** - * - * *
    * Output only. The name of the Azure Active Directory Application.
    * 
* * string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for application. */ @java.lang.Override - public com.google.protobuf.ByteString getApplicationBytes() { + public com.google.protobuf.ByteString + getApplicationBytes() { java.lang.Object ref = application_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); application_ = b; return b; } else { @@ -125,18 +102,14 @@ public com.google.protobuf.ByteString getApplicationBytes() { } public static final int CLIENT_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object clientId_ = ""; /** - * - * *
    * Output only. The client id of the Azure Active Directory Application.
    * 
* * string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clientId. */ @java.lang.Override @@ -145,29 +118,29 @@ public java.lang.String getClientId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientId_ = s; return s; } } /** - * - * *
    * Output only. The client id of the Azure Active Directory Application.
    * 
* * string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clientId. */ @java.lang.Override - public com.google.protobuf.ByteString getClientIdBytes() { + public com.google.protobuf.ByteString + getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clientId_ = b; return b; } else { @@ -176,18 +149,14 @@ public com.google.protobuf.ByteString getClientIdBytes() { } public static final int OBJECT_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object objectId_ = ""; /** - * - * *
    * Output only. The object id of the Azure Active Directory Application.
    * 
* * string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The objectId. */ @java.lang.Override @@ -196,29 +165,29 @@ public java.lang.String getObjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); objectId_ = s; return s; } } /** - * - * *
    * Output only. The object id of the Azure Active Directory Application.
    * 
* * string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for objectId. */ @java.lang.Override - public com.google.protobuf.ByteString getObjectIdBytes() { + public com.google.protobuf.ByteString + getObjectIdBytes() { java.lang.Object ref = objectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); objectId_ = b; return b; } else { @@ -227,18 +196,14 @@ public com.google.protobuf.ByteString getObjectIdBytes() { } public static final int CUSTOMER_TENANT_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object customerTenantId_ = ""; /** - * - * *
    * The id of customer's directory that host the data.
    * 
* * string customer_tenant_id = 4; - * * @return The customerTenantId. */ @java.lang.Override @@ -247,29 +212,29 @@ public java.lang.String getCustomerTenantId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customerTenantId_ = s; return s; } } /** - * - * *
    * The id of customer's directory that host the data.
    * 
* * string customer_tenant_id = 4; - * * @return The bytes for customerTenantId. */ @java.lang.Override - public com.google.protobuf.ByteString getCustomerTenantIdBytes() { + public com.google.protobuf.ByteString + getCustomerTenantIdBytes() { java.lang.Object ref = customerTenantId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); customerTenantId_ = b; return b; } else { @@ -278,19 +243,15 @@ public com.google.protobuf.ByteString getCustomerTenantIdBytes() { } public static final int REDIRECT_URI_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object redirectUri_ = ""; /** - * - * *
    * The URL user will be redirected to after granting consent during connection
    * setup.
    * 
* * string redirect_uri = 5; - * * @return The redirectUri. */ @java.lang.Override @@ -299,30 +260,30 @@ public java.lang.String getRedirectUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); redirectUri_ = s; return s; } } /** - * - * *
    * The URL user will be redirected to after granting consent during connection
    * setup.
    * 
* * string redirect_uri = 5; - * * @return The bytes for redirectUri. */ @java.lang.Override - public com.google.protobuf.ByteString getRedirectUriBytes() { + public com.google.protobuf.ByteString + getRedirectUriBytes() { java.lang.Object ref = redirectUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); redirectUri_ = b; return b; } else { @@ -331,19 +292,15 @@ public com.google.protobuf.ByteString getRedirectUriBytes() { } public static final int FEDERATED_APPLICATION_CLIENT_ID_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object federatedApplicationClientId_ = ""; /** - * - * *
    * The client ID of the user's Azure Active Directory Application used for a
    * federated connection.
    * 
* * string federated_application_client_id = 6; - * * @return The federatedApplicationClientId. */ @java.lang.Override @@ -352,30 +309,30 @@ public java.lang.String getFederatedApplicationClientId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); federatedApplicationClientId_ = s; return s; } } /** - * - * *
    * The client ID of the user's Azure Active Directory Application used for a
    * federated connection.
    * 
* * string federated_application_client_id = 6; - * * @return The bytes for federatedApplicationClientId. */ @java.lang.Override - public com.google.protobuf.ByteString getFederatedApplicationClientIdBytes() { + public com.google.protobuf.ByteString + getFederatedApplicationClientIdBytes() { java.lang.Object ref = federatedApplicationClientId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); federatedApplicationClientId_ = b; return b; } else { @@ -384,12 +341,9 @@ public com.google.protobuf.ByteString getFederatedApplicationClientIdBytes() { } public static final int IDENTITY_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object identity_ = ""; /** - * - * *
    * Output only. A unique Google-owned and Google-generated identity for the
    * Connection. This identity will be used to access the user's Azure Active
@@ -397,7 +351,6 @@ public com.google.protobuf.ByteString getFederatedApplicationClientIdBytes() {
    * 
* * string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The identity. */ @java.lang.Override @@ -406,15 +359,14 @@ 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; } } /** - * - * *
    * Output only. A unique Google-owned and Google-generated identity for the
    * Connection. This identity will be used to access the user's Azure Active
@@ -422,15 +374,16 @@ public java.lang.String getIdentity() {
    * 
* * string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -439,7 +392,6 @@ public com.google.protobuf.ByteString getIdentityBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -451,7 +403,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(application_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, application_); } @@ -498,9 +451,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, redirectUri_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(federatedApplicationClientId_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize( - 6, federatedApplicationClientId_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, federatedApplicationClientId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identity_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, identity_); @@ -513,22 +464,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.connection.v1.AzureProperties)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.AzureProperties other = - (com.google.cloud.bigquery.connection.v1.AzureProperties) obj; - - if (!getApplication().equals(other.getApplication())) return false; - if (!getClientId().equals(other.getClientId())) return false; - if (!getObjectId().equals(other.getObjectId())) return false; - if (!getCustomerTenantId().equals(other.getCustomerTenantId())) return false; - if (!getRedirectUri().equals(other.getRedirectUri())) return false; - if (!getFederatedApplicationClientId().equals(other.getFederatedApplicationClientId())) - return false; - if (!getIdentity().equals(other.getIdentity())) return false; + com.google.cloud.bigquery.connection.v1.AzureProperties other = (com.google.cloud.bigquery.connection.v1.AzureProperties) obj; + + if (!getApplication() + .equals(other.getApplication())) return false; + if (!getClientId() + .equals(other.getClientId())) return false; + if (!getObjectId() + .equals(other.getObjectId())) return false; + if (!getCustomerTenantId() + .equals(other.getCustomerTenantId())) return false; + if (!getRedirectUri() + .equals(other.getRedirectUri())) return false; + if (!getFederatedApplicationClientId() + .equals(other.getFederatedApplicationClientId())) return false; + if (!getIdentity() + .equals(other.getIdentity())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -560,136 +516,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.AzureProperties 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.AzureProperties 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.AzureProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.AzureProperties 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.AzureProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.AzureProperties 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.AzureProperties 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.AzureProperties 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.AzureProperties 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.AzureProperties 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.AzureProperties 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.AzureProperties 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.AzureProperties 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.AzureProperties 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.AzureProperties prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.connection.v1.AzureProperties prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Container for connection properties specific to Azure.
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.AzureProperties} */ - 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.AzureProperties) com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_AzureProperties_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_AzureProperties_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_AzureProperties_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AzureProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.AzureProperties.class, - com.google.cloud.bigquery.connection.v1.AzureProperties.Builder.class); + com.google.cloud.bigquery.connection.v1.AzureProperties.class, com.google.cloud.bigquery.connection.v1.AzureProperties.Builder.class); } // Construct using com.google.cloud.bigquery.connection.v1.AzureProperties.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -705,9 +654,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_AzureProperties_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AzureProperties_descriptor; } @java.lang.Override @@ -726,11 +675,8 @@ public com.google.cloud.bigquery.connection.v1.AzureProperties build() { @java.lang.Override public com.google.cloud.bigquery.connection.v1.AzureProperties buildPartial() { - com.google.cloud.bigquery.connection.v1.AzureProperties result = - new com.google.cloud.bigquery.connection.v1.AzureProperties(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.connection.v1.AzureProperties result = new com.google.cloud.bigquery.connection.v1.AzureProperties(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -764,39 +710,38 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.AzureProperti 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.AzureProperties) { - return mergeFrom((com.google.cloud.bigquery.connection.v1.AzureProperties) other); + return mergeFrom((com.google.cloud.bigquery.connection.v1.AzureProperties)other); } else { super.mergeFrom(other); return this; @@ -804,8 +749,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.AzureProperties other) { - if (other == com.google.cloud.bigquery.connection.v1.AzureProperties.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.connection.v1.AzureProperties.getDefaultInstance()) return this; if (!other.getApplication().isEmpty()) { application_ = other.application_; bitField0_ |= 0x00000001; @@ -867,55 +811,47 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - application_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - clientId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - objectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - customerTenantId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - redirectUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - federatedApplicationClientId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - identity_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + application_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + clientId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + objectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + customerTenantId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + redirectUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + federatedApplicationClientId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + identity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -925,25 +861,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object application_ = ""; /** - * - * *
      * Output only. The name of the Azure Active Directory Application.
      * 
* * string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The application. */ public java.lang.String getApplication() { java.lang.Object ref = application_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); application_ = s; return s; @@ -952,21 +885,20 @@ public java.lang.String getApplication() { } } /** - * - * *
      * Output only. The name of the Azure Active Directory Application.
      * 
* * string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for application. */ - public com.google.protobuf.ByteString getApplicationBytes() { + public com.google.protobuf.ByteString + getApplicationBytes() { java.lang.Object ref = application_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); application_ = b; return b; } else { @@ -974,35 +906,28 @@ public com.google.protobuf.ByteString getApplicationBytes() { } } /** - * - * *
      * Output only. The name of the Azure Active Directory Application.
      * 
* * string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The application to set. * @return This builder for chaining. */ - public Builder setApplication(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApplication( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } application_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The name of the Azure Active Directory Application.
      * 
* * string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApplication() { @@ -1012,21 +937,17 @@ public Builder clearApplication() { return this; } /** - * - * *
      * Output only. The name of the Azure Active Directory Application.
      * 
* * string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for application to set. * @return This builder for chaining. */ - public Builder setApplicationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApplicationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); application_ = value; bitField0_ |= 0x00000001; @@ -1036,20 +957,18 @@ public Builder setApplicationBytes(com.google.protobuf.ByteString value) { private java.lang.Object clientId_ = ""; /** - * - * *
      * Output only. The client id of the Azure Active Directory Application.
      * 
* * string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clientId. */ public java.lang.String getClientId() { java.lang.Object ref = clientId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientId_ = s; return s; @@ -1058,21 +977,20 @@ public java.lang.String getClientId() { } } /** - * - * *
      * Output only. The client id of the Azure Active Directory Application.
      * 
* * string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clientId. */ - public com.google.protobuf.ByteString getClientIdBytes() { + public com.google.protobuf.ByteString + getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clientId_ = b; return b; } else { @@ -1080,35 +998,28 @@ public com.google.protobuf.ByteString getClientIdBytes() { } } /** - * - * *
      * Output only. The client id of the Azure Active Directory Application.
      * 
* * string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The clientId to set. * @return This builder for chaining. */ - public Builder setClientId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setClientId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } clientId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Output only. The client id of the Azure Active Directory Application.
      * 
* * string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearClientId() { @@ -1118,21 +1029,17 @@ public Builder clearClientId() { return this; } /** - * - * *
      * Output only. The client id of the Azure Active Directory Application.
      * 
* * string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for clientId to set. * @return This builder for chaining. */ - public Builder setClientIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setClientIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clientId_ = value; bitField0_ |= 0x00000002; @@ -1142,20 +1049,18 @@ public Builder setClientIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object objectId_ = ""; /** - * - * *
      * Output only. The object id of the Azure Active Directory Application.
      * 
* * string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The objectId. */ public java.lang.String getObjectId() { java.lang.Object ref = objectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); objectId_ = s; return s; @@ -1164,21 +1069,20 @@ public java.lang.String getObjectId() { } } /** - * - * *
      * Output only. The object id of the Azure Active Directory Application.
      * 
* * string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for objectId. */ - public com.google.protobuf.ByteString getObjectIdBytes() { + public com.google.protobuf.ByteString + getObjectIdBytes() { java.lang.Object ref = objectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); objectId_ = b; return b; } else { @@ -1186,35 +1090,28 @@ public com.google.protobuf.ByteString getObjectIdBytes() { } } /** - * - * *
      * Output only. The object id of the Azure Active Directory Application.
      * 
* * string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The objectId to set. * @return This builder for chaining. */ - public Builder setObjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setObjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } objectId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. The object id of the Azure Active Directory Application.
      * 
* * string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearObjectId() { @@ -1224,21 +1121,17 @@ public Builder clearObjectId() { return this; } /** - * - * *
      * Output only. The object id of the Azure Active Directory Application.
      * 
* * string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for objectId to set. * @return This builder for chaining. */ - public Builder setObjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setObjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); objectId_ = value; bitField0_ |= 0x00000004; @@ -1248,20 +1141,18 @@ public Builder setObjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object customerTenantId_ = ""; /** - * - * *
      * The id of customer's directory that host the data.
      * 
* * string customer_tenant_id = 4; - * * @return The customerTenantId. */ public java.lang.String getCustomerTenantId() { java.lang.Object ref = customerTenantId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customerTenantId_ = s; return s; @@ -1270,21 +1161,20 @@ public java.lang.String getCustomerTenantId() { } } /** - * - * *
      * The id of customer's directory that host the data.
      * 
* * string customer_tenant_id = 4; - * * @return The bytes for customerTenantId. */ - public com.google.protobuf.ByteString getCustomerTenantIdBytes() { + public com.google.protobuf.ByteString + getCustomerTenantIdBytes() { java.lang.Object ref = customerTenantId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); customerTenantId_ = b; return b; } else { @@ -1292,35 +1182,28 @@ public com.google.protobuf.ByteString getCustomerTenantIdBytes() { } } /** - * - * *
      * The id of customer's directory that host the data.
      * 
* * string customer_tenant_id = 4; - * * @param value The customerTenantId to set. * @return This builder for chaining. */ - public Builder setCustomerTenantId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomerTenantId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } customerTenantId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * The id of customer's directory that host the data.
      * 
* * string customer_tenant_id = 4; - * * @return This builder for chaining. */ public Builder clearCustomerTenantId() { @@ -1330,21 +1213,17 @@ public Builder clearCustomerTenantId() { return this; } /** - * - * *
      * The id of customer's directory that host the data.
      * 
* * string customer_tenant_id = 4; - * * @param value The bytes for customerTenantId to set. * @return This builder for chaining. */ - public Builder setCustomerTenantIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomerTenantIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); customerTenantId_ = value; bitField0_ |= 0x00000008; @@ -1354,21 +1233,19 @@ public Builder setCustomerTenantIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object redirectUri_ = ""; /** - * - * *
      * The URL user will be redirected to after granting consent during connection
      * setup.
      * 
* * string redirect_uri = 5; - * * @return The redirectUri. */ public java.lang.String getRedirectUri() { java.lang.Object ref = redirectUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); redirectUri_ = s; return s; @@ -1377,22 +1254,21 @@ public java.lang.String getRedirectUri() { } } /** - * - * *
      * The URL user will be redirected to after granting consent during connection
      * setup.
      * 
* * string redirect_uri = 5; - * * @return The bytes for redirectUri. */ - public com.google.protobuf.ByteString getRedirectUriBytes() { + public com.google.protobuf.ByteString + getRedirectUriBytes() { java.lang.Object ref = redirectUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); redirectUri_ = b; return b; } else { @@ -1400,37 +1276,30 @@ public com.google.protobuf.ByteString getRedirectUriBytes() { } } /** - * - * *
      * The URL user will be redirected to after granting consent during connection
      * setup.
      * 
* * string redirect_uri = 5; - * * @param value The redirectUri to set. * @return This builder for chaining. */ - public Builder setRedirectUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRedirectUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } redirectUri_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * The URL user will be redirected to after granting consent during connection
      * setup.
      * 
* * string redirect_uri = 5; - * * @return This builder for chaining. */ public Builder clearRedirectUri() { @@ -1440,22 +1309,18 @@ public Builder clearRedirectUri() { return this; } /** - * - * *
      * The URL user will be redirected to after granting consent during connection
      * setup.
      * 
* * string redirect_uri = 5; - * * @param value The bytes for redirectUri to set. * @return This builder for chaining. */ - public Builder setRedirectUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRedirectUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); redirectUri_ = value; bitField0_ |= 0x00000010; @@ -1465,21 +1330,19 @@ public Builder setRedirectUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object federatedApplicationClientId_ = ""; /** - * - * *
      * The client ID of the user's Azure Active Directory Application used for a
      * federated connection.
      * 
* * string federated_application_client_id = 6; - * * @return The federatedApplicationClientId. */ public java.lang.String getFederatedApplicationClientId() { java.lang.Object ref = federatedApplicationClientId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); federatedApplicationClientId_ = s; return s; @@ -1488,22 +1351,21 @@ public java.lang.String getFederatedApplicationClientId() { } } /** - * - * *
      * The client ID of the user's Azure Active Directory Application used for a
      * federated connection.
      * 
* * string federated_application_client_id = 6; - * * @return The bytes for federatedApplicationClientId. */ - public com.google.protobuf.ByteString getFederatedApplicationClientIdBytes() { + public com.google.protobuf.ByteString + getFederatedApplicationClientIdBytes() { java.lang.Object ref = federatedApplicationClientId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); federatedApplicationClientId_ = b; return b; } else { @@ -1511,37 +1373,30 @@ public com.google.protobuf.ByteString getFederatedApplicationClientIdBytes() { } } /** - * - * *
      * The client ID of the user's Azure Active Directory Application used for a
      * federated connection.
      * 
* * string federated_application_client_id = 6; - * * @param value The federatedApplicationClientId to set. * @return This builder for chaining. */ - public Builder setFederatedApplicationClientId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFederatedApplicationClientId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } federatedApplicationClientId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * The client ID of the user's Azure Active Directory Application used for a
      * federated connection.
      * 
* * string federated_application_client_id = 6; - * * @return This builder for chaining. */ public Builder clearFederatedApplicationClientId() { @@ -1551,22 +1406,18 @@ public Builder clearFederatedApplicationClientId() { return this; } /** - * - * *
      * The client ID of the user's Azure Active Directory Application used for a
      * federated connection.
      * 
* * string federated_application_client_id = 6; - * * @param value The bytes for federatedApplicationClientId to set. * @return This builder for chaining. */ - public Builder setFederatedApplicationClientIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFederatedApplicationClientIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); federatedApplicationClientId_ = value; bitField0_ |= 0x00000020; @@ -1576,8 +1427,6 @@ public Builder setFederatedApplicationClientIdBytes(com.google.protobuf.ByteStri private java.lang.Object identity_ = ""; /** - * - * *
      * Output only. A unique Google-owned and Google-generated identity for the
      * Connection. This identity will be used to access the user's Azure Active
@@ -1585,13 +1434,13 @@ public Builder setFederatedApplicationClientIdBytes(com.google.protobuf.ByteStri
      * 
* * string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -1600,8 +1449,6 @@ public java.lang.String getIdentity() { } } /** - * - * *
      * Output only. A unique Google-owned and Google-generated identity for the
      * Connection. This identity will be used to access the user's Azure Active
@@ -1609,14 +1456,15 @@ public java.lang.String getIdentity() {
      * 
* * string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1624,8 +1472,6 @@ public com.google.protobuf.ByteString getIdentityBytes() { } } /** - * - * *
      * Output only. A unique Google-owned and Google-generated identity for the
      * Connection. This identity will be used to access the user's Azure Active
@@ -1633,22 +1479,18 @@ public com.google.protobuf.ByteString getIdentityBytes() {
      * 
* * string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The identity to set. * @return This builder for chaining. */ - public Builder setIdentity(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIdentity( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } identity_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Output only. A unique Google-owned and Google-generated identity for the
      * Connection. This identity will be used to access the user's Azure Active
@@ -1656,7 +1498,6 @@ public Builder setIdentity(java.lang.String value) {
      * 
* * string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearIdentity() { @@ -1666,8 +1507,6 @@ public Builder clearIdentity() { return this; } /** - * - * *
      * Output only. A unique Google-owned and Google-generated identity for the
      * Connection. This identity will be used to access the user's Azure Active
@@ -1675,23 +1514,21 @@ public Builder clearIdentity() {
      * 
* * string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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(); - } + public Builder setIdentityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); identity_ = value; bitField0_ |= 0x00000040; 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); } @@ -1701,12 +1538,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.AzureProperties) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.AzureProperties) private static final com.google.cloud.bigquery.connection.v1.AzureProperties DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.AzureProperties(); } @@ -1715,27 +1552,27 @@ public static com.google.cloud.bigquery.connection.v1.AzureProperties getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AzureProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AzureProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1750,4 +1587,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.connection.v1.AzureProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzurePropertiesOrBuilder.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzurePropertiesOrBuilder.java similarity index 75% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzurePropertiesOrBuilder.java rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzurePropertiesOrBuilder.java index 80811e6ef242..d459c5617988 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzurePropertiesOrBuilder.java +++ b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzurePropertiesOrBuilder.java @@ -1,185 +1,137 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 AzurePropertiesOrBuilder - extends +public interface AzurePropertiesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.AzureProperties) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The name of the Azure Active Directory Application.
    * 
* * string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The application. */ java.lang.String getApplication(); /** - * - * *
    * Output only. The name of the Azure Active Directory Application.
    * 
* * string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for application. */ - com.google.protobuf.ByteString getApplicationBytes(); + com.google.protobuf.ByteString + getApplicationBytes(); /** - * - * *
    * Output only. The client id of the Azure Active Directory Application.
    * 
* * string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clientId. */ java.lang.String getClientId(); /** - * - * *
    * Output only. The client id of the Azure Active Directory Application.
    * 
* * string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clientId. */ - com.google.protobuf.ByteString getClientIdBytes(); + com.google.protobuf.ByteString + getClientIdBytes(); /** - * - * *
    * Output only. The object id of the Azure Active Directory Application.
    * 
* * string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The objectId. */ java.lang.String getObjectId(); /** - * - * *
    * Output only. The object id of the Azure Active Directory Application.
    * 
* * string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for objectId. */ - com.google.protobuf.ByteString getObjectIdBytes(); + com.google.protobuf.ByteString + getObjectIdBytes(); /** - * - * *
    * The id of customer's directory that host the data.
    * 
* * string customer_tenant_id = 4; - * * @return The customerTenantId. */ java.lang.String getCustomerTenantId(); /** - * - * *
    * The id of customer's directory that host the data.
    * 
* * string customer_tenant_id = 4; - * * @return The bytes for customerTenantId. */ - com.google.protobuf.ByteString getCustomerTenantIdBytes(); + com.google.protobuf.ByteString + getCustomerTenantIdBytes(); /** - * - * *
    * The URL user will be redirected to after granting consent during connection
    * setup.
    * 
* * string redirect_uri = 5; - * * @return The redirectUri. */ java.lang.String getRedirectUri(); /** - * - * *
    * The URL user will be redirected to after granting consent during connection
    * setup.
    * 
* * string redirect_uri = 5; - * * @return The bytes for redirectUri. */ - com.google.protobuf.ByteString getRedirectUriBytes(); + com.google.protobuf.ByteString + getRedirectUriBytes(); /** - * - * *
    * The client ID of the user's Azure Active Directory Application used for a
    * federated connection.
    * 
* * string federated_application_client_id = 6; - * * @return The federatedApplicationClientId. */ java.lang.String getFederatedApplicationClientId(); /** - * - * *
    * The client ID of the user's Azure Active Directory Application used for a
    * federated connection.
    * 
* * string federated_application_client_id = 6; - * * @return The bytes for federatedApplicationClientId. */ - com.google.protobuf.ByteString getFederatedApplicationClientIdBytes(); + com.google.protobuf.ByteString + getFederatedApplicationClientIdBytes(); /** - * - * *
    * Output only. A unique Google-owned and Google-generated identity for the
    * Connection. This identity will be used to access the user's Azure Active
@@ -187,13 +139,10 @@ public interface AzurePropertiesOrBuilder
    * 
* * string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The identity. */ java.lang.String getIdentity(); /** - * - * *
    * Output only. A unique Google-owned and Google-generated identity for the
    * Connection. This identity will be used to access the user's Azure Active
@@ -201,8 +150,8 @@ public interface AzurePropertiesOrBuilder
    * 
* * string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for identity. */ - com.google.protobuf.ByteString getIdentityBytes(); + com.google.protobuf.ByteString + getIdentityBytes(); } diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourceProperties.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourceProperties.java similarity index 69% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourceProperties.java rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourceProperties.java index d704edb8ef7c..79405880c7a0 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourceProperties.java +++ b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourceProperties.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** - * - * *
  * Container for connection properties for delegation of access to GCP
  * resources.
@@ -28,53 +11,48 @@
  *
  * Protobuf type {@code google.cloud.bigquery.connection.v1.CloudResourceProperties}
  */
-public final class CloudResourceProperties extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CloudResourceProperties extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.CloudResourceProperties)
     CloudResourcePropertiesOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CloudResourceProperties.newBuilder() to construct.
   private CloudResourceProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CloudResourceProperties() {
     serviceAccountId_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CloudResourceProperties();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
-        .internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
-        .internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable
+    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.connection.v1.CloudResourceProperties.class,
-            com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder.class);
+            com.google.cloud.bigquery.connection.v1.CloudResourceProperties.class, com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder.class);
   }
 
   public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object serviceAccountId_ = "";
   /**
-   *
-   *
    * 
    * Output only. The account ID of the service created for the purpose of this
    * connection.
@@ -88,7 +66,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAccountId. */ @java.lang.Override @@ -97,15 +74,14 @@ public java.lang.String getServiceAccountId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountId_ = s; return s; } } /** - * - * *
    * Output only. The account ID of the service created for the purpose of this
    * connection.
@@ -119,15 +95,16 @@ public java.lang.String getServiceAccountId() {
    * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAccountId. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountIdBytes() { + public com.google.protobuf.ByteString + getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountId_ = b; return b; } else { @@ -136,7 +113,6 @@ public com.google.protobuf.ByteString getServiceAccountIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -148,7 +124,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAccountId_); } @@ -172,15 +149,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.connection.v1.CloudResourceProperties)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.CloudResourceProperties other = - (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) obj; + com.google.cloud.bigquery.connection.v1.CloudResourceProperties other = (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) obj; - if (!getServiceAccountId().equals(other.getServiceAccountId())) return false; + if (!getServiceAccountId() + .equals(other.getServiceAccountId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -200,104 +177,96 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.connection.v1.CloudResourceProperties prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.connection.v1.CloudResourceProperties prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Container for connection properties for delegation of access to GCP
    * resources.
@@ -305,32 +274,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.bigquery.connection.v1.CloudResourceProperties}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.connection.v1.CloudResourceProperties)
       com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
-          .internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
-          .internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.connection.v1.CloudResourceProperties.class,
-              com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder.class);
+              com.google.cloud.bigquery.connection.v1.CloudResourceProperties.class, com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.connection.v1.CloudResourceProperties.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -340,14 +310,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
-          .internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.connection.v1.CloudResourceProperties
-        getDefaultInstanceForType() {
+    public com.google.cloud.bigquery.connection.v1.CloudResourceProperties getDefaultInstanceForType() {
       return com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance();
     }
 
@@ -362,17 +331,13 @@ public com.google.cloud.bigquery.connection.v1.CloudResourceProperties build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.connection.v1.CloudResourceProperties buildPartial() {
-      com.google.cloud.bigquery.connection.v1.CloudResourceProperties result =
-          new com.google.cloud.bigquery.connection.v1.CloudResourceProperties(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.bigquery.connection.v1.CloudResourceProperties result = new com.google.cloud.bigquery.connection.v1.CloudResourceProperties(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.bigquery.connection.v1.CloudResourceProperties result) {
+    private void buildPartial0(com.google.cloud.bigquery.connection.v1.CloudResourceProperties result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.serviceAccountId_ = serviceAccountId_;
@@ -383,50 +348,46 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.connection.v1.CloudResourceProperties) {
-        return mergeFrom((com.google.cloud.bigquery.connection.v1.CloudResourceProperties) other);
+        return mergeFrom((com.google.cloud.bigquery.connection.v1.CloudResourceProperties)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.bigquery.connection.v1.CloudResourceProperties other) {
-      if (other
-          == com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.CloudResourceProperties other) {
+      if (other == com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance()) return this;
       if (!other.getServiceAccountId().isEmpty()) {
         serviceAccountId_ = other.serviceAccountId_;
         bitField0_ |= 0x00000001;
@@ -458,19 +419,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                serviceAccountId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              serviceAccountId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -480,13 +439,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object serviceAccountId_ = "";
     /**
-     *
-     *
      * 
      * Output only. The account ID of the service created for the purpose of this
      * connection.
@@ -500,13 +456,13 @@ public Builder mergeFrom(
      * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAccountId. */ public java.lang.String getServiceAccountId() { java.lang.Object ref = serviceAccountId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountId_ = s; return s; @@ -515,8 +471,6 @@ public java.lang.String getServiceAccountId() { } } /** - * - * *
      * Output only. The account ID of the service created for the purpose of this
      * connection.
@@ -530,14 +484,15 @@ public java.lang.String getServiceAccountId() {
      * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAccountId. */ - public com.google.protobuf.ByteString getServiceAccountIdBytes() { + public com.google.protobuf.ByteString + getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountId_ = b; return b; } else { @@ -545,8 +500,6 @@ public com.google.protobuf.ByteString getServiceAccountIdBytes() { } } /** - * - * *
      * Output only. The account ID of the service created for the purpose of this
      * connection.
@@ -560,22 +513,18 @@ public com.google.protobuf.ByteString getServiceAccountIdBytes() {
      * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The serviceAccountId to set. * @return This builder for chaining. */ - public Builder setServiceAccountId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccountId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } serviceAccountId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The account ID of the service created for the purpose of this
      * connection.
@@ -589,7 +538,6 @@ public Builder setServiceAccountId(java.lang.String value) {
      * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearServiceAccountId() { @@ -599,8 +547,6 @@ public Builder clearServiceAccountId() { return this; } /** - * - * *
      * Output only. The account ID of the service created for the purpose of this
      * connection.
@@ -614,23 +560,21 @@ public Builder clearServiceAccountId() {
      * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for serviceAccountId to set. * @return This builder for chaining. */ - public Builder setServiceAccountIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccountIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceAccountId_ = value; bitField0_ |= 0x00000001; 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); } @@ -640,43 +584,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.CloudResourceProperties) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.CloudResourceProperties) - private static final com.google.cloud.bigquery.connection.v1.CloudResourceProperties - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.connection.v1.CloudResourceProperties DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.CloudResourceProperties(); } - public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties - getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudResourceProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudResourceProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -688,8 +630,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudResourceProperties - getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.CloudResourceProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourcePropertiesOrBuilder.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourcePropertiesOrBuilder.java similarity index 71% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourcePropertiesOrBuilder.java rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourcePropertiesOrBuilder.java index dfd59ecd8e9b..f3ba510207d2 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourcePropertiesOrBuilder.java +++ b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourcePropertiesOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; -public interface CloudResourcePropertiesOrBuilder - extends +public interface CloudResourcePropertiesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.CloudResourceProperties) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The account ID of the service created for the purpose of this
    * connection.
@@ -39,13 +21,10 @@ public interface CloudResourcePropertiesOrBuilder
    * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAccountId. */ java.lang.String getServiceAccountId(); /** - * - * *
    * Output only. The account ID of the service created for the purpose of this
    * connection.
@@ -59,8 +38,8 @@ public interface CloudResourcePropertiesOrBuilder
    * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAccountId. */ - com.google.protobuf.ByteString getServiceAccountIdBytes(); + com.google.protobuf.ByteString + getServiceAccountIdBytes(); } diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.java similarity index 73% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.java rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.java index 053871613aa3..cdd3f5c9ddbc 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.java +++ b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.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 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_ = ""; databaseRole_ = ""; @@ -44,43 +26,38 @@ private CloudSpannerProperties() { @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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object database_ = ""; /** - * - * *
    * Cloud Spanner database in the form `project/instance/database'
    * 
* * string database = 1; - * * @return The database. */ @java.lang.Override @@ -89,29 +66,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 { @@ -122,14 +99,11 @@ public com.google.protobuf.ByteString getDatabaseBytes() { public static final int USE_PARALLELISM_FIELD_NUMBER = 2; private boolean useParallelism_ = false; /** - * - * *
    * If parallelism should be used when reading from Cloud Spanner
    * 
* * bool use_parallelism = 2; - * * @return The useParallelism. */ @java.lang.Override @@ -140,8 +114,6 @@ public boolean getUseParallelism() { public static final int USE_SERVERLESS_ANALYTICS_FIELD_NUMBER = 3; private boolean useServerlessAnalytics_ = false; /** - * - * *
    * If the serverless analytics service should be used to read data from Cloud
    * Spanner.
@@ -149,7 +121,6 @@ public boolean getUseParallelism() {
    * 
* * bool use_serverless_analytics = 3; - * * @return The useServerlessAnalytics. */ @java.lang.Override @@ -158,12 +129,9 @@ public boolean getUseServerlessAnalytics() { } public static final int DATABASE_ROLE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object databaseRole_ = ""; /** - * - * *
    * Optional. Cloud Spanner database role for fine-grained access control.
    * A database role is a collection of fine-grained access privileges. Example:
@@ -178,7 +146,6 @@ public boolean getUseServerlessAnalytics() {
    * 
* * string database_role = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The databaseRole. */ @java.lang.Override @@ -187,15 +154,14 @@ public java.lang.String getDatabaseRole() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseRole_ = s; return s; } } /** - * - * *
    * Optional. Cloud Spanner database role for fine-grained access control.
    * A database role is a collection of fine-grained access privileges. Example:
@@ -210,15 +176,16 @@ public java.lang.String getDatabaseRole() {
    * 
* * string database_role = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for databaseRole. */ @java.lang.Override - public com.google.protobuf.ByteString getDatabaseRoleBytes() { + public com.google.protobuf.ByteString + getDatabaseRoleBytes() { java.lang.Object ref = databaseRole_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseRole_ = b; return b; } else { @@ -227,7 +194,6 @@ public com.google.protobuf.ByteString getDatabaseRoleBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -239,7 +205,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_); } @@ -265,10 +232,12 @@ 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_); } if (useServerlessAnalytics_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, useServerlessAnalytics_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, useServerlessAnalytics_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseRole_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, databaseRole_); @@ -281,18 +250,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.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 (getUseServerlessAnalytics() != other.getUseServerlessAnalytics()) return false; - if (!getDatabaseRole().equals(other.getDatabaseRole())) return false; + if (!getDatabase() + .equals(other.getDatabase())) return false; + if (getUseParallelism() + != other.getUseParallelism()) return false; + if (getUseServerlessAnalytics() + != other.getUseServerlessAnalytics()) return false; + if (!getDatabaseRole() + .equals(other.getDatabaseRole())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,9 +279,11 @@ 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 = (37 * hash) + USE_SERVERLESS_ANALYTICS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseServerlessAnalytics()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUseServerlessAnalytics()); hash = (37 * hash) + DATABASE_ROLE_FIELD_NUMBER; hash = (53 * hash) + getDatabaseRole().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -318,136 +292,129 @@ public int hashCode() { } 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -460,14 +427,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass - .internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties - getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties getDefaultInstanceForType() { return com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.getDefaultInstance(); } @@ -482,17 +448,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties result = new com.google.cloud.bigquery.connection.v1.CloudSpannerProperties(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties result) { + private void buildPartial0(com.google.cloud.bigquery.connection.v1.CloudSpannerProperties result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.database_ = database_; @@ -512,39 +474,38 @@ private void buildPartial0( 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; @@ -552,9 +513,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.CloudSpannerProperties other) { - if (other - == com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.getDefaultInstance()) return this; if (!other.getDatabase().isEmpty()) { database_ = other.database_; bitField0_ |= 0x00000001; @@ -597,37 +556,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - database_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - useParallelism_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - useServerlessAnalytics_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - databaseRole_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + database_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + useParallelism_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + useServerlessAnalytics_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + databaseRole_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -637,25 +591,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -664,21 +615,20 @@ public java.lang.String getDatabase() { } } /** - * - * *
      * Cloud Spanner database in the form `project/instance/database'
      * 
* * string database = 1; - * * @return The bytes for database. */ - public com.google.protobuf.ByteString getDatabaseBytes() { + public com.google.protobuf.ByteString + getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); database_ = b; return b; } else { @@ -686,35 +636,28 @@ public com.google.protobuf.ByteString getDatabaseBytes() { } } /** - * - * *
      * Cloud Spanner database in the form `project/instance/database'
      * 
* * string database = 1; - * * @param value The database to set. * @return This builder for chaining. */ - public Builder setDatabase(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabase( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } database_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Cloud Spanner database in the form `project/instance/database'
      * 
* * string database = 1; - * * @return This builder for chaining. */ public Builder clearDatabase() { @@ -724,21 +667,17 @@ public Builder clearDatabase() { 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(); - } + public Builder setDatabaseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); database_ = value; bitField0_ |= 0x00000001; @@ -746,16 +685,13 @@ public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { 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 @@ -763,33 +699,27 @@ 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; bitField0_ |= 0x00000002; 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() { @@ -799,10 +729,8 @@ public Builder clearUseParallelism() { return this; } - private boolean useServerlessAnalytics_; + private boolean useServerlessAnalytics_ ; /** - * - * *
      * If the serverless analytics service should be used to read data from Cloud
      * Spanner.
@@ -810,7 +738,6 @@ public Builder clearUseParallelism() {
      * 
* * bool use_serverless_analytics = 3; - * * @return The useServerlessAnalytics. */ @java.lang.Override @@ -818,8 +745,6 @@ public boolean getUseServerlessAnalytics() { return useServerlessAnalytics_; } /** - * - * *
      * If the serverless analytics service should be used to read data from Cloud
      * Spanner.
@@ -827,20 +752,17 @@ public boolean getUseServerlessAnalytics() {
      * 
* * bool use_serverless_analytics = 3; - * * @param value The useServerlessAnalytics to set. * @return This builder for chaining. */ public Builder setUseServerlessAnalytics(boolean value) { - + useServerlessAnalytics_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * If the serverless analytics service should be used to read data from Cloud
      * Spanner.
@@ -848,7 +770,6 @@ public Builder setUseServerlessAnalytics(boolean value) {
      * 
* * bool use_serverless_analytics = 3; - * * @return This builder for chaining. */ public Builder clearUseServerlessAnalytics() { @@ -860,8 +781,6 @@ public Builder clearUseServerlessAnalytics() { private java.lang.Object databaseRole_ = ""; /** - * - * *
      * Optional. Cloud Spanner database role for fine-grained access control.
      * A database role is a collection of fine-grained access privileges. Example:
@@ -876,13 +795,13 @@ public Builder clearUseServerlessAnalytics() {
      * 
* * string database_role = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The databaseRole. */ public java.lang.String getDatabaseRole() { java.lang.Object ref = databaseRole_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseRole_ = s; return s; @@ -891,8 +810,6 @@ public java.lang.String getDatabaseRole() { } } /** - * - * *
      * Optional. Cloud Spanner database role for fine-grained access control.
      * A database role is a collection of fine-grained access privileges. Example:
@@ -907,14 +824,15 @@ public java.lang.String getDatabaseRole() {
      * 
* * string database_role = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for databaseRole. */ - public com.google.protobuf.ByteString getDatabaseRoleBytes() { + public com.google.protobuf.ByteString + getDatabaseRoleBytes() { java.lang.Object ref = databaseRole_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseRole_ = b; return b; } else { @@ -922,8 +840,6 @@ public com.google.protobuf.ByteString getDatabaseRoleBytes() { } } /** - * - * *
      * Optional. Cloud Spanner database role for fine-grained access control.
      * A database role is a collection of fine-grained access privileges. Example:
@@ -938,22 +854,18 @@ public com.google.protobuf.ByteString getDatabaseRoleBytes() {
      * 
* * string database_role = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The databaseRole to set. * @return This builder for chaining. */ - public Builder setDatabaseRole(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseRole( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } databaseRole_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. Cloud Spanner database role for fine-grained access control.
      * A database role is a collection of fine-grained access privileges. Example:
@@ -968,7 +880,6 @@ public Builder setDatabaseRole(java.lang.String value) {
      * 
* * string database_role = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDatabaseRole() { @@ -978,8 +889,6 @@ public Builder clearDatabaseRole() { return this; } /** - * - * *
      * Optional. Cloud Spanner database role for fine-grained access control.
      * A database role is a collection of fine-grained access privileges. Example:
@@ -994,23 +903,21 @@ public Builder clearDatabaseRole() {
      * 
* * string database_role = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for databaseRole to set. * @return This builder for chaining. */ - public Builder setDatabaseRoleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); databaseRole_ = value; bitField0_ |= 0x00000008; 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); } @@ -1020,43 +927,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1068,8 +973,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties - getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java similarity index 78% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java index 32240402dcec..c9f4279c4d45 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java +++ b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java @@ -1,69 +1,43 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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(); /** - * - * *
    * If the serverless analytics service should be used to read data from Cloud
    * Spanner.
@@ -71,14 +45,11 @@ public interface CloudSpannerPropertiesOrBuilder
    * 
* * bool use_serverless_analytics = 3; - * * @return The useServerlessAnalytics. */ boolean getUseServerlessAnalytics(); /** - * - * *
    * Optional. Cloud Spanner database role for fine-grained access control.
    * A database role is a collection of fine-grained access privileges. Example:
@@ -93,13 +64,10 @@ public interface CloudSpannerPropertiesOrBuilder
    * 
* * string database_role = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The databaseRole. */ java.lang.String getDatabaseRole(); /** - * - * *
    * Optional. Cloud Spanner database role for fine-grained access control.
    * A database role is a collection of fine-grained access privileges. Example:
@@ -114,8 +82,8 @@ public interface CloudSpannerPropertiesOrBuilder
    * 
* * string database_role = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for databaseRole. */ - com.google.protobuf.ByteString getDatabaseRoleBytes(); + com.google.protobuf.ByteString + getDatabaseRoleBytes(); } diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredential.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredential.java similarity index 67% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredential.java rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredential.java index e7cdfcb161bf..0479489dbcba 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredential.java +++ b/owl-bot-staging/java-bigqueryconnection/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,43 +26,38 @@ 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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object username_ = ""; /** - * - * *
    * The username for the credential.
    * 
* * string username = 1; - * * @return The username. */ @java.lang.Override @@ -89,29 +66,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 { @@ -120,18 +97,14 @@ public com.google.protobuf.ByteString getUsernameBytes() { } public static final int PASSWORD_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object password_ = ""; /** - * - * *
    * The password for the credential.
    * 
* * string password = 2; - * * @return The password. */ @java.lang.Override @@ -140,29 +113,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 { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getPasswordBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -213,16 +186,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -244,136 +218,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -384,9 +351,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 @@ -405,11 +372,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.connection.v1.CloudSqlCredential result = new com.google.cloud.bigquery.connection.v1.CloudSqlCredential(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -428,39 +392,38 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.CloudSqlCrede 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; @@ -468,8 +431,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_; bitField0_ |= 0x00000001; @@ -506,25 +468,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - password_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -534,25 +493,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -561,21 +517,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 { @@ -583,35 +538,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsername( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } username_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The username for the credential.
      * 
* * string username = 1; - * * @return This builder for chaining. */ public Builder clearUsername() { @@ -621,21 +569,17 @@ public Builder clearUsername() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000001; @@ -645,20 +589,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; @@ -667,21 +609,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 { @@ -689,35 +630,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPassword( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } password_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The password for the credential.
      * 
* * string password = 2; - * * @return This builder for chaining. */ public Builder clearPassword() { @@ -727,30 +661,26 @@ public Builder clearPassword() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000002; 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); } @@ -760,12 +690,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(); } @@ -774,27 +704,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -809,4 +739,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.connection.v1.CloudSqlCredential getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredentialOrBuilder.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredentialOrBuilder.java similarity index 54% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredentialOrBuilder.java rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredentialOrBuilder.java index 4ffc1de6b2d9..2285698dcb1f 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredentialOrBuilder.java +++ b/owl-bot-staging/java-bigqueryconnection/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/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.java similarity index 67% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.java rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.java index 5c43c3c3feaf..da1d7955fd57 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.java +++ b/owl-bot-staging/java-bigqueryconnection/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_ = ""; @@ -46,43 +28,39 @@ 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; } - - 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.
      * 
@@ -91,8 +69,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ DATABASE_TYPE_UNSPECIFIED(0), /** - * - * *
      * Cloud SQL for PostgreSQL.
      * 
@@ -101,8 +77,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ POSTGRES(1), /** - * - * *
      * Cloud SQL for MySQL.
      * 
@@ -114,8 +88,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified database type.
      * 
@@ -124,8 +96,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DATABASE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Cloud SQL for PostgreSQL.
      * 
@@ -134,8 +104,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int POSTGRES_VALUE = 1; /** - * - * *
      * Cloud SQL for MySQL.
      * 
@@ -144,6 +112,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( @@ -168,51 +137,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; @@ -230,18 +197,14 @@ private DatabaseType(int value) { } public static final int INSTANCE_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") 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 @@ -250,29 +213,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 { @@ -281,18 +244,14 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } public static final int DATABASE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object database_ = ""; /** - * - * *
    * Database name.
    * 
* * string database = 2; - * * @return The database. */ @java.lang.Override @@ -301,29 +260,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 { @@ -334,53 +293,37 @@ public com.google.protobuf.ByteString getDatabaseBytes() { public static final int TYPE_FIELD_NUMBER = 3; 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; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType getType() { - com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType result = - com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.forNumber(type_); - return result == null - ? com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType getType() { + com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType result = com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.forNumber(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 @@ -388,50 +331,33 @@ 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() { - return credential_ == null - ? com.google.cloud.bigquery.connection.v1.CloudSqlCredential.getDefaultInstance() - : credential_; + public com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder getCredentialOrBuilder() { + return credential_ == null ? com.google.cloud.bigquery.connection.v1.CloudSqlCredential.getDefaultInstance() : credential_; } public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object serviceAccountId_ = ""; /** - * - * *
    * Output only. The account ID of the service used for the purpose of this
    * connection.
@@ -441,7 +367,6 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlCredential getCredential(
    * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAccountId. */ @java.lang.Override @@ -450,15 +375,14 @@ public java.lang.String getServiceAccountId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountId_ = s; return s; } } /** - * - * *
    * Output only. The account ID of the service used for the purpose of this
    * connection.
@@ -468,15 +392,16 @@ public java.lang.String getServiceAccountId() {
    * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAccountId. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountIdBytes() { + public com.google.protobuf.ByteString + getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountId_ = b; return b; } else { @@ -485,7 +410,6 @@ public com.google.protobuf.ByteString getServiceAccountIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -497,17 +421,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, database_); } - if (type_ - != com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType - .DATABASE_TYPE_UNSPECIFIED - .getNumber()) { + if (type_ != com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.DATABASE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(3, type_); } if (credential_ != null) { @@ -531,14 +453,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, database_); } - if (type_ - != com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType - .DATABASE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_); + if (type_ != com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.DATABASE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, type_); } if (credential_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCredential()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCredential()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, serviceAccountId_); @@ -551,22 +472,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.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 (!getServiceAccountId().equals(other.getServiceAccountId())) return false; + if (!getServiceAccountId() + .equals(other.getServiceAccountId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -596,136 +520,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -743,9 +660,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 @@ -764,11 +681,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.connection.v1.CloudSqlProperties result = new com.google.cloud.bigquery.connection.v1.CloudSqlProperties(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -785,7 +699,9 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.CloudSqlPrope result.type_ = type_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.credential_ = credentialBuilder_ == null ? credential_ : credentialBuilder_.build(); + result.credential_ = credentialBuilder_ == null + ? credential_ + : credentialBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.serviceAccountId_ = serviceAccountId_; @@ -796,39 +712,38 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.CloudSqlPrope 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; @@ -836,8 +751,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_; bitField0_ |= 0x00000001; @@ -885,43 +799,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - instanceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - database_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - type_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage(getCredentialFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - serviceAccountId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + database_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + type_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getCredentialFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + serviceAccountId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -931,25 +841,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -958,21 +865,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 { @@ -980,35 +886,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInstanceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } instanceId_ = value; bitField0_ |= 0x00000001; 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() { @@ -1018,21 +917,17 @@ public Builder clearInstanceId() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceId_ = value; bitField0_ |= 0x00000001; @@ -1042,20 +937,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; @@ -1064,21 +957,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 { @@ -1086,35 +978,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabase( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } database_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Database name.
      * 
* * string database = 2; - * * @return This builder for chaining. */ public Builder clearDatabase() { @@ -1124,21 +1009,17 @@ public Builder clearDatabase() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); database_ = value; bitField0_ |= 0x00000002; @@ -1148,29 +1029,22 @@ 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. */ @@ -1181,38 +1055,28 @@ public Builder setTypeValue(int value) { 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() { - com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType result = - com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.forNumber(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.forNumber(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(); } @@ -1222,14 +1086,11 @@ public Builder setType( 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() { @@ -1241,58 +1102,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 ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * 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) { @@ -1308,15 +1150,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) { @@ -1330,24 +1168,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 (((bitField0_ & 0x00000008) != 0) - && credential_ != null - && credential_ - != com.google.cloud.bigquery.connection.v1.CloudSqlCredential - .getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + credential_ != null && + credential_ != com.google.cloud.bigquery.connection.v1.CloudSqlCredential.getDefaultInstance()) { getCredentialBuilder().mergeFrom(value); } else { credential_ = value; @@ -1360,15 +1191,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() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1381,66 +1208,48 @@ 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() { bitField0_ |= 0x00000008; 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_; @@ -1448,8 +1257,6 @@ public Builder clearCredential() { private java.lang.Object serviceAccountId_ = ""; /** - * - * *
      * Output only. The account ID of the service used for the purpose of this
      * connection.
@@ -1459,13 +1266,13 @@ public Builder clearCredential() {
      * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAccountId. */ public java.lang.String getServiceAccountId() { java.lang.Object ref = serviceAccountId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountId_ = s; return s; @@ -1474,8 +1281,6 @@ public java.lang.String getServiceAccountId() { } } /** - * - * *
      * Output only. The account ID of the service used for the purpose of this
      * connection.
@@ -1485,14 +1290,15 @@ public java.lang.String getServiceAccountId() {
      * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAccountId. */ - public com.google.protobuf.ByteString getServiceAccountIdBytes() { + public com.google.protobuf.ByteString + getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountId_ = b; return b; } else { @@ -1500,8 +1306,6 @@ public com.google.protobuf.ByteString getServiceAccountIdBytes() { } } /** - * - * *
      * Output only. The account ID of the service used for the purpose of this
      * connection.
@@ -1511,22 +1315,18 @@ public com.google.protobuf.ByteString getServiceAccountIdBytes() {
      * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The serviceAccountId to set. * @return This builder for chaining. */ - public Builder setServiceAccountId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccountId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } serviceAccountId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Output only. The account ID of the service used for the purpose of this
      * connection.
@@ -1536,7 +1336,6 @@ public Builder setServiceAccountId(java.lang.String value) {
      * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearServiceAccountId() { @@ -1546,8 +1345,6 @@ public Builder clearServiceAccountId() { return this; } /** - * - * *
      * Output only. The account ID of the service used for the purpose of this
      * connection.
@@ -1557,23 +1354,21 @@ public Builder clearServiceAccountId() {
      * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for serviceAccountId to set. * @return This builder for chaining. */ - public Builder setServiceAccountIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccountIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceAccountId_ = value; bitField0_ |= 0x00000010; 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); } @@ -1583,12 +1378,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(); } @@ -1597,27 +1392,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1632,4 +1427,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.connection.v1.CloudSqlProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java similarity index 68% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java index 1894dc57339d..f149fb87f9b0 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java +++ b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java @@ -1,147 +1,99 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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(); /** - * - * *
    * Output only. The account ID of the service used for the purpose of this
    * connection.
@@ -151,13 +103,10 @@ public interface CloudSqlPropertiesOrBuilder
    * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAccountId. */ java.lang.String getServiceAccountId(); /** - * - * *
    * Output only. The account ID of the service used for the purpose of this
    * connection.
@@ -167,8 +116,8 @@ public interface CloudSqlPropertiesOrBuilder
    * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAccountId. */ - com.google.protobuf.ByteString getServiceAccountIdBytes(); + com.google.protobuf.ByteString + getServiceAccountIdBytes(); } diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java similarity index 67% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java index 809e23224402..e6d4c9ed5ab9 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java +++ b/owl-bot-staging/java-bigqueryconnection/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,45 +28,42 @@ 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;
   }
-
-  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),
     AZURE(11),
     CLOUD_SPANNER(21),
     CLOUD_RESOURCE(22),
+    SPARK(23),
     PROPERTIES_NOT_SET(0);
     private final int value;
-
     private PropertiesCase(int value) {
       this.value = value;
     }
@@ -100,46 +79,37 @@ public static PropertiesCase valueOf(int value) {
 
     public static PropertiesCase forNumber(int value) {
       switch (value) {
-        case 4:
-          return CLOUD_SQL;
-        case 8:
-          return AWS;
-        case 11:
-          return AZURE;
-        case 21:
-          return CLOUD_SPANNER;
-        case 22:
-          return CLOUD_RESOURCE;
-        case 0:
-          return PROPERTIES_NOT_SET;
-        default:
-          return null;
+        case 4: return CLOUD_SQL;
+        case 8: return AWS;
+        case 11: return AZURE;
+        case 21: return CLOUD_SPANNER;
+        case 22: return CLOUD_RESOURCE;
+        case 23: return SPARK;
+        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;
-
   @SuppressWarnings("serial")
   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 @@ -148,30 +118,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 { @@ -180,18 +150,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FRIENDLY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object friendlyName_ = ""; /** - * - * *
    * User provided display name for the connection.
    * 
* * string friendly_name = 2; - * * @return The friendlyName. */ @java.lang.Override @@ -200,29 +166,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 { @@ -231,18 +197,14 @@ public com.google.protobuf.ByteString getFriendlyNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * User provided description.
    * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -251,29 +213,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 { @@ -283,14 +245,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 @@ -298,26 +257,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.
    * 
@@ -325,24 +279,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 @@ -350,26 +300,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.
    * 
@@ -379,21 +324,18 @@ public com.google.cloud.bigquery.connection.v1.AwsProperties getAws() { @java.lang.Override public com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder getAwsOrBuilder() { if (propertiesCase_ == 8) { - return (com.google.cloud.bigquery.connection.v1.AwsProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.AwsProperties) properties_; } return com.google.cloud.bigquery.connection.v1.AwsProperties.getDefaultInstance(); } public static final int AZURE_FIELD_NUMBER = 11; /** - * - * *
    * Azure properties.
    * 
* * .google.cloud.bigquery.connection.v1.AzureProperties azure = 11; - * * @return Whether the azure field is set. */ @java.lang.Override @@ -401,26 +343,21 @@ public boolean hasAzure() { return propertiesCase_ == 11; } /** - * - * *
    * Azure properties.
    * 
* * .google.cloud.bigquery.connection.v1.AzureProperties azure = 11; - * * @return The azure. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.AzureProperties getAzure() { if (propertiesCase_ == 11) { - return (com.google.cloud.bigquery.connection.v1.AzureProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.AzureProperties) properties_; } return com.google.cloud.bigquery.connection.v1.AzureProperties.getDefaultInstance(); } /** - * - * *
    * Azure properties.
    * 
@@ -430,21 +367,18 @@ public com.google.cloud.bigquery.connection.v1.AzureProperties getAzure() { @java.lang.Override public com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder getAzureOrBuilder() { if (propertiesCase_ == 11) { - return (com.google.cloud.bigquery.connection.v1.AzureProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.AzureProperties) properties_; } return com.google.cloud.bigquery.connection.v1.AzureProperties.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 @@ -452,26 +386,21 @@ public boolean hasCloudSpanner() { return propertiesCase_ == 21; } /** - * - * *
    * Cloud Spanner properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; - * * @return The cloudSpanner. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties getCloudSpanner() { if (propertiesCase_ == 21) { - return (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_; } return com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.getDefaultInstance(); } /** - * - * *
    * Cloud Spanner properties.
    * 
@@ -479,24 +408,20 @@ public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties getCloudSp * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder - getCloudSpannerOrBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder getCloudSpannerOrBuilder() { if (propertiesCase_ == 21) { - return (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_; } return com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.getDefaultInstance(); } public static final int CLOUD_RESOURCE_FIELD_NUMBER = 22; /** - * - * *
    * Cloud Resource properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; - * * @return Whether the cloudResource field is set. */ @java.lang.Override @@ -504,26 +429,21 @@ public boolean hasCloudResource() { return propertiesCase_ == 22; } /** - * - * *
    * Cloud Resource properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; - * * @return The cloudResource. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.CloudResourceProperties getCloudResource() { if (propertiesCase_ == 22) { - return (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_; } return com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance(); } /** - * - * *
    * Cloud Resource properties.
    * 
@@ -531,25 +451,64 @@ public com.google.cloud.bigquery.connection.v1.CloudResourceProperties getCloudR * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder - getCloudResourceOrBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder getCloudResourceOrBuilder() { if (propertiesCase_ == 22) { - return (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_; } return com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance(); } - public static final int CREATION_TIME_FIELD_NUMBER = 5; - private long creationTime_ = 0L; + public static final int SPARK_FIELD_NUMBER = 23; /** + *
+   * Spark properties.
+   * 
* + * .google.cloud.bigquery.connection.v1.SparkProperties spark = 23; + * @return Whether the spark field is set. + */ + @java.lang.Override + public boolean hasSpark() { + return propertiesCase_ == 23; + } + /** + *
+   * Spark properties.
+   * 
* + * .google.cloud.bigquery.connection.v1.SparkProperties spark = 23; + * @return The spark. + */ + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.SparkProperties getSpark() { + if (propertiesCase_ == 23) { + return (com.google.cloud.bigquery.connection.v1.SparkProperties) properties_; + } + return com.google.cloud.bigquery.connection.v1.SparkProperties.getDefaultInstance(); + } + /** + *
+   * Spark properties.
+   * 
+ * + * .google.cloud.bigquery.connection.v1.SparkProperties spark = 23; + */ + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.SparkPropertiesOrBuilder getSparkOrBuilder() { + if (propertiesCase_ == 23) { + return (com.google.cloud.bigquery.connection.v1.SparkProperties) properties_; + } + return com.google.cloud.bigquery.connection.v1.SparkProperties.getDefaultInstance(); + } + + public static final int CREATION_TIME_FIELD_NUMBER = 5; + private long creationTime_ = 0L; + /** *
    * Output only. The creation timestamp of the connection.
    * 
* * int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The creationTime. */ @java.lang.Override @@ -560,14 +519,11 @@ public long getCreationTime() { public static final int LAST_MODIFIED_TIME_FIELD_NUMBER = 6; private long lastModifiedTime_ = 0L; /** - * - * *
    * 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 @@ -578,14 +534,11 @@ public long getLastModifiedTime() { public static final int HAS_CREDENTIAL_FIELD_NUMBER = 7; private boolean hasCredential_ = false; /** - * - * *
    * 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 @@ -594,7 +547,6 @@ public boolean getHasCredential() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -606,7 +558,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -617,8 +570,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_); @@ -633,16 +585,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(8, (com.google.cloud.bigquery.connection.v1.AwsProperties) properties_); } if (propertiesCase_ == 11) { - output.writeMessage( - 11, (com.google.cloud.bigquery.connection.v1.AzureProperties) properties_); + output.writeMessage(11, (com.google.cloud.bigquery.connection.v1.AzureProperties) properties_); } if (propertiesCase_ == 21) { - output.writeMessage( - 21, (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_); + output.writeMessage(21, (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_); } if (propertiesCase_ == 22) { - output.writeMessage( - 22, (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_); + output.writeMessage(22, (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_); + } + if (propertiesCase_ == 23) { + output.writeMessage(23, (com.google.cloud.bigquery.connection.v1.SparkProperties) properties_); } getUnknownFields().writeTo(output); } @@ -663,38 +615,40 @@ 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_ == 11) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, (com.google.cloud.bigquery.connection.v1.AzureProperties) properties_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, (com.google.cloud.bigquery.connection.v1.AzureProperties) properties_); } if (propertiesCase_ == 21) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 21, (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_); } if (propertiesCase_ == 22) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 22, (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_); + } + if (propertiesCase_ == 23) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(23, (com.google.cloud.bigquery.connection.v1.SparkProperties) properties_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -704,36 +658,50 @@ 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 11: - if (!getAzure().equals(other.getAzure())) return false; + if (!getAzure() + .equals(other.getAzure())) return false; break; case 21: - if (!getCloudSpanner().equals(other.getCloudSpanner())) return false; + if (!getCloudSpanner() + .equals(other.getCloudSpanner())) return false; break; case 22: - if (!getCloudResource().equals(other.getCloudResource())) return false; + if (!getCloudResource() + .equals(other.getCloudResource())) return false; + break; + case 23: + if (!getSpark() + .equals(other.getSpark())) return false; break; case 0: default: @@ -756,11 +724,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; @@ -782,6 +753,10 @@ public int hashCode() { hash = (37 * hash) + CLOUD_RESOURCE_FIELD_NUMBER; hash = (53 * hash) + getCloudResource().hashCode(); break; + case 23: + hash = (37 * hash) + SPARK_FIELD_NUMBER; + hash = (53 * hash) + getSpark().hashCode(); + break; case 0: default: } @@ -791,103 +766,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.
@@ -895,32 +863,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -943,6 +912,9 @@ public Builder clear() {
       if (cloudResourceBuilder_ != null) {
         cloudResourceBuilder_.clear();
       }
+      if (sparkBuilder_ != null) {
+        sparkBuilder_.clear();
+      }
       creationTime_ = 0L;
       lastModifiedTime_ = 0L;
       hasCredential_ = false;
@@ -952,9 +924,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
@@ -973,11 +945,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.bigquery.connection.v1.Connection result = new com.google.cloud.bigquery.connection.v1.Connection(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -994,13 +963,13 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.Connection re
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.description_ = description_;
       }
-      if (((from_bitField0_ & 0x00000100) != 0)) {
+      if (((from_bitField0_ & 0x00000200) != 0)) {
         result.creationTime_ = creationTime_;
       }
-      if (((from_bitField0_ & 0x00000200) != 0)) {
+      if (((from_bitField0_ & 0x00000400) != 0)) {
         result.lastModifiedTime_ = lastModifiedTime_;
       }
-      if (((from_bitField0_ & 0x00000400) != 0)) {
+      if (((from_bitField0_ & 0x00000800) != 0)) {
         result.hasCredential_ = hasCredential_;
       }
     }
@@ -1008,60 +977,68 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.Connection re
     private void buildPartialOneofs(com.google.cloud.bigquery.connection.v1.Connection result) {
       result.propertiesCase_ = propertiesCase_;
       result.properties_ = this.properties_;
-      if (propertiesCase_ == 4 && cloudSqlBuilder_ != null) {
+      if (propertiesCase_ == 4 &&
+          cloudSqlBuilder_ != null) {
         result.properties_ = cloudSqlBuilder_.build();
       }
-      if (propertiesCase_ == 8 && awsBuilder_ != null) {
+      if (propertiesCase_ == 8 &&
+          awsBuilder_ != null) {
         result.properties_ = awsBuilder_.build();
       }
-      if (propertiesCase_ == 11 && azureBuilder_ != null) {
+      if (propertiesCase_ == 11 &&
+          azureBuilder_ != null) {
         result.properties_ = azureBuilder_.build();
       }
-      if (propertiesCase_ == 21 && cloudSpannerBuilder_ != null) {
+      if (propertiesCase_ == 21 &&
+          cloudSpannerBuilder_ != null) {
         result.properties_ = cloudSpannerBuilder_.build();
       }
-      if (propertiesCase_ == 22 && cloudResourceBuilder_ != null) {
+      if (propertiesCase_ == 22 &&
+          cloudResourceBuilder_ != null) {
         result.properties_ = cloudResourceBuilder_.build();
       }
+      if (propertiesCase_ == 23 &&
+          sparkBuilder_ != null) {
+        result.properties_ = sparkBuilder_.build();
+      }
     }
 
     @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) {
+        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;
@@ -1069,8 +1046,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_;
         bitField0_ |= 0x00000001;
@@ -1096,35 +1072,33 @@ 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 AZURE:
-          {
-            mergeAzure(other.getAzure());
-            break;
-          }
-        case CLOUD_SPANNER:
-          {
-            mergeCloudSpanner(other.getCloudSpanner());
-            break;
-          }
-        case CLOUD_RESOURCE:
-          {
-            mergeCloudResource(other.getCloudResource());
-            break;
-          }
-        case PROPERTIES_NOT_SET:
-          {
-            break;
-          }
+        case CLOUD_SQL: {
+          mergeCloudSql(other.getCloudSql());
+          break;
+        }
+        case AWS: {
+          mergeAws(other.getAws());
+          break;
+        }
+        case AZURE: {
+          mergeAzure(other.getAzure());
+          break;
+        }
+        case CLOUD_SPANNER: {
+          mergeCloudSpanner(other.getCloudSpanner());
+          break;
+        }
+        case CLOUD_RESOURCE: {
+          mergeCloudResource(other.getCloudResource());
+          break;
+        }
+        case SPARK: {
+          mergeSpark(other.getSpark());
+          break;
+        }
+        case PROPERTIES_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1152,79 +1126,84 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                friendlyName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                description_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(getCloudSqlFieldBuilder().getBuilder(), extensionRegistry);
-                propertiesCase_ = 4;
-                break;
-              } // case 34
-            case 40:
-              {
-                creationTime_ = input.readInt64();
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 40
-            case 48:
-              {
-                lastModifiedTime_ = input.readInt64();
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 48
-            case 56:
-              {
-                hasCredential_ = input.readBool();
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 56
-            case 66:
-              {
-                input.readMessage(getAwsFieldBuilder().getBuilder(), extensionRegistry);
-                propertiesCase_ = 8;
-                break;
-              } // case 66
-            case 90:
-              {
-                input.readMessage(getAzureFieldBuilder().getBuilder(), extensionRegistry);
-                propertiesCase_ = 11;
-                break;
-              } // case 90
-            case 170:
-              {
-                input.readMessage(getCloudSpannerFieldBuilder().getBuilder(), extensionRegistry);
-                propertiesCase_ = 21;
-                break;
-              } // case 170
-            case 178:
-              {
-                input.readMessage(getCloudResourceFieldBuilder().getBuilder(), extensionRegistry);
-                propertiesCase_ = 22;
-                break;
-              } // case 178
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              friendlyName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              description_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getCloudSqlFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              propertiesCase_ = 4;
+              break;
+            } // case 34
+            case 40: {
+              creationTime_ = input.readInt64();
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 40
+            case 48: {
+              lastModifiedTime_ = input.readInt64();
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 48
+            case 56: {
+              hasCredential_ = input.readBool();
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 56
+            case 66: {
+              input.readMessage(
+                  getAwsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              propertiesCase_ = 8;
+              break;
+            } // case 66
+            case 90: {
+              input.readMessage(
+                  getAzureFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              propertiesCase_ = 11;
+              break;
+            } // case 90
+            case 170: {
+              input.readMessage(
+                  getCloudSpannerFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              propertiesCase_ = 21;
+              break;
+            } // case 170
+            case 178: {
+              input.readMessage(
+                  getCloudResourceFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              propertiesCase_ = 22;
+              break;
+            } // case 178
+            case 186: {
+              input.readMessage(
+                  getSparkFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              propertiesCase_ = 23;
+              break;
+            } // case 186
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1234,12 +1213,12 @@ public Builder mergeFrom(
       } // finally
       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() {
@@ -1253,21 +1232,19 @@ public Builder clearProperties() {
 
     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; @@ -1276,22 +1253,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 { @@ -1299,37 +1275,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -1339,22 +1308,18 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1364,20 +1329,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; @@ -1386,21 +1349,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 { @@ -1408,35 +1370,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFriendlyName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } friendlyName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * User provided display name for the connection.
      * 
* * string friendly_name = 2; - * * @return This builder for chaining. */ public Builder clearFriendlyName() { @@ -1446,21 +1401,17 @@ public Builder clearFriendlyName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFriendlyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); friendlyName_ = value; bitField0_ |= 0x00000002; @@ -1470,20 +1421,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; @@ -1492,21 +1441,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 { @@ -1514,35 +1462,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * User provided description.
      * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1552,21 +1493,17 @@ public Builder clearDescription() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000004; @@ -1575,19 +1512,13 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { } 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 @@ -1595,14 +1526,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 @@ -1620,8 +1548,6 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlProperties getCloudSql() } } /** - * - * *
      * Cloud SQL properties.
      * 
@@ -1642,8 +1568,6 @@ public Builder setCloudSql(com.google.cloud.bigquery.connection.v1.CloudSqlPrope return this; } /** - * - * *
      * Cloud SQL properties.
      * 
@@ -1662,8 +1586,6 @@ public Builder setCloudSql( return this; } /** - * - * *
      * Cloud SQL properties.
      * 
@@ -1672,15 +1594,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; } @@ -1696,8 +1613,6 @@ public Builder mergeCloudSql(com.google.cloud.bigquery.connection.v1.CloudSqlPro return this; } /** - * - * *
      * Cloud SQL properties.
      * 
@@ -1721,8 +1636,6 @@ public Builder clearCloudSql() { return this; } /** - * - * *
      * Cloud SQL properties.
      * 
@@ -1733,8 +1646,6 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder getClo return getCloudSqlFieldBuilder().getBuilder(); } /** - * - * *
      * Cloud SQL properties.
      * 
@@ -1742,8 +1653,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 { @@ -1754,8 +1664,6 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder getClo } } /** - * - * *
      * Cloud SQL properties.
      * 
@@ -1763,20 +1671,14 @@ 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()); @@ -1788,19 +1690,13 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder getClo } 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 @@ -1808,14 +1704,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 @@ -1833,8 +1726,6 @@ public com.google.cloud.bigquery.connection.v1.AwsProperties getAws() { } } /** - * - * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1855,8 +1746,6 @@ public Builder setAws(com.google.cloud.bigquery.connection.v1.AwsProperties valu return this; } /** - * - * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1875,8 +1764,6 @@ public Builder setAws( return this; } /** - * - * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1885,14 +1772,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; } @@ -1908,8 +1791,6 @@ public Builder mergeAws(com.google.cloud.bigquery.connection.v1.AwsProperties va return this; } /** - * - * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1933,8 +1814,6 @@ public Builder clearAws() { return this; } /** - * - * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1945,8 +1824,6 @@ public com.google.cloud.bigquery.connection.v1.AwsProperties.Builder getAwsBuild return getAwsFieldBuilder().getBuilder(); } /** - * - * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1965,8 +1842,6 @@ public com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder getAwsOrBu } } /** - * - * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1974,19 +1849,14 @@ 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()); @@ -1998,19 +1868,13 @@ public com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder getAwsOrBu } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.AzureProperties, - com.google.cloud.bigquery.connection.v1.AzureProperties.Builder, - com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder> - azureBuilder_; + com.google.cloud.bigquery.connection.v1.AzureProperties, com.google.cloud.bigquery.connection.v1.AzureProperties.Builder, com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder> azureBuilder_; /** - * - * *
      * Azure properties.
      * 
* * .google.cloud.bigquery.connection.v1.AzureProperties azure = 11; - * * @return Whether the azure field is set. */ @java.lang.Override @@ -2018,14 +1882,11 @@ public boolean hasAzure() { return propertiesCase_ == 11; } /** - * - * *
      * Azure properties.
      * 
* * .google.cloud.bigquery.connection.v1.AzureProperties azure = 11; - * * @return The azure. */ @java.lang.Override @@ -2043,8 +1904,6 @@ public com.google.cloud.bigquery.connection.v1.AzureProperties getAzure() { } } /** - * - * *
      * Azure properties.
      * 
@@ -2065,8 +1924,6 @@ public Builder setAzure(com.google.cloud.bigquery.connection.v1.AzureProperties return this; } /** - * - * *
      * Azure properties.
      * 
@@ -2085,8 +1942,6 @@ public Builder setAzure( return this; } /** - * - * *
      * Azure properties.
      * 
@@ -2095,14 +1950,10 @@ public Builder setAzure( */ public Builder mergeAzure(com.google.cloud.bigquery.connection.v1.AzureProperties value) { if (azureBuilder_ == null) { - if (propertiesCase_ == 11 - && properties_ - != com.google.cloud.bigquery.connection.v1.AzureProperties.getDefaultInstance()) { - properties_ = - com.google.cloud.bigquery.connection.v1.AzureProperties.newBuilder( - (com.google.cloud.bigquery.connection.v1.AzureProperties) properties_) - .mergeFrom(value) - .buildPartial(); + if (propertiesCase_ == 11 && + properties_ != com.google.cloud.bigquery.connection.v1.AzureProperties.getDefaultInstance()) { + properties_ = com.google.cloud.bigquery.connection.v1.AzureProperties.newBuilder((com.google.cloud.bigquery.connection.v1.AzureProperties) properties_) + .mergeFrom(value).buildPartial(); } else { properties_ = value; } @@ -2118,8 +1969,6 @@ public Builder mergeAzure(com.google.cloud.bigquery.connection.v1.AzurePropertie return this; } /** - * - * *
      * Azure properties.
      * 
@@ -2143,8 +1992,6 @@ public Builder clearAzure() { return this; } /** - * - * *
      * Azure properties.
      * 
@@ -2155,8 +2002,6 @@ public com.google.cloud.bigquery.connection.v1.AzureProperties.Builder getAzureB return getAzureFieldBuilder().getBuilder(); } /** - * - * *
      * Azure properties.
      * 
@@ -2175,8 +2020,6 @@ public com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder getAzure } } /** - * - * *
      * Azure properties.
      * 
@@ -2184,20 +2027,14 @@ public com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder getAzure * .google.cloud.bigquery.connection.v1.AzureProperties azure = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.AzureProperties, - com.google.cloud.bigquery.connection.v1.AzureProperties.Builder, - com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder> + com.google.cloud.bigquery.connection.v1.AzureProperties, com.google.cloud.bigquery.connection.v1.AzureProperties.Builder, com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder> getAzureFieldBuilder() { if (azureBuilder_ == null) { if (!(propertiesCase_ == 11)) { - properties_ = - com.google.cloud.bigquery.connection.v1.AzureProperties.getDefaultInstance(); + properties_ = com.google.cloud.bigquery.connection.v1.AzureProperties.getDefaultInstance(); } - azureBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.AzureProperties, - com.google.cloud.bigquery.connection.v1.AzureProperties.Builder, - com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder>( + azureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.AzureProperties, com.google.cloud.bigquery.connection.v1.AzureProperties.Builder, com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder>( (com.google.cloud.bigquery.connection.v1.AzureProperties) properties_, getParentForChildren(), isClean()); @@ -2209,19 +2046,13 @@ public com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder getAzure } 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 @@ -2229,14 +2060,11 @@ public boolean hasCloudSpanner() { return propertiesCase_ == 21; } /** - * - * *
      * Cloud Spanner properties.
      * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; - * * @return The cloudSpanner. */ @java.lang.Override @@ -2254,16 +2082,13 @@ public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties getCloudSp } } /** - * - * *
      * Cloud Spanner properties.
      * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; */ - public Builder setCloudSpanner( - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties value) { + public Builder setCloudSpanner(com.google.cloud.bigquery.connection.v1.CloudSpannerProperties value) { if (cloudSpannerBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2277,8 +2102,6 @@ public Builder setCloudSpanner( return this; } /** - * - * *
      * Cloud Spanner properties.
      * 
@@ -2297,26 +2120,18 @@ public Builder setCloudSpanner( return this; } /** - * - * *
      * Cloud Spanner properties.
      * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; */ - public Builder mergeCloudSpanner( - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties value) { + public Builder mergeCloudSpanner(com.google.cloud.bigquery.connection.v1.CloudSpannerProperties value) { if (cloudSpannerBuilder_ == null) { - if (propertiesCase_ == 21 - && properties_ - != com.google.cloud.bigquery.connection.v1.CloudSpannerProperties - .getDefaultInstance()) { - properties_ = - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.newBuilder( - (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_) - .mergeFrom(value) - .buildPartial(); + if (propertiesCase_ == 21 && + properties_ != com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.getDefaultInstance()) { + properties_ = com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.newBuilder((com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_) + .mergeFrom(value).buildPartial(); } else { properties_ = value; } @@ -2332,8 +2147,6 @@ public Builder mergeCloudSpanner( return this; } /** - * - * *
      * Cloud Spanner properties.
      * 
@@ -2357,21 +2170,16 @@ public Builder clearCloudSpanner() { return this; } /** - * - * *
      * Cloud Spanner properties.
      * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; */ - public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder - getCloudSpannerBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder getCloudSpannerBuilder() { return getCloudSpannerFieldBuilder().getBuilder(); } /** - * - * *
      * Cloud Spanner properties.
      * 
@@ -2379,8 +2187,7 @@ public Builder clearCloudSpanner() { * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder - getCloudSpannerOrBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder getCloudSpannerOrBuilder() { if ((propertiesCase_ == 21) && (cloudSpannerBuilder_ != null)) { return cloudSpannerBuilder_.getMessageOrBuilder(); } else { @@ -2391,8 +2198,6 @@ public Builder clearCloudSpanner() { } } /** - * - * *
      * Cloud Spanner properties.
      * 
@@ -2400,20 +2205,14 @@ public Builder clearCloudSpanner() { * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties, - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder, - com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder> + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties, com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder, com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder> getCloudSpannerFieldBuilder() { if (cloudSpannerBuilder_ == null) { if (!(propertiesCase_ == 21)) { - properties_ = - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.getDefaultInstance(); + properties_ = com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.getDefaultInstance(); } - cloudSpannerBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties, - com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder, - com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder>( + cloudSpannerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties, com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.Builder, com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder>( (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_, getParentForChildren(), isClean()); @@ -2425,20 +2224,13 @@ public Builder clearCloudSpanner() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudResourceProperties, - com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder, - com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder> - cloudResourceBuilder_; + com.google.cloud.bigquery.connection.v1.CloudResourceProperties, com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder, com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder> cloudResourceBuilder_; /** - * - * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; - * - * + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; * @return Whether the cloudResource field is set. */ @java.lang.Override @@ -2446,15 +2238,11 @@ public boolean hasCloudResource() { return propertiesCase_ == 22; } /** - * - * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; - * - * + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; * @return The cloudResource. */ @java.lang.Override @@ -2472,17 +2260,13 @@ public com.google.cloud.bigquery.connection.v1.CloudResourceProperties getCloudR } } /** - * - * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; - * + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; */ - public Builder setCloudResource( - com.google.cloud.bigquery.connection.v1.CloudResourceProperties value) { + public Builder setCloudResource(com.google.cloud.bigquery.connection.v1.CloudResourceProperties value) { if (cloudResourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2496,14 +2280,11 @@ public Builder setCloudResource( return this; } /** - * - * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; - * + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; */ public Builder setCloudResource( com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder builderForValue) { @@ -2517,27 +2298,18 @@ public Builder setCloudResource( return this; } /** - * - * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; - * + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; */ - public Builder mergeCloudResource( - com.google.cloud.bigquery.connection.v1.CloudResourceProperties value) { + public Builder mergeCloudResource(com.google.cloud.bigquery.connection.v1.CloudResourceProperties value) { if (cloudResourceBuilder_ == null) { - if (propertiesCase_ == 22 - && properties_ - != com.google.cloud.bigquery.connection.v1.CloudResourceProperties - .getDefaultInstance()) { - properties_ = - com.google.cloud.bigquery.connection.v1.CloudResourceProperties.newBuilder( - (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_) - .mergeFrom(value) - .buildPartial(); + if (propertiesCase_ == 22 && + properties_ != com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance()) { + properties_ = com.google.cloud.bigquery.connection.v1.CloudResourceProperties.newBuilder((com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_) + .mergeFrom(value).buildPartial(); } else { properties_ = value; } @@ -2553,14 +2325,11 @@ public Builder mergeCloudResource( return this; } /** - * - * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; - * + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; */ public Builder clearCloudResource() { if (cloudResourceBuilder_ == null) { @@ -2579,32 +2348,24 @@ public Builder clearCloudResource() { return this; } /** - * - * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; - * + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; */ - public com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder - getCloudResourceBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder getCloudResourceBuilder() { return getCloudResourceFieldBuilder().getBuilder(); } /** - * - * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; - * + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder - getCloudResourceOrBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder getCloudResourceOrBuilder() { if ((propertiesCase_ == 22) && (cloudResourceBuilder_ != null)) { return cloudResourceBuilder_.getMessageOrBuilder(); } else { @@ -2615,30 +2376,21 @@ public Builder clearCloudResource() { } } /** - * - * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; - * + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudResourceProperties, - com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder, - com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder> + com.google.cloud.bigquery.connection.v1.CloudResourceProperties, com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder, com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder> getCloudResourceFieldBuilder() { if (cloudResourceBuilder_ == null) { if (!(propertiesCase_ == 22)) { - properties_ = - com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance(); + properties_ = com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance(); } - cloudResourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudResourceProperties, - com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder, - com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder>( + cloudResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.CloudResourceProperties, com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder, com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder>( (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_, getParentForChildren(), isClean()); @@ -2649,16 +2401,191 @@ public Builder clearCloudResource() { return cloudResourceBuilder_; } - private long creationTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.SparkProperties, com.google.cloud.bigquery.connection.v1.SparkProperties.Builder, com.google.cloud.bigquery.connection.v1.SparkPropertiesOrBuilder> sparkBuilder_; /** + *
+     * Spark properties.
+     * 
* + * .google.cloud.bigquery.connection.v1.SparkProperties spark = 23; + * @return Whether the spark field is set. + */ + @java.lang.Override + public boolean hasSpark() { + return propertiesCase_ == 23; + } + /** + *
+     * Spark properties.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.SparkProperties spark = 23; + * @return The spark. + */ + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.SparkProperties getSpark() { + if (sparkBuilder_ == null) { + if (propertiesCase_ == 23) { + return (com.google.cloud.bigquery.connection.v1.SparkProperties) properties_; + } + return com.google.cloud.bigquery.connection.v1.SparkProperties.getDefaultInstance(); + } else { + if (propertiesCase_ == 23) { + return sparkBuilder_.getMessage(); + } + return com.google.cloud.bigquery.connection.v1.SparkProperties.getDefaultInstance(); + } + } + /** + *
+     * Spark properties.
+     * 
* + * .google.cloud.bigquery.connection.v1.SparkProperties spark = 23; + */ + public Builder setSpark(com.google.cloud.bigquery.connection.v1.SparkProperties value) { + if (sparkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + properties_ = value; + onChanged(); + } else { + sparkBuilder_.setMessage(value); + } + propertiesCase_ = 23; + return this; + } + /** + *
+     * Spark properties.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.SparkProperties spark = 23; + */ + public Builder setSpark( + com.google.cloud.bigquery.connection.v1.SparkProperties.Builder builderForValue) { + if (sparkBuilder_ == null) { + properties_ = builderForValue.build(); + onChanged(); + } else { + sparkBuilder_.setMessage(builderForValue.build()); + } + propertiesCase_ = 23; + return this; + } + /** + *
+     * Spark properties.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.SparkProperties spark = 23; + */ + public Builder mergeSpark(com.google.cloud.bigquery.connection.v1.SparkProperties value) { + if (sparkBuilder_ == null) { + if (propertiesCase_ == 23 && + properties_ != com.google.cloud.bigquery.connection.v1.SparkProperties.getDefaultInstance()) { + properties_ = com.google.cloud.bigquery.connection.v1.SparkProperties.newBuilder((com.google.cloud.bigquery.connection.v1.SparkProperties) properties_) + .mergeFrom(value).buildPartial(); + } else { + properties_ = value; + } + onChanged(); + } else { + if (propertiesCase_ == 23) { + sparkBuilder_.mergeFrom(value); + } else { + sparkBuilder_.setMessage(value); + } + } + propertiesCase_ = 23; + return this; + } + /** + *
+     * Spark properties.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.SparkProperties spark = 23; + */ + public Builder clearSpark() { + if (sparkBuilder_ == null) { + if (propertiesCase_ == 23) { + propertiesCase_ = 0; + properties_ = null; + onChanged(); + } + } else { + if (propertiesCase_ == 23) { + propertiesCase_ = 0; + properties_ = null; + } + sparkBuilder_.clear(); + } + return this; + } + /** + *
+     * Spark properties.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.SparkProperties spark = 23; + */ + public com.google.cloud.bigquery.connection.v1.SparkProperties.Builder getSparkBuilder() { + return getSparkFieldBuilder().getBuilder(); + } + /** + *
+     * Spark properties.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.SparkProperties spark = 23; + */ + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.SparkPropertiesOrBuilder getSparkOrBuilder() { + if ((propertiesCase_ == 23) && (sparkBuilder_ != null)) { + return sparkBuilder_.getMessageOrBuilder(); + } else { + if (propertiesCase_ == 23) { + return (com.google.cloud.bigquery.connection.v1.SparkProperties) properties_; + } + return com.google.cloud.bigquery.connection.v1.SparkProperties.getDefaultInstance(); + } + } + /** + *
+     * Spark properties.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.SparkProperties spark = 23; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.SparkProperties, com.google.cloud.bigquery.connection.v1.SparkProperties.Builder, com.google.cloud.bigquery.connection.v1.SparkPropertiesOrBuilder> + getSparkFieldBuilder() { + if (sparkBuilder_ == null) { + if (!(propertiesCase_ == 23)) { + properties_ = com.google.cloud.bigquery.connection.v1.SparkProperties.getDefaultInstance(); + } + sparkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.SparkProperties, com.google.cloud.bigquery.connection.v1.SparkProperties.Builder, com.google.cloud.bigquery.connection.v1.SparkPropertiesOrBuilder>( + (com.google.cloud.bigquery.connection.v1.SparkProperties) properties_, + getParentForChildren(), + isClean()); + properties_ = null; + } + propertiesCase_ = 23; + onChanged(); + return sparkBuilder_; + } + + 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 @@ -2666,52 +2593,43 @@ 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; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; 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() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); 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 @@ -2719,52 +2637,43 @@ 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; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; 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() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); 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 @@ -2772,44 +2681,38 @@ 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; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; 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() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); 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); } @@ -2819,12 +2722,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(); } @@ -2833,27 +2736,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2868,4 +2771,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.connection.v1.Connection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionName.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionName.java similarity index 100% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionName.java rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionName.java diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java similarity index 83% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java index 352f95edf309..99654d90a797 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java +++ b/owl-bot-staging/java-bigqueryconnection/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,32 +124,24 @@ public interface ConnectionOrBuilder com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder getAwsOrBuilder(); /** - * - * *
    * Azure properties.
    * 
* * .google.cloud.bigquery.connection.v1.AzureProperties azure = 11; - * * @return Whether the azure field is set. */ boolean hasAzure(); /** - * - * *
    * Azure properties.
    * 
* * .google.cloud.bigquery.connection.v1.AzureProperties azure = 11; - * * @return The azure. */ com.google.cloud.bigquery.connection.v1.AzureProperties getAzure(); /** - * - * *
    * Azure properties.
    * 
@@ -206,112 +151,112 @@ public interface ConnectionOrBuilder com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder getAzureOrBuilder(); /** - * - * *
    * Cloud Spanner properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; - * * @return Whether the cloudSpanner field is set. */ boolean hasCloudSpanner(); /** - * - * *
    * Cloud Spanner properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; - * * @return The cloudSpanner. */ com.google.cloud.bigquery.connection.v1.CloudSpannerProperties getCloudSpanner(); /** - * - * *
    * Cloud Spanner properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; */ - com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder - getCloudSpannerOrBuilder(); + com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder getCloudSpannerOrBuilder(); /** - * - * *
    * Cloud Resource properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; - * * @return Whether the cloudResource field is set. */ boolean hasCloudResource(); /** - * - * *
    * Cloud Resource properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; - * * @return The cloudResource. */ com.google.cloud.bigquery.connection.v1.CloudResourceProperties getCloudResource(); /** - * - * *
    * Cloud Resource properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; */ - com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder - getCloudResourceOrBuilder(); + com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder getCloudResourceOrBuilder(); /** + *
+   * Spark properties.
+   * 
* + * .google.cloud.bigquery.connection.v1.SparkProperties spark = 23; + * @return Whether the spark field is set. + */ + boolean hasSpark(); + /** + *
+   * Spark properties.
+   * 
* + * .google.cloud.bigquery.connection.v1.SparkProperties spark = 23; + * @return The spark. + */ + com.google.cloud.bigquery.connection.v1.SparkProperties getSpark(); + /** + *
+   * Spark properties.
+   * 
+ * + * .google.cloud.bigquery.connection.v1.SparkProperties spark = 23; + */ + com.google.cloud.bigquery.connection.v1.SparkPropertiesOrBuilder getSparkOrBuilder(); + + /** *
    * 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/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java new file mode 100644 index 000000000000..8e6cf986ad93 --- /dev/null +++ b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java @@ -0,0 +1,402 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/connection/v1/connection.proto + +package com.google.cloud.bigquery.connection.v1; + +public final class ConnectionOuterClass { + private ConnectionOuterClass() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_Connection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_AwsProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_AzureProperties_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_AzureProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_MetastoreServiceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_MetastoreServiceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_SparkHistoryServerConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_SparkHistoryServerConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_SparkProperties_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_SparkProperties_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/bigquery/connection/v1/co" + + "nnection.proto\022#google.cloud.bigquery.co" + + "nnection.v1\032\034google/api/annotations.prot" + + "o\032\027google/api/client.proto\032\037google/api/f" + + "ield_behavior.proto\032\031google/api/resource" + + ".proto\032\036google/iam/v1/iam_policy.proto\032\032" + + "google/iam/v1/policy.proto\032\033google/proto" + + "buf/empty.proto\032 google/protobuf/field_m" + + "ask.proto\"\272\001\n\027CreateConnectionRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googlea" + + "pis.com/Location\022\032\n\rconnection_id\030\002 \001(\tB" + + "\003\340A\001\022H\n\nconnection\030\003 \001(\0132/.google.cloud." + + "bigquery.connection.v1.ConnectionB\003\340A\002\"Z" + + "\n\024GetConnectionRequest\022B\n\004name\030\001 \001(\tB4\340A" + + "\002\372A.\n,bigqueryconnection.googleapis.com/" + + "Connection\"\177\n\026ListConnectionsRequest\0229\n\006" + + "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + + "is.com/Location\022\026\n\tpage_size\030\004 \001(\005B\003\340A\002\022" + + "\022\n\npage_token\030\003 \001(\t\"x\n\027ListConnectionsRe" + + "sponse\022\027\n\017next_page_token\030\001 \001(\t\022D\n\013conne" + + "ctions\030\002 \003(\0132/.google.cloud.bigquery.con" + + "nection.v1.Connection\"\335\001\n\027UpdateConnecti" + + "onRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,bigquer" + + "yconnection.googleapis.com/Connection\022H\n" + + "\nconnection\030\002 \001(\0132/.google.cloud.bigquer" + + "y.connection.v1.ConnectionB\003\340A\002\0224\n\013updat" + + "e_mask\030\003 \001(\0132\032.google.protobuf.FieldMask" + + "B\003\340A\002\"]\n\027DeleteConnectionRequest\022B\n\004name" + + "\030\001 \001(\tB4\340A\002\372A.\n,bigqueryconnection.googl" + + "eapis.com/Connection\"\360\005\n\nConnection\022\014\n\004n" + + "ame\030\001 \001(\t\022\025\n\rfriendly_name\030\002 \001(\t\022\023\n\013desc" + + "ription\030\003 \001(\t\022L\n\tcloud_sql\030\004 \001(\01327.googl" + + "e.cloud.bigquery.connection.v1.CloudSqlP" + + "ropertiesH\000\022A\n\003aws\030\010 \001(\01322.google.cloud." + + "bigquery.connection.v1.AwsPropertiesH\000\022E" + + "\n\005azure\030\013 \001(\01324.google.cloud.bigquery.co" + + "nnection.v1.AzurePropertiesH\000\022T\n\rcloud_s" + + "panner\030\025 \001(\0132;.google.cloud.bigquery.con" + + "nection.v1.CloudSpannerPropertiesH\000\022V\n\016c" + + "loud_resource\030\026 \001(\0132<.google.cloud.bigqu" + + "ery.connection.v1.CloudResourcePropertie" + + "sH\000\022E\n\005spark\030\027 \001(\01324.google.cloud.bigque" + + "ry.connection.v1.SparkPropertiesH\000\022\032\n\rcr" + + "eation_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}/loca" + + "tions/{location}/connections/{connection" + + "}B\014\n\nproperties\"\312\002\n\022CloudSqlProperties\022\023" + + "\n\013instance_id\030\001 \001(\t\022\020\n\010database\030\002 \001(\t\022R\n" + + "\004type\030\003 \001(\0162D.google.cloud.bigquery.conn" + + "ection.v1.CloudSqlProperties.DatabaseTyp" + + "e\022P\n\ncredential\030\004 \001(\01327.google.cloud.big" + + "query.connection.v1.CloudSqlCredentialB\003" + + "\340A\004\022\037\n\022service_account_id\030\005 \001(\tB\003\340A\003\"F\n\014" + + "DatabaseType\022\035\n\031DATABASE_TYPE_UNSPECIFIE" + + "D\020\000\022\014\n\010POSTGRES\020\001\022\t\n\005MYSQL\020\002\"8\n\022CloudSql" + + "Credential\022\020\n\010username\030\001 \001(\t\022\020\n\010password" + + "\030\002 \001(\t\"\201\001\n\026CloudSpannerProperties\022\020\n\010dat" + + "abase\030\001 \001(\t\022\027\n\017use_parallelism\030\002 \001(\010\022 \n\030" + + "use_serverless_analytics\030\003 \001(\010\022\032\n\rdataba" + + "se_role\030\004 \001(\tB\003\340A\001\"\317\001\n\rAwsProperties\022Z\n\022" + + "cross_account_role\030\002 \001(\01328.google.cloud." + + "bigquery.connection.v1.AwsCrossAccountRo" + + "leB\002\030\001H\000\022I\n\013access_role\030\003 \001(\01322.google.c" + + "loud.bigquery.connection.v1.AwsAccessRol" + + "eH\000B\027\n\025authentication_method\"^\n\023AwsCross" + + "AccountRole\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\rAwsAccessRole\022\023\n\013iam_role_id\030\001 \001" + + "(\t\022\020\n\010identity\030\002 \001(\t\"\315\001\n\017AzureProperties" + + "\022\030\n\013application\030\001 \001(\tB\003\340A\003\022\026\n\tclient_id\030" + + "\002 \001(\tB\003\340A\003\022\026\n\tobject_id\030\003 \001(\tB\003\340A\003\022\032\n\022cu" + + "stomer_tenant_id\030\004 \001(\t\022\024\n\014redirect_uri\030\005" + + " \001(\t\022\'\n\037federated_application_client_id\030" + + "\006 \001(\t\022\025\n\010identity\030\007 \001(\tB\003\340A\003\":\n\027CloudRes" + + "ourceProperties\022\037\n\022service_account_id\030\001 " + + "\001(\tB\003\340A\003\"]\n\026MetastoreServiceConfig\022C\n\021me" + + "tastore_service\030\001 \001(\tB(\340A\001\372A\"\n metastore" + + ".googleapis.com/Service\"]\n\030SparkHistoryS" + + "erverConfig\022A\n\020dataproc_cluster\030\001 \001(\tB\'\340" + + "A\001\372A!\n\037dataproc.googleapis.com/Cluster\"\377" + + "\001\n\017SparkProperties\022\037\n\022service_account_id" + + "\030\001 \001(\tB\003\340A\003\022b\n\030metastore_service_config\030" + + "\003 \001(\0132;.google.cloud.bigquery.connection" + + ".v1.MetastoreServiceConfigB\003\340A\001\022g\n\033spark" + + "_history_server_config\030\004 \001(\0132=.google.cl" + + "oud.bigquery.connection.v1.SparkHistoryS" + + "erverConfigB\003\340A\0012\314\r\n\021ConnectionService\022\350" + + "\001\n\020CreateConnection\022<.google.cloud.bigqu" + + "ery.connection.v1.CreateConnectionReques" + + "t\032/.google.cloud.bigquery.connection.v1." + + "Connection\"e\202\323\344\223\002=\"//v1/{parent=projects" + + "/*/locations/*}/connections:\nconnection\332" + + "A\037parent,connection,connection_id\022\273\001\n\rGe" + + "tConnection\0229.google.cloud.bigquery.conn" + + "ection.v1.GetConnectionRequest\032/.google." + + "cloud.bigquery.connection.v1.Connection\"" + + ">\202\323\344\223\0021\022//v1/{name=projects/*/locations/" + + "*/connections/*}\332A\004name\022\316\001\n\017ListConnecti" + + "ons\022;.google.cloud.bigquery.connection.v" + + "1.ListConnectionsRequest\032<.google.cloud." + + "bigquery.connection.v1.ListConnectionsRe" + + "sponse\"@\202\323\344\223\0021\022//v1/{parent=projects/*/l" + + "ocations/*}/connections\332A\006parent\022\344\001\n\020Upd" + + "ateConnection\022<.google.cloud.bigquery.co" + + "nnection.v1.UpdateConnectionRequest\032/.go" + + "ogle.cloud.bigquery.connection.v1.Connec" + + "tion\"a\202\323\344\223\002=2//v1/{name=projects/*/locat" + + "ions/*/connections/*}:\nconnection\332A\033name" + + ",connection,update_mask\022\250\001\n\020DeleteConnec" + + "tion\022<.google.cloud.bigquery.connection." + + "v1.DeleteConnectionRequest\032\026.google.prot" + + "obuf.Empty\">\202\323\344\223\0021*//v1/{name=projects/*" + + "/locations/*/connections/*}\332A\004name\022\251\001\n\014G" + + "etIamPolicy\022\".google.iam.v1.GetIamPolicy" + + "Request\032\025.google.iam.v1.Policy\"^\202\323\344\223\002E\"@" + + "/v1/{resource=projects/*/locations/*/con" + + "nections/*}:getIamPolicy:\001*\332A\020resource,o" + + "ptions\022\250\001\n\014SetIamPolicy\022\".google.iam.v1." + + "SetIamPolicyRequest\032\025.google.iam.v1.Poli" + + "cy\"]\202\323\344\223\002E\"@/v1/{resource=projects/*/loc" + + "ations/*/connections/*}:setIamPolicy:\001*\332" + + "A\017resource,policy\022\323\001\n\022TestIamPermissions" + + "\022(.google.iam.v1.TestIamPermissionsReque" + + "st\032).google.iam.v1.TestIamPermissionsRes" + + "ponse\"h\202\323\344\223\002K\"F/v1/{resource=projects/*/" + + "locations/*/connections/*}:testIamPermis" + + "sions:\001*\332A\024resource,permissions\032~\312A!bigq" + + "ueryconnection.googleapis.com\322AWhttps://" + + "www.googleapis.com/auth/bigquery,https:/" + + "/www.googleapis.com/auth/cloud-platformB" + + "\375\002\n\'com.google.cloud.bigquery.connection" + + ".v1P\001ZGcloud.google.com/go/bigquery/conn" + + "ection/apiv1/connectionpb;connectionpb\252\002" + + "#Google.Cloud.BigQuery.Connection.V1\312\002#G" + + "oogle\\Cloud\\BigQuery\\Connection\\V1\352AY\n\037d" + + "ataproc.googleapis.com/Cluster\0226projects" + + "/{project}/regions/{region}/clusters/{cl" + + "uster}\352A^\n metastore.googleapis.com/Serv" + + "ice\022:projects/{project}/locations/{locat" + + "ion}/services/{service}b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor, + new java.lang.String[] { "Parent", "ConnectionId", "Connection", }); + internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor, + new java.lang.String[] { "NextPageToken", "Connections", }); + internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor, + new java.lang.String[] { "Name", "Connection", "UpdateMask", }); + internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_bigquery_connection_v1_Connection_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor, + new java.lang.String[] { "Name", "FriendlyName", "Description", "CloudSql", "Aws", "Azure", "CloudSpanner", "CloudResource", "Spark", "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", "ServiceAccountId", }); + 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", "UseServerlessAnalytics", "DatabaseRole", }); + internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_bigquery_connection_v1_AwsProperties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor, + new java.lang.String[] { "CrossAccountRole", "AccessRole", "AuthenticationMethod", }); + internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor, + new java.lang.String[] { "IamRoleId", "IamUserId", "ExternalId", }); + internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor, + new java.lang.String[] { "IamRoleId", "Identity", }); + internal_static_google_cloud_bigquery_connection_v1_AzureProperties_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_bigquery_connection_v1_AzureProperties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_AzureProperties_descriptor, + new java.lang.String[] { "Application", "ClientId", "ObjectId", "CustomerTenantId", "RedirectUri", "FederatedApplicationClientId", "Identity", }); + internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor, + new java.lang.String[] { "ServiceAccountId", }); + internal_static_google_cloud_bigquery_connection_v1_MetastoreServiceConfig_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_bigquery_connection_v1_MetastoreServiceConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_MetastoreServiceConfig_descriptor, + new java.lang.String[] { "MetastoreService", }); + internal_static_google_cloud_bigquery_connection_v1_SparkHistoryServerConfig_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_bigquery_connection_v1_SparkHistoryServerConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_SparkHistoryServerConfig_descriptor, + new java.lang.String[] { "DataprocCluster", }); + internal_static_google_cloud_bigquery_connection_v1_SparkProperties_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_bigquery_connection_v1_SparkProperties_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_SparkProperties_descriptor, + new java.lang.String[] { "ServiceAccountId", "MetastoreServiceConfig", "SparkHistoryServerConfig", }); + 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.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequest.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequest.java similarity index 62% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequest.java rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequest.java index d926aced6670..797822d6207c 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequest.java +++ b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequest.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; /** - * - * *
  * The request for
  * [ConnectionService.CreateConnection][google.cloud.bigquery.connection.v1.ConnectionService.CreateConnection].
@@ -28,16 +11,15 @@
  *
  * 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_ = "";
@@ -45,46 +27,39 @@ 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;
   }
-
-  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;
-
   @SuppressWarnings("serial")
   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 @@ -93,32 +68,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 { @@ -127,18 +100,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int CONNECTION_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -147,29 +116,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 { @@ -180,16 +149,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 @@ -197,44 +161,30 @@ 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() { - return connection_ == null - ? com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() - : connection_; + return connection_ == null ? com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() : connection_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -246,7 +196,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -272,7 +223,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -282,19 +234,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -321,104 +275,96 @@ 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].
@@ -426,32 +372,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -467,14 +414,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();
     }
 
@@ -489,17 +435,13 @@ 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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.bigquery.connection.v1.CreateConnectionRequest result = new com.google.cloud.bigquery.connection.v1.CreateConnectionRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.bigquery.connection.v1.CreateConnectionRequest result) {
+    private void buildPartial0(com.google.cloud.bigquery.connection.v1.CreateConnectionRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.parent_ = parent_;
@@ -508,7 +450,9 @@ private void buildPartial0(
         result.connectionId_ = connectionId_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.connection_ = connectionBuilder_ == null ? connection_ : connectionBuilder_.build();
+        result.connection_ = connectionBuilder_ == null
+            ? connection_
+            : connectionBuilder_.build();
       }
     }
 
@@ -516,50 +460,46 @@ private void buildPartial0(
     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_;
         bitField0_ |= 0x00000001;
@@ -599,31 +539,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                connectionId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getConnectionFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              connectionId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getConnectionFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -633,28 +571,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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; @@ -663,24 +596,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 { @@ -688,41 +618,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -732,24 +651,18 @@ public Builder clearParent() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -759,20 +672,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; @@ -781,21 +692,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 { @@ -803,35 +713,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setConnectionId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } connectionId_ = value; bitField0_ |= 0x00000002; 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() { @@ -841,21 +744,17 @@ public Builder clearConnectionId() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setConnectionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); connectionId_ = value; bitField0_ |= 0x00000002; @@ -865,58 +764,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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * 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) { @@ -932,15 +812,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) { @@ -954,22 +830,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 (((bitField0_ & 0x00000004) != 0) - && connection_ != null - && connection_ - != com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + connection_ != null && + connection_ != com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance()) { getConnectionBuilder().mergeFrom(value); } else { connection_ = value; @@ -982,15 +853,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1003,15 +870,11 @@ 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() { bitField0_ |= 0x00000004; @@ -1019,55 +882,43 @@ public com.google.cloud.bigquery.connection.v1.Connection.Builder getConnectionB 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); } @@ -1077,43 +928,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1125,8 +974,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/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequestOrBuilder.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequestOrBuilder.java similarity index 53% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequestOrBuilder.java rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequestOrBuilder.java index 850e155a60e7..de7fb832ce12 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequestOrBuilder.java +++ b/owl-bot-staging/java-bigqueryconnection/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/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequest.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequest.java similarity index 61% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequest.java rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequest.java index 8e66c22ec129..eb63d7c16937 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequest.java +++ b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequest.java @@ -1,88 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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; } - - 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; - @SuppressWarnings("serial") 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 @@ -91,32 +66,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 { @@ -125,7 +98,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,7 +109,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -161,15 +134,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -189,136 +162,129 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -328,14 +294,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(); } @@ -350,17 +315,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest result = new com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest result) { + private void buildPartial0(com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -371,50 +332,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -446,19 +403,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -468,28 +423,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -498,24 +448,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 { @@ -523,41 +470,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -567,33 +503,27 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -603,43 +533,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -651,8 +579,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/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequestOrBuilder.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequestOrBuilder.java new file mode 100644 index 000000000000..2ad16f8a41b9 --- /dev/null +++ b/owl-bot-staging/java-bigqueryconnection/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/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequest.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequest.java similarity index 62% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequest.java rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequest.java index 29031c6f1aa4..589d91189460 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequest.java +++ b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequest.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; /** - * - * *
  * The request for
  * [ConnectionService.GetConnection][google.cloud.bigquery.connection.v1.ConnectionService.GetConnection].
@@ -28,62 +11,54 @@
  *
  * 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;
   }
-
-  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;
-
   @SuppressWarnings("serial")
   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 @@ -92,32 +67,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 { @@ -126,7 +99,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,7 +110,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -162,15 +135,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -190,104 +163,96 @@ 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].
@@ -295,32 +260,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -330,14 +296,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();
     }
 
@@ -352,17 +317,13 @@ 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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.bigquery.connection.v1.GetConnectionRequest result = new com.google.cloud.bigquery.connection.v1.GetConnectionRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.bigquery.connection.v1.GetConnectionRequest result) {
+    private void buildPartial0(com.google.cloud.bigquery.connection.v1.GetConnectionRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.name_ = name_;
@@ -373,39 +334,38 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.connection.v1.GetConnectionRequest) {
-        return mergeFrom((com.google.cloud.bigquery.connection.v1.GetConnectionRequest) other);
+        return mergeFrom((com.google.cloud.bigquery.connection.v1.GetConnectionRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -413,9 +373,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_;
         bitField0_ |= 0x00000001;
@@ -447,19 +405,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -469,28 +425,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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; @@ -499,24 +450,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 { @@ -524,41 +472,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -568,33 +505,27 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -604,13 +535,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(); } @@ -619,27 +549,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -654,4 +584,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/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequestOrBuilder.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequestOrBuilder.java new file mode 100644 index 000000000000..63fae6bed649 --- /dev/null +++ b/owl-bot-staging/java-bigqueryconnection/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/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequest.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequest.java similarity index 65% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequest.java rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequest.java index 154d0fb200c2..3d238b81c2cd 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequest.java +++ b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequest.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; /** - * - * *
  * The request for
  * [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1.ConnectionService.ListConnections].
@@ -28,16 +11,15 @@
  *
  * 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_ = "";
@@ -45,46 +27,39 @@ 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;
   }
-
-  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;
-
   @SuppressWarnings("serial")
   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 @@ -93,32 +68,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 { @@ -129,14 +102,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_ = 0; /** - * - * *
    * Required. Page size.
    * 
* * int32 page_size = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The pageSize. */ @java.lang.Override @@ -145,18 +115,14 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Page token.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -165,29 +131,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 { @@ -196,7 +162,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,7 +173,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -234,7 +200,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -244,17 +211,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -278,104 +247,96 @@ 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].
@@ -383,32 +344,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -420,14 +382,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();
     }
 
@@ -442,17 +403,13 @@ 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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.bigquery.connection.v1.ListConnectionsRequest result = new com.google.cloud.bigquery.connection.v1.ListConnectionsRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.bigquery.connection.v1.ListConnectionsRequest result) {
+    private void buildPartial0(com.google.cloud.bigquery.connection.v1.ListConnectionsRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.parent_ = parent_;
@@ -469,39 +426,38 @@ private void buildPartial0(
     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;
@@ -509,9 +465,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_;
         bitField0_ |= 0x00000001;
@@ -551,31 +505,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 26:
-              {
-                pageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 32:
-              {
-                pageSize_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 26: {
+              pageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 32: {
+              pageSize_ = input.readInt32();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -585,28 +535,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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; @@ -615,24 +560,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 { @@ -640,41 +582,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -684,24 +615,18 @@ public Builder clearParent() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -709,16 +634,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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 @@ -726,33 +648,27 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. Page size.
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -764,20 +680,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; @@ -786,21 +700,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 { @@ -808,35 +721,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Page token.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -846,30 +752,26 @@ public Builder clearPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -879,43 +781,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -927,8 +827,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/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequestOrBuilder.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequestOrBuilder.java similarity index 52% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequestOrBuilder.java rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequestOrBuilder.java index fb517f43a9a6..5bd07d827157 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequestOrBuilder.java +++ b/owl-bot-staging/java-bigqueryconnection/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/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponse.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponse.java similarity index 70% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponse.java rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponse.java index 4f73a1c88999..fd95e7f0a509 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponse.java +++ b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponse.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; /** - * - * *
  * The response for
  * [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1.ConnectionService.ListConnections].
@@ -28,16 +11,15 @@
  *
  * 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();
@@ -45,43 +27,38 @@ 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;
   }
-
-  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;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object nextPageToken_ = "";
   /**
-   *
-   *
    * 
    * Next page token.
    * 
* * string next_page_token = 1; - * * @return The nextPageToken. */ @java.lang.Override @@ -90,29 +67,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 { @@ -121,12 +98,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int CONNECTIONS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List connections_; /** - * - * *
    * List of connections.
    * 
@@ -138,8 +112,6 @@ public java.util.List getCon return connections_; } /** - * - * *
    * List of connections.
    * 
@@ -147,13 +119,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.
    * 
@@ -165,8 +135,6 @@ public int getConnectionsCount() { return connections_.size(); } /** - * - * *
    * List of connections.
    * 
@@ -178,8 +146,6 @@ public com.google.cloud.bigquery.connection.v1.Connection getConnections(int ind return connections_.get(index); } /** - * - * *
    * List of connections.
    * 
@@ -193,7 +159,6 @@ public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnection } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +170,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nextPageToken_); } @@ -225,7 +191,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -235,16 +202,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -268,104 +236,96 @@ 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].
@@ -373,32 +333,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -415,14 +376,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();
     }
 
@@ -437,18 +397,14 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.bigquery.connection.v1.ListConnectionsResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.bigquery.connection.v1.ListConnectionsResponse result) {
       if (connectionsBuilder_ == null) {
         if (((bitField0_ & 0x00000002) != 0)) {
           connections_ = java.util.Collections.unmodifiableList(connections_);
@@ -460,8 +416,7 @@ private void buildPartialRepeatedFields(
       }
     }
 
-    private void buildPartial0(
-        com.google.cloud.bigquery.connection.v1.ListConnectionsResponse result) {
+    private void buildPartial0(com.google.cloud.bigquery.connection.v1.ListConnectionsResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.nextPageToken_ = nextPageToken_;
@@ -472,50 +427,46 @@ private void buildPartial0(
     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_;
         bitField0_ |= 0x00000001;
@@ -539,10 +490,9 @@ public Builder mergeFrom(
             connectionsBuilder_ = null;
             connections_ = other.connections_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            connectionsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getConnectionsFieldBuilder()
-                    : null;
+            connectionsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getConnectionsFieldBuilder() : null;
           } else {
             connectionsBuilder_.addAllMessages(other.connections_);
           }
@@ -574,33 +524,30 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                nextPageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                com.google.cloud.bigquery.connection.v1.Connection m =
-                    input.readMessage(
-                        com.google.cloud.bigquery.connection.v1.Connection.parser(),
-                        extensionRegistry);
-                if (connectionsBuilder_ == null) {
-                  ensureConnectionsIsMutable();
-                  connections_.add(m);
-                } else {
-                  connectionsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              nextPageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              com.google.cloud.bigquery.connection.v1.Connection m =
+                  input.readMessage(
+                      com.google.cloud.bigquery.connection.v1.Connection.parser(),
+                      extensionRegistry);
+              if (connectionsBuilder_ == null) {
+                ensureConnectionsIsMutable();
+                connections_.add(m);
+              } else {
+                connectionsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -610,25 +557,22 @@ public Builder mergeFrom(
       } // finally
       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; @@ -637,21 +581,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 { @@ -659,35 +602,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Next page token.
      * 
* * string next_page_token = 1; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -697,21 +633,17 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000001; @@ -720,26 +652,18 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { } private java.util.List connections_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureConnectionsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - connections_ = - new java.util.ArrayList( - connections_); + connections_ = new java.util.ArrayList(connections_); bitField0_ |= 0x00000002; - } + } } 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.
      * 
@@ -754,8 +678,6 @@ public java.util.List getCon } } /** - * - * *
      * List of connections.
      * 
@@ -770,8 +692,6 @@ public int getConnectionsCount() { } } /** - * - * *
      * List of connections.
      * 
@@ -786,8 +706,6 @@ public com.google.cloud.bigquery.connection.v1.Connection getConnections(int ind } } /** - * - * *
      * List of connections.
      * 
@@ -809,8 +727,6 @@ public Builder setConnections( return this; } /** - * - * *
      * List of connections.
      * 
@@ -829,8 +745,6 @@ public Builder setConnections( return this; } /** - * - * *
      * List of connections.
      * 
@@ -851,8 +765,6 @@ public Builder addConnections(com.google.cloud.bigquery.connection.v1.Connection return this; } /** - * - * *
      * List of connections.
      * 
@@ -874,8 +786,6 @@ public Builder addConnections( return this; } /** - * - * *
      * List of connections.
      * 
@@ -894,8 +804,6 @@ public Builder addConnections( return this; } /** - * - * *
      * List of connections.
      * 
@@ -914,8 +822,6 @@ public Builder addConnections( return this; } /** - * - * *
      * List of connections.
      * 
@@ -926,7 +832,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); @@ -934,8 +841,6 @@ public Builder addAllConnections( return this; } /** - * - * *
      * List of connections.
      * 
@@ -953,8 +858,6 @@ public Builder clearConnections() { return this; } /** - * - * *
      * List of connections.
      * 
@@ -972,8 +875,6 @@ public Builder removeConnections(int index) { return this; } /** - * - * *
      * List of connections.
      * 
@@ -985,8 +886,6 @@ public com.google.cloud.bigquery.connection.v1.Connection.Builder getConnections return getConnectionsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of connections.
      * 
@@ -996,22 +895,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 { @@ -1019,8 +915,6 @@ public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnection } } /** - * - * *
      * List of connections.
      * 
@@ -1028,12 +922,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.
      * 
@@ -1042,43 +934,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_ & 0x00000002) != 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_ & 0x00000002) != 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); } @@ -1088,43 +974,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1136,8 +1020,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/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponseOrBuilder.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponseOrBuilder.java similarity index 67% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponseOrBuilder.java rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponseOrBuilder.java index 081a72cad3c6..1c26247d8954 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponseOrBuilder.java +++ b/owl-bot-staging/java-bigqueryconnection/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/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/LocationName.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/LocationName.java similarity index 100% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/LocationName.java rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/LocationName.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/MetastoreServiceConfig.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/MetastoreServiceConfig.java new file mode 100644 index 000000000000..7d5746f843c9 --- /dev/null +++ b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/MetastoreServiceConfig.java @@ -0,0 +1,594 @@ +// 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 of the Dataproc Metastore Service.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.connection.v1.MetastoreServiceConfig} + */ +public final class MetastoreServiceConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.MetastoreServiceConfig) + MetastoreServiceConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use MetastoreServiceConfig.newBuilder() to construct. + private MetastoreServiceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MetastoreServiceConfig() { + metastoreService_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MetastoreServiceConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_MetastoreServiceConfig_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_MetastoreServiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.class, com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.Builder.class); + } + + public static final int METASTORE_SERVICE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object metastoreService_ = ""; + /** + *
+   * Optional. Resource name of an existing Dataproc Metastore service.
+   * Example:
+   * * `projects/[project_id]/locations/[region]/services/[service_id]`
+   * 
+ * + * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return The metastoreService. + */ + @java.lang.Override + public java.lang.String getMetastoreService() { + java.lang.Object ref = metastoreService_; + 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(); + metastoreService_ = s; + return s; + } + } + /** + *
+   * Optional. Resource name of an existing Dataproc Metastore service.
+   * Example:
+   * * `projects/[project_id]/locations/[region]/services/[service_id]`
+   * 
+ * + * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return The bytes for metastoreService. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMetastoreServiceBytes() { + java.lang.Object ref = metastoreService_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + metastoreService_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metastoreService_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metastoreService_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metastoreService_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metastoreService_); + } + size += getUnknownFields().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.MetastoreServiceConfig)) { + return super.equals(obj); + } + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig other = (com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig) obj; + + if (!getMetastoreService() + .equals(other.getMetastoreService())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + METASTORE_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getMetastoreService().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig 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.MetastoreServiceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig 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.MetastoreServiceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig 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.MetastoreServiceConfig 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.MetastoreServiceConfig 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.MetastoreServiceConfig 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.MetastoreServiceConfig 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.MetastoreServiceConfig 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.MetastoreServiceConfig 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.MetastoreServiceConfig 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; + } + /** + *
+   * Configuration of the Dataproc Metastore Service.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.connection.v1.MetastoreServiceConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.connection.v1.MetastoreServiceConfig) + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_MetastoreServiceConfig_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_MetastoreServiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.class, com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.Builder.class); + } + + // Construct using com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metastoreService_ = ""; + 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_MetastoreServiceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig getDefaultInstanceForType() { + return com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig build() { + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig buildPartial() { + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig result = new com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metastoreService_ = metastoreService_; + } + } + + @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.MetastoreServiceConfig) { + return mergeFrom((com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig other) { + if (other == com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.getDefaultInstance()) return this; + if (!other.getMetastoreService().isEmpty()) { + metastoreService_ = other.metastoreService_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + metastoreService_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object metastoreService_ = ""; + /** + *
+     * Optional. Resource name of an existing Dataproc Metastore service.
+     * Example:
+     * * `projects/[project_id]/locations/[region]/services/[service_id]`
+     * 
+ * + * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return The metastoreService. + */ + public java.lang.String getMetastoreService() { + java.lang.Object ref = metastoreService_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metastoreService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. Resource name of an existing Dataproc Metastore service.
+     * Example:
+     * * `projects/[project_id]/locations/[region]/services/[service_id]`
+     * 
+ * + * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return The bytes for metastoreService. + */ + public com.google.protobuf.ByteString + getMetastoreServiceBytes() { + java.lang.Object ref = metastoreService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + metastoreService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. Resource name of an existing Dataproc Metastore service.
+     * Example:
+     * * `projects/[project_id]/locations/[region]/services/[service_id]`
+     * 
+ * + * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @param value The metastoreService to set. + * @return This builder for chaining. + */ + public Builder setMetastoreService( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + metastoreService_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Optional. Resource name of an existing Dataproc Metastore service.
+     * Example:
+     * * `projects/[project_id]/locations/[region]/services/[service_id]`
+     * 
+ * + * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearMetastoreService() { + metastoreService_ = getDefaultInstance().getMetastoreService(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Optional. Resource name of an existing Dataproc Metastore service.
+     * Example:
+     * * `projects/[project_id]/locations/[region]/services/[service_id]`
+     * 
+ * + * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @param value The bytes for metastoreService to set. + * @return This builder for chaining. + */ + public Builder setMetastoreServiceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + metastoreService_ = value; + bitField0_ |= 0x00000001; + 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.MetastoreServiceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.MetastoreServiceConfig) + private static final com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig(); + } + + public static com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetastoreServiceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.MetastoreServiceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/MetastoreServiceConfigOrBuilder.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/MetastoreServiceConfigOrBuilder.java new file mode 100644 index 000000000000..2cee12c1052e --- /dev/null +++ b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/MetastoreServiceConfigOrBuilder.java @@ -0,0 +1,33 @@ +// 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 MetastoreServiceConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.MetastoreServiceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Optional. Resource name of an existing Dataproc Metastore service.
+   * Example:
+   * * `projects/[project_id]/locations/[region]/services/[service_id]`
+   * 
+ * + * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return The metastoreService. + */ + java.lang.String getMetastoreService(); + /** + *
+   * Optional. Resource name of an existing Dataproc Metastore service.
+   * Example:
+   * * `projects/[project_id]/locations/[region]/services/[service_id]`
+   * 
+ * + * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return The bytes for metastoreService. + */ + com.google.protobuf.ByteString + getMetastoreServiceBytes(); +} diff --git a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkHistoryServerConfig.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkHistoryServerConfig.java new file mode 100644 index 000000000000..112c2c999ecc --- /dev/null +++ b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkHistoryServerConfig.java @@ -0,0 +1,601 @@ +// 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 of the Spark History Server.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.connection.v1.SparkHistoryServerConfig} + */ +public final class SparkHistoryServerConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.SparkHistoryServerConfig) + SparkHistoryServerConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use SparkHistoryServerConfig.newBuilder() to construct. + private SparkHistoryServerConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SparkHistoryServerConfig() { + dataprocCluster_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SparkHistoryServerConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_SparkHistoryServerConfig_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_SparkHistoryServerConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.class, com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.Builder.class); + } + + public static final int DATAPROC_CLUSTER_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object dataprocCluster_ = ""; + /** + *
+   * Optional. Resource name of an existing Dataproc Cluster to act as a Spark
+   * History Server for the connection.
+   * Example:
+   * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
+   * 
+ * + * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return The dataprocCluster. + */ + @java.lang.Override + public java.lang.String getDataprocCluster() { + java.lang.Object ref = dataprocCluster_; + 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(); + dataprocCluster_ = s; + return s; + } + } + /** + *
+   * Optional. Resource name of an existing Dataproc Cluster to act as a Spark
+   * History Server for the connection.
+   * Example:
+   * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
+   * 
+ * + * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return The bytes for dataprocCluster. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDataprocClusterBytes() { + java.lang.Object ref = dataprocCluster_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dataprocCluster_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataprocCluster_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataprocCluster_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataprocCluster_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataprocCluster_); + } + size += getUnknownFields().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.SparkHistoryServerConfig)) { + return super.equals(obj); + } + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig other = (com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig) obj; + + if (!getDataprocCluster() + .equals(other.getDataprocCluster())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + DATAPROC_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getDataprocCluster().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig 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.SparkHistoryServerConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig 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.SparkHistoryServerConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig 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.SparkHistoryServerConfig 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.SparkHistoryServerConfig 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.SparkHistoryServerConfig 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.SparkHistoryServerConfig 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.SparkHistoryServerConfig 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.SparkHistoryServerConfig 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.SparkHistoryServerConfig 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; + } + /** + *
+   * Configuration of the Spark History Server.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.connection.v1.SparkHistoryServerConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.connection.v1.SparkHistoryServerConfig) + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_SparkHistoryServerConfig_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_SparkHistoryServerConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.class, com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.Builder.class); + } + + // Construct using com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataprocCluster_ = ""; + 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_SparkHistoryServerConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig getDefaultInstanceForType() { + return com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig build() { + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig buildPartial() { + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig result = new com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataprocCluster_ = dataprocCluster_; + } + } + + @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.SparkHistoryServerConfig) { + return mergeFrom((com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig other) { + if (other == com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.getDefaultInstance()) return this; + if (!other.getDataprocCluster().isEmpty()) { + dataprocCluster_ = other.dataprocCluster_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + dataprocCluster_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object dataprocCluster_ = ""; + /** + *
+     * Optional. Resource name of an existing Dataproc Cluster to act as a Spark
+     * History Server for the connection.
+     * Example:
+     * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
+     * 
+ * + * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return The dataprocCluster. + */ + public java.lang.String getDataprocCluster() { + java.lang.Object ref = dataprocCluster_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataprocCluster_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. Resource name of an existing Dataproc Cluster to act as a Spark
+     * History Server for the connection.
+     * Example:
+     * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
+     * 
+ * + * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return The bytes for dataprocCluster. + */ + public com.google.protobuf.ByteString + getDataprocClusterBytes() { + java.lang.Object ref = dataprocCluster_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dataprocCluster_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. Resource name of an existing Dataproc Cluster to act as a Spark
+     * History Server for the connection.
+     * Example:
+     * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
+     * 
+ * + * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @param value The dataprocCluster to set. + * @return This builder for chaining. + */ + public Builder setDataprocCluster( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + dataprocCluster_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Optional. Resource name of an existing Dataproc Cluster to act as a Spark
+     * History Server for the connection.
+     * Example:
+     * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
+     * 
+ * + * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearDataprocCluster() { + dataprocCluster_ = getDefaultInstance().getDataprocCluster(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Optional. Resource name of an existing Dataproc Cluster to act as a Spark
+     * History Server for the connection.
+     * Example:
+     * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
+     * 
+ * + * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @param value The bytes for dataprocCluster to set. + * @return This builder for chaining. + */ + public Builder setDataprocClusterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + dataprocCluster_ = value; + bitField0_ |= 0x00000001; + 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.SparkHistoryServerConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.SparkHistoryServerConfig) + private static final com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig(); + } + + public static com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SparkHistoryServerConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.SparkHistoryServerConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkHistoryServerConfigOrBuilder.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkHistoryServerConfigOrBuilder.java new file mode 100644 index 000000000000..994b69a90ae7 --- /dev/null +++ b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkHistoryServerConfigOrBuilder.java @@ -0,0 +1,35 @@ +// 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 SparkHistoryServerConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.SparkHistoryServerConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Optional. Resource name of an existing Dataproc Cluster to act as a Spark
+   * History Server for the connection.
+   * Example:
+   * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
+   * 
+ * + * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return The dataprocCluster. + */ + java.lang.String getDataprocCluster(); + /** + *
+   * Optional. Resource name of an existing Dataproc Cluster to act as a Spark
+   * History Server for the connection.
+   * Example:
+   * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
+   * 
+ * + * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return The bytes for dataprocCluster. + */ + com.google.protobuf.ByteString + getDataprocClusterBytes(); +} diff --git a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkProperties.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkProperties.java new file mode 100644 index 000000000000..d215e99e7773 --- /dev/null +++ b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkProperties.java @@ -0,0 +1,1096 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/connection/v1/connection.proto + +package com.google.cloud.bigquery.connection.v1; + +/** + *
+ * Container for connection properties to execute stored procedures for Apache
+ * Spark.
+ * 
+ * + * Protobuf type {@code google.cloud.bigquery.connection.v1.SparkProperties} + */ +public final class SparkProperties extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.SparkProperties) + SparkPropertiesOrBuilder { +private static final long serialVersionUID = 0L; + // Use SparkProperties.newBuilder() to construct. + private SparkProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SparkProperties() { + serviceAccountId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SparkProperties(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_SparkProperties_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_SparkProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.connection.v1.SparkProperties.class, com.google.cloud.bigquery.connection.v1.SparkProperties.Builder.class); + } + + public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccountId_ = ""; + /** + *
+   * Output only. The account ID of the service created for the purpose of this
+   * connection.
+   * The service account does not have any permissions associated with it when
+   * it is created. After creation, customers delegate permissions to the
+   * service account. When the connection is used in the context of a stored
+   * procedure for Apache Spark in BigQuery, the service account will be used to
+   * connect to the desired resources in Google Cloud.
+   * The account ID is in the form of:
+   * bqcx-<projectnumber>-<uniqueid>@gcp-sa-bigquery-consp.iam.gserviceaccount.com
+   * 
+ * + * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The serviceAccountId. + */ + @java.lang.Override + public java.lang.String getServiceAccountId() { + java.lang.Object ref = serviceAccountId_; + 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(); + serviceAccountId_ = s; + return s; + } + } + /** + *
+   * Output only. The account ID of the service created for the purpose of this
+   * connection.
+   * The service account does not have any permissions associated with it when
+   * it is created. After creation, customers delegate permissions to the
+   * service account. When the connection is used in the context of a stored
+   * procedure for Apache Spark in BigQuery, the service account will be used to
+   * connect to the desired resources in Google Cloud.
+   * The account ID is in the form of:
+   * bqcx-<projectnumber>-<uniqueid>@gcp-sa-bigquery-consp.iam.gserviceaccount.com
+   * 
+ * + * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for serviceAccountId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getServiceAccountIdBytes() { + java.lang.Object ref = serviceAccountId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceAccountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METASTORE_SERVICE_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastoreServiceConfig_; + /** + *
+   * Optional. Dataproc Metastore Service configuration for the connection.
+   * 
+ * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the metastoreServiceConfig field is set. + */ + @java.lang.Override + public boolean hasMetastoreServiceConfig() { + return metastoreServiceConfig_ != null; + } + /** + *
+   * Optional. Dataproc Metastore Service configuration for the connection.
+   * 
+ * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The metastoreServiceConfig. + */ + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig getMetastoreServiceConfig() { + return metastoreServiceConfig_ == null ? com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.getDefaultInstance() : metastoreServiceConfig_; + } + /** + *
+   * Optional. Dataproc Metastore Service configuration for the connection.
+   * 
+ * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.MetastoreServiceConfigOrBuilder getMetastoreServiceConfigOrBuilder() { + return metastoreServiceConfig_ == null ? com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.getDefaultInstance() : metastoreServiceConfig_; + } + + public static final int SPARK_HISTORY_SERVER_CONFIG_FIELD_NUMBER = 4; + private com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig sparkHistoryServerConfig_; + /** + *
+   * Optional. Spark History Server configuration for the connection.
+   * 
+ * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the sparkHistoryServerConfig field is set. + */ + @java.lang.Override + public boolean hasSparkHistoryServerConfig() { + return sparkHistoryServerConfig_ != null; + } + /** + *
+   * Optional. Spark History Server configuration for the connection.
+   * 
+ * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The sparkHistoryServerConfig. + */ + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig getSparkHistoryServerConfig() { + return sparkHistoryServerConfig_ == null ? com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.getDefaultInstance() : sparkHistoryServerConfig_; + } + /** + *
+   * Optional. Spark History Server configuration for the connection.
+   * 
+ * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfigOrBuilder getSparkHistoryServerConfigOrBuilder() { + return sparkHistoryServerConfig_ == null ? com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.getDefaultInstance() : sparkHistoryServerConfig_; + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAccountId_); + } + if (metastoreServiceConfig_ != null) { + output.writeMessage(3, getMetastoreServiceConfig()); + } + if (sparkHistoryServerConfig_ != null) { + output.writeMessage(4, getSparkHistoryServerConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAccountId_); + } + if (metastoreServiceConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMetastoreServiceConfig()); + } + if (sparkHistoryServerConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getSparkHistoryServerConfig()); + } + size += getUnknownFields().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.SparkProperties)) { + return super.equals(obj); + } + com.google.cloud.bigquery.connection.v1.SparkProperties other = (com.google.cloud.bigquery.connection.v1.SparkProperties) obj; + + if (!getServiceAccountId() + .equals(other.getServiceAccountId())) return false; + if (hasMetastoreServiceConfig() != other.hasMetastoreServiceConfig()) return false; + if (hasMetastoreServiceConfig()) { + if (!getMetastoreServiceConfig() + .equals(other.getMetastoreServiceConfig())) return false; + } + if (hasSparkHistoryServerConfig() != other.hasSparkHistoryServerConfig()) return false; + if (hasSparkHistoryServerConfig()) { + if (!getSparkHistoryServerConfig() + .equals(other.getSparkHistoryServerConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + SERVICE_ACCOUNT_ID_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccountId().hashCode(); + if (hasMetastoreServiceConfig()) { + hash = (37 * hash) + METASTORE_SERVICE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMetastoreServiceConfig().hashCode(); + } + if (hasSparkHistoryServerConfig()) { + hash = (37 * hash) + SPARK_HISTORY_SERVER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSparkHistoryServerConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.bigquery.connection.v1.SparkProperties parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.bigquery.connection.v1.SparkProperties 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.SparkProperties parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.bigquery.connection.v1.SparkProperties 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.SparkProperties parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.bigquery.connection.v1.SparkProperties 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.SparkProperties 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.SparkProperties 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.SparkProperties 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.SparkProperties 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.SparkProperties 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.SparkProperties 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.SparkProperties 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; + } + /** + *
+   * Container for connection properties to execute stored procedures for Apache
+   * Spark.
+   * 
+ * + * Protobuf type {@code google.cloud.bigquery.connection.v1.SparkProperties} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.connection.v1.SparkProperties) + com.google.cloud.bigquery.connection.v1.SparkPropertiesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_SparkProperties_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_SparkProperties_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.bigquery.connection.v1.SparkProperties.class, com.google.cloud.bigquery.connection.v1.SparkProperties.Builder.class); + } + + // Construct using com.google.cloud.bigquery.connection.v1.SparkProperties.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + serviceAccountId_ = ""; + metastoreServiceConfig_ = null; + if (metastoreServiceConfigBuilder_ != null) { + metastoreServiceConfigBuilder_.dispose(); + metastoreServiceConfigBuilder_ = null; + } + sparkHistoryServerConfig_ = null; + if (sparkHistoryServerConfigBuilder_ != null) { + sparkHistoryServerConfigBuilder_.dispose(); + sparkHistoryServerConfigBuilder_ = null; + } + 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_SparkProperties_descriptor; + } + + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.SparkProperties getDefaultInstanceForType() { + return com.google.cloud.bigquery.connection.v1.SparkProperties.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.SparkProperties build() { + com.google.cloud.bigquery.connection.v1.SparkProperties result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.SparkProperties buildPartial() { + com.google.cloud.bigquery.connection.v1.SparkProperties result = new com.google.cloud.bigquery.connection.v1.SparkProperties(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.bigquery.connection.v1.SparkProperties result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.serviceAccountId_ = serviceAccountId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.metastoreServiceConfig_ = metastoreServiceConfigBuilder_ == null + ? metastoreServiceConfig_ + : metastoreServiceConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sparkHistoryServerConfig_ = sparkHistoryServerConfigBuilder_ == null + ? sparkHistoryServerConfig_ + : sparkHistoryServerConfigBuilder_.build(); + } + } + + @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.SparkProperties) { + return mergeFrom((com.google.cloud.bigquery.connection.v1.SparkProperties)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.SparkProperties other) { + if (other == com.google.cloud.bigquery.connection.v1.SparkProperties.getDefaultInstance()) return this; + if (!other.getServiceAccountId().isEmpty()) { + serviceAccountId_ = other.serviceAccountId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasMetastoreServiceConfig()) { + mergeMetastoreServiceConfig(other.getMetastoreServiceConfig()); + } + if (other.hasSparkHistoryServerConfig()) { + mergeSparkHistoryServerConfig(other.getSparkHistoryServerConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + serviceAccountId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: { + input.readMessage( + getMetastoreServiceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: { + input.readMessage( + getSparkHistoryServerConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + private int bitField0_; + + private java.lang.Object serviceAccountId_ = ""; + /** + *
+     * Output only. The account ID of the service created for the purpose of this
+     * connection.
+     * The service account does not have any permissions associated with it when
+     * it is created. After creation, customers delegate permissions to the
+     * service account. When the connection is used in the context of a stored
+     * procedure for Apache Spark in BigQuery, the service account will be used to
+     * connect to the desired resources in Google Cloud.
+     * The account ID is in the form of:
+     * bqcx-<projectnumber>-<uniqueid>@gcp-sa-bigquery-consp.iam.gserviceaccount.com
+     * 
+ * + * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The serviceAccountId. + */ + public java.lang.String getServiceAccountId() { + java.lang.Object ref = serviceAccountId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccountId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. The account ID of the service created for the purpose of this
+     * connection.
+     * The service account does not have any permissions associated with it when
+     * it is created. After creation, customers delegate permissions to the
+     * service account. When the connection is used in the context of a stored
+     * procedure for Apache Spark in BigQuery, the service account will be used to
+     * connect to the desired resources in Google Cloud.
+     * The account ID is in the form of:
+     * bqcx-<projectnumber>-<uniqueid>@gcp-sa-bigquery-consp.iam.gserviceaccount.com
+     * 
+ * + * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for serviceAccountId. + */ + public com.google.protobuf.ByteString + getServiceAccountIdBytes() { + java.lang.Object ref = serviceAccountId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + serviceAccountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The account ID of the service created for the purpose of this
+     * connection.
+     * The service account does not have any permissions associated with it when
+     * it is created. After creation, customers delegate permissions to the
+     * service account. When the connection is used in the context of a stored
+     * procedure for Apache Spark in BigQuery, the service account will be used to
+     * connect to the desired resources in Google Cloud.
+     * The account ID is in the form of:
+     * bqcx-<projectnumber>-<uniqueid>@gcp-sa-bigquery-consp.iam.gserviceaccount.com
+     * 
+ * + * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The serviceAccountId to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + serviceAccountId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Output only. The account ID of the service created for the purpose of this
+     * connection.
+     * The service account does not have any permissions associated with it when
+     * it is created. After creation, customers delegate permissions to the
+     * service account. When the connection is used in the context of a stored
+     * procedure for Apache Spark in BigQuery, the service account will be used to
+     * connect to the desired resources in Google Cloud.
+     * The account ID is in the form of:
+     * bqcx-<projectnumber>-<uniqueid>@gcp-sa-bigquery-consp.iam.gserviceaccount.com
+     * 
+ * + * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearServiceAccountId() { + serviceAccountId_ = getDefaultInstance().getServiceAccountId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Output only. The account ID of the service created for the purpose of this
+     * connection.
+     * The service account does not have any permissions associated with it when
+     * it is created. After creation, customers delegate permissions to the
+     * service account. When the connection is used in the context of a stored
+     * procedure for Apache Spark in BigQuery, the service account will be used to
+     * connect to the desired resources in Google Cloud.
+     * The account ID is in the form of:
+     * bqcx-<projectnumber>-<uniqueid>@gcp-sa-bigquery-consp.iam.gserviceaccount.com
+     * 
+ * + * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The bytes for serviceAccountId to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + serviceAccountId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastoreServiceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig, com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.Builder, com.google.cloud.bigquery.connection.v1.MetastoreServiceConfigOrBuilder> metastoreServiceConfigBuilder_; + /** + *
+     * Optional. Dataproc Metastore Service configuration for the connection.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the metastoreServiceConfig field is set. + */ + public boolean hasMetastoreServiceConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Optional. Dataproc Metastore Service configuration for the connection.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The metastoreServiceConfig. + */ + public com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig getMetastoreServiceConfig() { + if (metastoreServiceConfigBuilder_ == null) { + return metastoreServiceConfig_ == null ? com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.getDefaultInstance() : metastoreServiceConfig_; + } else { + return metastoreServiceConfigBuilder_.getMessage(); + } + } + /** + *
+     * Optional. Dataproc Metastore Service configuration for the connection.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setMetastoreServiceConfig(com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig value) { + if (metastoreServiceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metastoreServiceConfig_ = value; + } else { + metastoreServiceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Optional. Dataproc Metastore Service configuration for the connection.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setMetastoreServiceConfig( + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.Builder builderForValue) { + if (metastoreServiceConfigBuilder_ == null) { + metastoreServiceConfig_ = builderForValue.build(); + } else { + metastoreServiceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Optional. Dataproc Metastore Service configuration for the connection.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeMetastoreServiceConfig(com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig value) { + if (metastoreServiceConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + metastoreServiceConfig_ != null && + metastoreServiceConfig_ != com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.getDefaultInstance()) { + getMetastoreServiceConfigBuilder().mergeFrom(value); + } else { + metastoreServiceConfig_ = value; + } + } else { + metastoreServiceConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Optional. Dataproc Metastore Service configuration for the connection.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearMetastoreServiceConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + metastoreServiceConfig_ = null; + if (metastoreServiceConfigBuilder_ != null) { + metastoreServiceConfigBuilder_.dispose(); + metastoreServiceConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Optional. Dataproc Metastore Service configuration for the connection.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.Builder getMetastoreServiceConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getMetastoreServiceConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Optional. Dataproc Metastore Service configuration for the connection.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.bigquery.connection.v1.MetastoreServiceConfigOrBuilder getMetastoreServiceConfigOrBuilder() { + if (metastoreServiceConfigBuilder_ != null) { + return metastoreServiceConfigBuilder_.getMessageOrBuilder(); + } else { + return metastoreServiceConfig_ == null ? + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.getDefaultInstance() : metastoreServiceConfig_; + } + } + /** + *
+     * Optional. Dataproc Metastore Service configuration for the connection.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig, com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.Builder, com.google.cloud.bigquery.connection.v1.MetastoreServiceConfigOrBuilder> + getMetastoreServiceConfigFieldBuilder() { + if (metastoreServiceConfigBuilder_ == null) { + metastoreServiceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig, com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.Builder, com.google.cloud.bigquery.connection.v1.MetastoreServiceConfigOrBuilder>( + getMetastoreServiceConfig(), + getParentForChildren(), + isClean()); + metastoreServiceConfig_ = null; + } + return metastoreServiceConfigBuilder_; + } + + private com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig sparkHistoryServerConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig, com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.Builder, com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfigOrBuilder> sparkHistoryServerConfigBuilder_; + /** + *
+     * Optional. Spark History Server configuration for the connection.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the sparkHistoryServerConfig field is set. + */ + public boolean hasSparkHistoryServerConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Optional. Spark History Server configuration for the connection.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The sparkHistoryServerConfig. + */ + public com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig getSparkHistoryServerConfig() { + if (sparkHistoryServerConfigBuilder_ == null) { + return sparkHistoryServerConfig_ == null ? com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.getDefaultInstance() : sparkHistoryServerConfig_; + } else { + return sparkHistoryServerConfigBuilder_.getMessage(); + } + } + /** + *
+     * Optional. Spark History Server configuration for the connection.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setSparkHistoryServerConfig(com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig value) { + if (sparkHistoryServerConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sparkHistoryServerConfig_ = value; + } else { + sparkHistoryServerConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Optional. Spark History Server configuration for the connection.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setSparkHistoryServerConfig( + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.Builder builderForValue) { + if (sparkHistoryServerConfigBuilder_ == null) { + sparkHistoryServerConfig_ = builderForValue.build(); + } else { + sparkHistoryServerConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Optional. Spark History Server configuration for the connection.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeSparkHistoryServerConfig(com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig value) { + if (sparkHistoryServerConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + sparkHistoryServerConfig_ != null && + sparkHistoryServerConfig_ != com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.getDefaultInstance()) { + getSparkHistoryServerConfigBuilder().mergeFrom(value); + } else { + sparkHistoryServerConfig_ = value; + } + } else { + sparkHistoryServerConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Optional. Spark History Server configuration for the connection.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearSparkHistoryServerConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + sparkHistoryServerConfig_ = null; + if (sparkHistoryServerConfigBuilder_ != null) { + sparkHistoryServerConfigBuilder_.dispose(); + sparkHistoryServerConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Optional. Spark History Server configuration for the connection.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.Builder getSparkHistoryServerConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getSparkHistoryServerConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Optional. Spark History Server configuration for the connection.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfigOrBuilder getSparkHistoryServerConfigOrBuilder() { + if (sparkHistoryServerConfigBuilder_ != null) { + return sparkHistoryServerConfigBuilder_.getMessageOrBuilder(); + } else { + return sparkHistoryServerConfig_ == null ? + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.getDefaultInstance() : sparkHistoryServerConfig_; + } + } + /** + *
+     * Optional. Spark History Server configuration for the connection.
+     * 
+ * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig, com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.Builder, com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfigOrBuilder> + getSparkHistoryServerConfigFieldBuilder() { + if (sparkHistoryServerConfigBuilder_ == null) { + sparkHistoryServerConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig, com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.Builder, com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfigOrBuilder>( + getSparkHistoryServerConfig(), + getParentForChildren(), + isClean()); + sparkHistoryServerConfig_ = null; + } + return sparkHistoryServerConfigBuilder_; + } + @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.SparkProperties) + } + + // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.SparkProperties) + private static final com.google.cloud.bigquery.connection.v1.SparkProperties DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.SparkProperties(); + } + + public static com.google.cloud.bigquery.connection.v1.SparkProperties getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SparkProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.SparkProperties getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkPropertiesOrBuilder.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkPropertiesOrBuilder.java new file mode 100644 index 000000000000..c1bc22565c04 --- /dev/null +++ b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkPropertiesOrBuilder.java @@ -0,0 +1,99 @@ +// 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 SparkPropertiesOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.SparkProperties) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. The account ID of the service created for the purpose of this
+   * connection.
+   * The service account does not have any permissions associated with it when
+   * it is created. After creation, customers delegate permissions to the
+   * service account. When the connection is used in the context of a stored
+   * procedure for Apache Spark in BigQuery, the service account will be used to
+   * connect to the desired resources in Google Cloud.
+   * The account ID is in the form of:
+   * bqcx-<projectnumber>-<uniqueid>@gcp-sa-bigquery-consp.iam.gserviceaccount.com
+   * 
+ * + * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The serviceAccountId. + */ + java.lang.String getServiceAccountId(); + /** + *
+   * Output only. The account ID of the service created for the purpose of this
+   * connection.
+   * The service account does not have any permissions associated with it when
+   * it is created. After creation, customers delegate permissions to the
+   * service account. When the connection is used in the context of a stored
+   * procedure for Apache Spark in BigQuery, the service account will be used to
+   * connect to the desired resources in Google Cloud.
+   * The account ID is in the form of:
+   * bqcx-<projectnumber>-<uniqueid>@gcp-sa-bigquery-consp.iam.gserviceaccount.com
+   * 
+ * + * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for serviceAccountId. + */ + com.google.protobuf.ByteString + getServiceAccountIdBytes(); + + /** + *
+   * Optional. Dataproc Metastore Service configuration for the connection.
+   * 
+ * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the metastoreServiceConfig field is set. + */ + boolean hasMetastoreServiceConfig(); + /** + *
+   * Optional. Dataproc Metastore Service configuration for the connection.
+   * 
+ * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The metastoreServiceConfig. + */ + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig getMetastoreServiceConfig(); + /** + *
+   * Optional. Dataproc Metastore Service configuration for the connection.
+   * 
+ * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfigOrBuilder getMetastoreServiceConfigOrBuilder(); + + /** + *
+   * Optional. Spark History Server configuration for the connection.
+   * 
+ * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the sparkHistoryServerConfig field is set. + */ + boolean hasSparkHistoryServerConfig(); + /** + *
+   * Optional. Spark History Server configuration for the connection.
+   * 
+ * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The sparkHistoryServerConfig. + */ + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig getSparkHistoryServerConfig(); + /** + *
+   * Optional. Spark History Server configuration for the connection.
+   * 
+ * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfigOrBuilder getSparkHistoryServerConfigOrBuilder(); +} diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequest.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequest.java similarity index 62% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequest.java rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequest.java index 043e192ef15c..99291171c1f8 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequest.java +++ b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequest.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; /** - * - * *
  * The request for
  * [ConnectionService.UpdateConnection][google.cloud.bigquery.connection.v1.ConnectionService.UpdateConnection].
@@ -28,62 +11,54 @@
  *
  * 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;
   }
-
-  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;
-
   @SuppressWarnings("serial")
   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 @@ -92,32 +67,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 { @@ -128,16 +101,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 @@ -145,54 +113,37 @@ 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() { - return connection_ == null - ? com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() - : connection_; + return connection_ == null ? com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() : connection_; } 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 @@ -200,15 +151,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 @@ -216,14 +163,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() { @@ -231,7 +175,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -243,7 +186,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -266,10 +210,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -279,22 +225,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -323,104 +271,96 @@ 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].
@@ -428,32 +368,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -473,14 +414,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();
     }
 
@@ -495,26 +435,26 @@ 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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest result = new com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest result) {
+    private void buildPartial0(com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.connection_ = connectionBuilder_ == null ? connection_ : connectionBuilder_.build();
+        result.connection_ = connectionBuilder_ == null
+            ? connection_
+            : connectionBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null
+            ? updateMask_
+            : updateMaskBuilder_.build();
       }
     }
 
@@ -522,50 +462,46 @@ private void buildPartial0(
     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_;
         bitField0_ |= 0x00000001;
@@ -603,31 +539,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getConnectionFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getConnectionFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getUpdateMaskFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -637,28 +573,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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; @@ -667,24 +598,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 { @@ -692,41 +620,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -736,24 +653,18 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -763,58 +674,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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) { @@ -830,15 +722,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) { @@ -852,22 +740,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 (((bitField0_ & 0x00000002) != 0) - && connection_ != null - && connection_ - != com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + connection_ != null && + connection_ != com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance()) { getConnectionBuilder().mergeFrom(value); } else { connection_ = value; @@ -880,15 +763,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -901,15 +780,11 @@ 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() { bitField0_ |= 0x00000002; @@ -917,48 +792,36 @@ public com.google.cloud.bigquery.connection.v1.Connection.Builder getConnectionB 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_; @@ -966,55 +829,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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * 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) { @@ -1030,16 +877,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(); } else { @@ -1050,20 +895,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 (((bitField0_ & 0x00000004) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -1076,14 +918,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1096,14 +935,11 @@ 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() { bitField0_ |= 0x00000004; @@ -1111,53 +947,43 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { 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); } @@ -1167,43 +993,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1215,8 +1039,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/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequestOrBuilder.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequestOrBuilder.java similarity index 56% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequestOrBuilder.java rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequestOrBuilder.java index 3ef85f0d6215..60267c6ca14b 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequestOrBuilder.java +++ b/owl-bot-staging/java-bigqueryconnection/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/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto similarity index 86% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto rename to owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto index 6ab5a8b54639..d1f416cc634c 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto +++ b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto @@ -30,6 +30,14 @@ option go_package = "cloud.google.com/go/bigquery/connection/apiv1/connectionpb; option java_multiple_files = true; option java_package = "com.google.cloud.bigquery.connection.v1"; option php_namespace = "Google\\Cloud\\BigQuery\\Connection\\V1"; +option (google.api.resource_definition) = { + type: "dataproc.googleapis.com/Cluster" + pattern: "projects/{project}/regions/{region}/clusters/{cluster}" +}; +option (google.api.resource_definition) = { + type: "metastore.googleapis.com/Service" + pattern: "projects/{project}/locations/{location}/services/{service}" +}; // Manages external data source connections and credentials. service ConnectionService { @@ -252,6 +260,9 @@ message Connection { // Cloud Resource properties. CloudResourceProperties cloud_resource = 22; + + // Spark properties. + SparkProperties spark = 23; } // Output only. The creation timestamp of the connection. @@ -424,3 +435,59 @@ message CloudResourceProperties { // @gcp-sa-bigquery-cloudresource.iam.gserviceaccount.com string service_account_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } + +// Configuration of the Dataproc Metastore Service. +message MetastoreServiceConfig { + // Optional. Resource name of an existing Dataproc Metastore service. + // + // Example: + // + // * `projects/[project_id]/locations/[region]/services/[service_id]` + string metastore_service = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "metastore.googleapis.com/Service" + } + ]; +} + +// Configuration of the Spark History Server. +message SparkHistoryServerConfig { + // Optional. Resource name of an existing Dataproc Cluster to act as a Spark + // History Server for the connection. + // + // Example: + // + // * `projects/[project_id]/regions/[region]/clusters/[cluster_name]` + string dataproc_cluster = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "dataproc.googleapis.com/Cluster" + } + ]; +} + +// Container for connection properties to execute stored procedures for Apache +// Spark. +message SparkProperties { + // Output only. The account ID of the service created for the purpose of this + // connection. + // + // The service account does not have any permissions associated with it when + // it is created. After creation, customers delegate permissions to the + // service account. When the connection is used in the context of a stored + // procedure for Apache Spark in BigQuery, the service account will be used to + // connect to the desired resources in Google Cloud. + // + // The account ID is in the form of: + // bqcx--@gcp-sa-bigquery-consp.iam.gserviceaccount.com + string service_account_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Dataproc Metastore Service configuration for the connection. + MetastoreServiceConfig metastore_service_config = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Spark History Server configuration for the connection. + SparkHistoryServerConfig spark_history_server_config = 4 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetEndpoint.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/AsyncCreateConnection.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/AsyncCreateConnection.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/AsyncCreateConnection.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/AsyncCreateConnection.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnection.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnection.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnection.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnection.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnectionLocationnameConnectionString.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnectionLocationnameConnectionString.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnectionLocationnameConnectionString.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnectionLocationnameConnectionString.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnectionStringConnectionString.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnectionStringConnectionString.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnectionStringConnectionString.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnectionStringConnectionString.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/AsyncDeleteConnection.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/AsyncDeleteConnection.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/AsyncDeleteConnection.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/AsyncDeleteConnection.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnection.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnection.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnection.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnection.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnectionConnectionname.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnectionConnectionname.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnectionConnectionname.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnectionConnectionname.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnectionString.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnectionString.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnectionString.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnectionString.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/AsyncGetConnection.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/AsyncGetConnection.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/AsyncGetConnection.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/AsyncGetConnection.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnection.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnection.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnection.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnection.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnectionConnectionname.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnectionConnectionname.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnectionConnectionname.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnectionConnectionname.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnectionString.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnectionString.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnectionString.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnectionString.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/AsyncGetIamPolicy.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/AsyncGetIamPolicy.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/AsyncGetIamPolicy.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/AsyncGetIamPolicy.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicy.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicy.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicy.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicy.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicyResourcenameGetpolicyoptions.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicyResourcenameGetpolicyoptions.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicyResourcenameGetpolicyoptions.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicyResourcenameGetpolicyoptions.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicyStringGetpolicyoptions.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicyStringGetpolicyoptions.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicyStringGetpolicyoptions.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicyStringGetpolicyoptions.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/AsyncListConnections.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/AsyncListConnections.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/AsyncListConnections.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/AsyncListConnections.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/AsyncListConnectionsPaged.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/AsyncListConnectionsPaged.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/AsyncListConnectionsPaged.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/AsyncListConnectionsPaged.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnections.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnections.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnections.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnections.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnectionsLocationname.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnectionsLocationname.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnectionsLocationname.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnectionsLocationname.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnectionsString.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnectionsString.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnectionsString.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnectionsString.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/AsyncSetIamPolicy.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/AsyncSetIamPolicy.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/AsyncSetIamPolicy.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/AsyncSetIamPolicy.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicy.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicy.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicy.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicy.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicyStringPolicy.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicyStringPolicy.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicyStringPolicy.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicyStringPolicy.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/AsyncTestIamPermissions.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/AsyncTestIamPermissions.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/AsyncTestIamPermissions.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/AsyncTestIamPermissions.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissions.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissions.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissions.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissions.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissionsStringListstring.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissionsStringListstring.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissionsStringListstring.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissionsStringListstring.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/AsyncUpdateConnection.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/AsyncUpdateConnection.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/AsyncUpdateConnection.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/AsyncUpdateConnection.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnection.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnection.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnection.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnection.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnectionConnectionnameConnectionFieldmask.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnectionConnectionnameConnectionFieldmask.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnectionConnectionnameConnectionFieldmask.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnectionConnectionnameConnectionFieldmask.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnectionStringConnectionFieldmask.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnectionStringConnectionFieldmask.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnectionStringConnectionFieldmask.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnectionStringConnectionFieldmask.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservicesettings/createconnection/SyncCreateConnection.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservicesettings/createconnection/SyncCreateConnection.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservicesettings/createconnection/SyncCreateConnection.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservicesettings/createconnection/SyncCreateConnection.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/stub/connectionservicestubsettings/createconnection/SyncCreateConnection.java b/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/stub/connectionservicestubsettings/createconnection/SyncCreateConnection.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/stub/connectionservicestubsettings/createconnection/SyncCreateConnection.java rename to owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/stub/connectionservicestubsettings/createconnection/SyncCreateConnection.java diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java similarity index 100% rename from java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java similarity index 99% rename from java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java index d87b6ea20ecf..170f7b72180b 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java +++ b/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java @@ -25,6 +25,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; diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/gapic_metadata.json b/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/gapic_metadata.json similarity index 100% rename from java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/gapic_metadata.json rename to owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/gapic_metadata.json diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/package-info.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/package-info.java similarity index 100% rename from java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/package-info.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/package-info.java diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStub.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStub.java similarity index 100% rename from java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStub.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStub.java diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java similarity index 100% rename from java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceCallableFactory.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceCallableFactory.java similarity index 100% rename from java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceCallableFactory.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceCallableFactory.java diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java similarity index 99% rename from java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java index 012a6e07a1b8..fd17eef2a7a4 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java +++ b/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java @@ -35,6 +35,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceCallableFactory.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceCallableFactory.java similarity index 100% rename from java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceCallableFactory.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceCallableFactory.java diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceStub.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceStub.java similarity index 100% rename from java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceStub.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceStub.java diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientHttpJsonTest.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientHttpJsonTest.java similarity index 100% rename from java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientHttpJsonTest.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientHttpJsonTest.java diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientTest.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientTest.java similarity index 100% rename from java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientTest.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientTest.java diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionService.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionService.java similarity index 100% rename from java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionService.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionService.java diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionServiceImpl.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionServiceImpl.java similarity index 100% rename from java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionServiceImpl.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionServiceImpl.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java new file mode 100644 index 000000000000..fa290692bcce --- /dev/null +++ b/owl-bot-staging/java-bigqueryconnection/v1beta1/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java @@ -0,0 +1,1031 @@ +package com.google.cloud.bigquery.connection.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Manages external data source connections and credentials.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/bigquery/connection/v1beta1/connection.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ConnectionServiceGrpc { + + private ConnectionServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.bigquery.connection.v1beta1.ConnectionService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateConnection", + requestType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest.class, + responseType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateConnectionMethod() { + io.grpc.MethodDescriptor getCreateConnectionMethod; + if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { + ConnectionServiceGrpc.getCreateConnectionMethod = getCreateConnectionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("CreateConnection")) + .build(); + } + } + } + return getCreateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConnection", + requestType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.class, + responseType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetConnectionMethod() { + io.grpc.MethodDescriptor getGetConnectionMethod; + if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { + ConnectionServiceGrpc.getGetConnectionMethod = getGetConnectionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("GetConnection")) + .build(); + } + } + } + return getGetConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor getListConnectionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConnections", + requestType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.class, + responseType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListConnectionsMethod() { + io.grpc.MethodDescriptor getListConnectionsMethod; + if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { + ConnectionServiceGrpc.getListConnectionsMethod = getListConnectionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnections")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("ListConnections")) + .build(); + } + } + } + return getListConnectionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConnection", + requestType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest.class, + responseType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateConnectionMethod() { + io.grpc.MethodDescriptor getUpdateConnectionMethod; + if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { + ConnectionServiceGrpc.getUpdateConnectionMethod = getUpdateConnectionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("UpdateConnection")) + .build(); + } + } + } + return getUpdateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateConnectionCredentialMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConnectionCredential", + requestType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateConnectionCredentialMethod() { + io.grpc.MethodDescriptor getUpdateConnectionCredentialMethod; + if ((getUpdateConnectionCredentialMethod = ConnectionServiceGrpc.getUpdateConnectionCredentialMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getUpdateConnectionCredentialMethod = ConnectionServiceGrpc.getUpdateConnectionCredentialMethod) == null) { + ConnectionServiceGrpc.getUpdateConnectionCredentialMethod = getUpdateConnectionCredentialMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConnectionCredential")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("UpdateConnectionCredential")) + .build(); + } + } + } + return getUpdateConnectionCredentialMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConnection", + requestType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteConnectionMethod() { + io.grpc.MethodDescriptor getDeleteConnectionMethod; + if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { + ConnectionServiceGrpc.getDeleteConnectionMethod = getDeleteConnectionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("DeleteConnection")) + .build(); + } + } + } + return getDeleteConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", + requestType = com.google.iam.v1.GetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetIamPolicyMethod() { + io.grpc.MethodDescriptor getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { + ConnectionServiceGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", + requestType = com.google.iam.v1.SetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetIamPolicyMethod() { + io.grpc.MethodDescriptor getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { + ConnectionServiceGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", + requestType = com.google.iam.v1.TestIamPermissionsRequest.class, + responseType = com.google.iam.v1.TestIamPermissionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor getTestIamPermissionsMethod; + if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) == null) { + ConnectionServiceGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static ConnectionServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceStub(channel, callOptions); + } + }; + return ConnectionServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ConnectionServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceBlockingStub(channel, callOptions); + } + }; + return ConnectionServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static ConnectionServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceFutureStub(channel, callOptions); + } + }; + return ConnectionServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Manages external data source connections and credentials.
+   * 
+ */ + public static abstract class ConnectionServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a new connection.
+     * 
+ */ + public void createConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateConnectionMethod(), responseObserver); + } + + /** + *
+     * Returns specified connection.
+     * 
+ */ + public void getConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConnectionMethod(), responseObserver); + } + + /** + *
+     * Returns a list of connections in the given project.
+     * 
+ */ + public void listConnections(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListConnectionsMethod(), responseObserver); + } + + /** + *
+     * Updates the specified connection. For security reasons, also resets
+     * credential if connection properties are in the update field mask.
+     * 
+ */ + public void updateConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConnectionMethod(), responseObserver); + } + + /** + *
+     * Sets the credential for the specified connection.
+     * 
+ */ + public void updateConnectionCredential(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConnectionCredentialMethod(), responseObserver); + } + + /** + *
+     * Deletes connection and associated credential.
+     * 
+ */ + public void deleteConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteConnectionMethod(), responseObserver); + } + + /** + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); + } + + /** + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * Can return `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.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 `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.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 `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.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 `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_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/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionName.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionName.java similarity index 100% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionName.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionName.java diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java similarity index 58% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java index 779ae5e86b14..894609498f0c 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java +++ b/owl-bot-staging/java-bigqueryconnection/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,119 +5,89 @@ 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].
@@ -140,16 +95,15 @@ public interface CreateConnectionRequestOrBuilder
    *
    * 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_ = "";
@@ -157,48 +111,39 @@ 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;
     }
-
-    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;
-
     @SuppressWarnings("serial")
     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 @@ -207,32 +152,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 { @@ -241,18 +184,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int CONNECTION_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object connectionId_ = ""; /** - * - * *
      * Optional. Connection id that should be assigned to the created connection.
      * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The connectionId. */ @java.lang.Override @@ -261,29 +200,29 @@ public java.lang.String getConnectionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connectionId_ = s; return s; } } /** - * - * *
      * Optional. Connection id that should be assigned to the created connection.
      * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for connectionId. */ @java.lang.Override - public com.google.protobuf.ByteString getConnectionIdBytes() { + public com.google.protobuf.ByteString + getConnectionIdBytes() { java.lang.Object ref = connectionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); connectionId_ = b; return b; } else { @@ -294,16 +233,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 @@ -311,47 +245,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() { - return connection_ == null - ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection - .getDefaultInstance() - : connection_; + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder getConnectionOrBuilder() { + return connection_ == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance() : connection_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -363,7 +280,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -389,7 +307,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -399,22 +318,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -440,114 +358,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 @@ -557,8 +449,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The request for
      * [ConnectionService.CreateConnection][google.cloud.bigquery.connection.v1beta1.ConnectionService.CreateConnection].
@@ -566,37 +456,33 @@ protected Builder newBuilderForType(
      *
      * 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()
-      private Builder() {}
+      // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -612,23 +498,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);
         }
@@ -636,22 +518,14 @@ 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);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+      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);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(
-          com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest
-              result) {
+      private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.parent_ = parent_;
@@ -660,8 +534,9 @@ private void buildPartial0(
           result.connectionId_ = connectionId_;
         }
         if (((from_bitField0_ & 0x00000004) != 0)) {
-          result.connection_ =
-              connectionBuilder_ == null ? connection_ : connectionBuilder_.build();
+          result.connection_ = connectionBuilder_ == null
+              ? connection_
+              : connectionBuilder_.build();
         }
       }
 
@@ -669,57 +544,46 @@ private void buildPartial0(
       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_;
           bitField0_ |= 0x00000001;
@@ -759,31 +623,29 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  parent_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 18:
-                {
-                  connectionId_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 18
-              case 26:
-                {
-                  input.readMessage(getConnectionFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 26
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 18: {
+                connectionId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+              case 26: {
+                input.readMessage(
+                    getConnectionFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -793,28 +655,23 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       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; @@ -823,24 +680,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 { @@ -848,41 +702,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -892,24 +735,18 @@ public Builder clearParent() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -919,20 +756,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; @@ -941,21 +776,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 { @@ -963,35 +797,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setConnectionId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } connectionId_ = value; bitField0_ |= 0x00000002; 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() { @@ -1001,21 +828,17 @@ public Builder clearConnectionId() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setConnectionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); connectionId_ = value; bitField0_ |= 0x00000002; @@ -1025,63 +848,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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
        * 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(); @@ -1095,19 +896,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(); } else { @@ -1118,24 +914,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 (((bitField0_ & 0x00000004) != 0) - && connection_ != null - && connection_ - != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection - .getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + connection_ != null && + connection_ != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance()) { getConnectionBuilder().mergeFrom(value); } else { connection_ = value; @@ -1148,15 +937,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1169,72 +954,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() { bitField0_ |= 0x00000004; 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) { @@ -1247,48 +1012,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1300,51 +1058,39 @@ 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].
@@ -1352,64 +1098,54 @@ public interface GetConnectionRequestOrBuilder
    *
    * 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;
     }
-
-    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;
-
     @SuppressWarnings("serial")
     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 @@ -1418,32 +1154,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 { @@ -1452,7 +1186,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1464,7 +1197,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1488,17 +1222,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1517,102 +1249,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 @@ -1622,8 +1340,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The request for
      * [ConnectionService.GetConnection][google.cloud.bigquery.connection.v1beta1.ConnectionService.GetConnection].
@@ -1631,36 +1347,33 @@ protected Builder newBuilderForType(
      *
      * 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()
-      private Builder() {}
+      // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1670,23 +1383,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);
         }
@@ -1694,21 +1403,14 @@ 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);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+      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);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(
-          com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest
-              result) {
+      private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.name_ = name_;
@@ -1719,56 +1421,46 @@ private void buildPartial0(
       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_;
           bitField0_ |= 0x00000001;
@@ -1800,19 +1492,17 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  name_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1822,28 +1512,23 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       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; @@ -1852,24 +1537,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 { @@ -1877,41 +1559,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -1921,31 +1592,24 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1958,46 +1622,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2009,114 +1668,86 @@ 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].
@@ -2124,16 +1755,15 @@ public interface ListConnectionsRequestOrBuilder
    *
    * 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_ = "";
@@ -2141,48 +1771,39 @@ 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;
     }
-
-    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;
-
     @SuppressWarnings("serial")
     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 @@ -2191,32 +1812,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 { @@ -2227,15 +1846,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 @@ -2243,53 +1858,38 @@ 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() { - return maxResults_ == null - ? com.google.protobuf.UInt32Value.getDefaultInstance() - : maxResults_; + return maxResults_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxResults_; } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
      * Page token.
      * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -2298,29 +1898,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 { @@ -2329,7 +1929,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2341,7 +1940,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -2364,7 +1964,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (maxResults_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxResults()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMaxResults()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -2377,22 +1978,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2417,114 +2018,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 @@ -2534,8 +2109,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The request for
      * [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1beta1.ConnectionService.ListConnections].
@@ -2543,37 +2116,33 @@ protected Builder newBuilderForType(
      *
      * 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()
-      private Builder() {}
+      // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -2589,23 +2158,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);
         }
@@ -2613,28 +2178,22 @@ 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);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+      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);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(
-          com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest
-              result) {
+      private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.parent_ = parent_;
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
-          result.maxResults_ =
-              maxResultsBuilder_ == null ? maxResults_ : maxResultsBuilder_.build();
+          result.maxResults_ = maxResultsBuilder_ == null
+              ? maxResults_
+              : maxResultsBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000004) != 0)) {
           result.pageToken_ = pageToken_;
@@ -2645,57 +2204,46 @@ private void buildPartial0(
       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_;
           bitField0_ |= 0x00000001;
@@ -2735,31 +2283,29 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  parent_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 18:
-                {
-                  input.readMessage(getMaxResultsFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 18
-              case 26:
-                {
-                  pageToken_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 26
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 18: {
+                input.readMessage(
+                    getMaxResultsFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+              case 26: {
+                pageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2769,28 +2315,23 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       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; @@ -2799,24 +2340,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 { @@ -2824,41 +2362,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -2868,24 +2395,18 @@ public Builder clearParent() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -2895,58 +2416,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * 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) { @@ -2962,17 +2464,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(); } else { @@ -2983,21 +2482,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 (((bitField0_ & 0x00000002) != 0) - && maxResults_ != null - && maxResults_ != com.google.protobuf.UInt32Value.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + maxResults_ != null && + maxResults_ != com.google.protobuf.UInt32Value.getDefaultInstance()) { getMaxResultsBuilder().mergeFrom(value); } else { maxResults_ = value; @@ -3010,15 +2505,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -3031,15 +2522,11 @@ 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() { bitField0_ |= 0x00000002; @@ -3047,48 +2534,36 @@ public com.google.protobuf.UInt32Value.Builder getMaxResultsBuilder() { 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_; @@ -3096,20 +2571,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; @@ -3118,21 +2591,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 { @@ -3140,35 +2612,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * Page token.
        * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -3178,28 +2643,23 @@ public Builder clearPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3212,47 +2672,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3264,67 +2718,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.
      * 
@@ -3333,33 +2774,25 @@ 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].
@@ -3367,16 +2800,15 @@ com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection getConne
    *
    * 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();
@@ -3384,45 +2816,38 @@ 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;
     }
-
-    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;
-
     @SuppressWarnings("serial")
     private volatile java.lang.Object nextPageToken_ = "";
     /**
-     *
-     *
      * 
      * Next page token.
      * 
* * string next_page_token = 1; - * * @return The nextPageToken. */ @java.lang.Override @@ -3431,29 +2856,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 { @@ -3462,13 +2887,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int CONNECTIONS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private java.util.List - connections_; + private java.util.List connections_; /** - * - * *
      * List of connections.
      * 
@@ -3476,13 +2897,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.
      * 
@@ -3490,15 +2908,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.
      * 
@@ -3510,8 +2924,6 @@ public int getConnectionsCount() { return connections_.size(); } /** - * - * *
      * List of connections.
      * 
@@ -3519,13 +2931,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.
      * 
@@ -3533,13 +2942,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; @@ -3551,7 +2959,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nextPageToken_); } @@ -3571,7 +2980,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3581,19 +2991,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3616,114 +3024,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 @@ -3733,8 +3115,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The response for
      * [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1beta1.ConnectionService.ListConnections].
@@ -3742,37 +3122,33 @@ protected Builder newBuilderForType(
      *
      * 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()
-      private Builder() {}
+      // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -3789,23 +3165,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);
         }
@@ -3813,23 +3185,15 @@ 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);
         buildPartialRepeatedFields(result);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartialRepeatedFields(
-          com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse
-              result) {
+      private void buildPartialRepeatedFields(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse result) {
         if (connectionsBuilder_ == null) {
           if (((bitField0_ & 0x00000002) != 0)) {
             connections_ = java.util.Collections.unmodifiableList(connections_);
@@ -3841,9 +3205,7 @@ private void buildPartialRepeatedFields(
         }
       }
 
-      private void buildPartial0(
-          com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse
-              result) {
+      private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.nextPageToken_ = nextPageToken_;
@@ -3854,57 +3216,46 @@ private void buildPartial0(
       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_;
           bitField0_ |= 0x00000001;
@@ -3928,10 +3279,9 @@ public Builder mergeFrom(
               connectionsBuilder_ = null;
               connections_ = other.connections_;
               bitField0_ = (bitField0_ & ~0x00000002);
-              connectionsBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getConnectionsFieldBuilder()
-                      : null;
+              connectionsBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getConnectionsFieldBuilder() : null;
             } else {
               connectionsBuilder_.addAllMessages(other.connections_);
             }
@@ -3963,34 +3313,30 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  nextPageToken_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 18:
-                {
-                  com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection m =
-                      input.readMessage(
-                          com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection
-                              .parser(),
-                          extensionRegistry);
-                  if (connectionsBuilder_ == null) {
-                    ensureConnectionsIsMutable();
-                    connections_.add(m);
-                  } else {
-                    connectionsBuilder_.addMessage(m);
-                  }
-                  break;
-                } // case 18
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                nextPageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 18: {
+                com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection m =
+                    input.readMessage(
+                        com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.parser(),
+                        extensionRegistry);
+                if (connectionsBuilder_ == null) {
+                  ensureConnectionsIsMutable();
+                  connections_.add(m);
+                } else {
+                  connectionsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -4000,25 +3346,22 @@ public Builder mergeFrom(
         } // finally
         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; @@ -4027,21 +3370,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 { @@ -4049,35 +3391,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Next page token.
        * 
* * string next_page_token = 1; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -4087,21 +3422,17 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000001; @@ -4109,37 +3440,26 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { 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_ & 0x00000002) != 0)) { - connections_ = - new java.util.ArrayList< - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection>( - connections_); + connections_ = new java.util.ArrayList(connections_); bitField0_ |= 0x00000002; - } + } } 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 { @@ -4147,8 +3467,6 @@ private void ensureConnectionsIsMutable() { } } /** - * - * *
        * List of connections.
        * 
@@ -4163,16 +3481,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 { @@ -4180,8 +3495,6 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection g } } /** - * - * *
        * List of connections.
        * 
@@ -4189,8 +3502,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(); @@ -4204,8 +3516,6 @@ public Builder setConnections( return this; } /** - * - * *
        * List of connections.
        * 
@@ -4213,9 +3523,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()); @@ -4226,16 +3534,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(); @@ -4249,8 +3554,6 @@ public Builder addConnections( return this; } /** - * - * *
        * List of connections.
        * 
@@ -4258,8 +3561,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(); @@ -4273,8 +3575,6 @@ public Builder addConnections( return this; } /** - * - * *
        * List of connections.
        * 
@@ -4282,8 +3582,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()); @@ -4294,8 +3593,6 @@ public Builder addConnections( return this; } /** - * - * *
        * List of connections.
        * 
@@ -4303,9 +3600,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()); @@ -4316,8 +3611,6 @@ public Builder addConnections( return this; } /** - * - * *
        * List of connections.
        * 
@@ -4325,12 +3618,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); @@ -4338,8 +3630,6 @@ public Builder addAllConnections( return this; } /** - * - * *
        * List of connections.
        * 
@@ -4357,8 +3647,6 @@ public Builder clearConnections() { return this; } /** - * - * *
        * List of connections.
        * 
@@ -4376,48 +3664,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 { @@ -4425,64 +3704,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_ & 0x00000002) != 0), getParentForChildren(), @@ -4491,7 +3751,6 @@ public Builder removeConnections(int index) { } return connectionsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4504,48 +3763,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4557,131 +3809,93 @@ 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].
@@ -4689,64 +3903,54 @@ public interface UpdateConnectionRequestOrBuilder
    *
    * 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;
     }
-
-    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;
-
     @SuppressWarnings("serial")
     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 @@ -4755,32 +3959,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 { @@ -4791,16 +3993,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 @@ -4808,57 +4005,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() { - return connection_ == null - ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection - .getDefaultInstance() - : connection_; + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder getConnectionOrBuilder() { + return connection_ == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance() : connection_; } 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 @@ -4866,15 +4043,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 @@ -4882,14 +4055,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() { @@ -4897,7 +4067,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4909,7 +4078,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -4932,10 +4102,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -4945,25 +4117,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -4991,114 +4162,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) + 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 @@ -5108,8 +4253,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The request for
      * [ConnectionService.UpdateConnection][google.cloud.bigquery.connection.v1beta1.ConnectionService.UpdateConnection].
@@ -5117,37 +4260,33 @@ protected Builder newBuilderForType(
      *
      * 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()
-      private Builder() {}
+      // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -5167,23 +4306,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);
         }
@@ -5191,33 +4326,27 @@ 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);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+      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);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(
-          com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest
-              result) {
+      private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.name_ = name_;
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
-          result.connection_ =
-              connectionBuilder_ == null ? connection_ : connectionBuilder_.build();
+          result.connection_ = connectionBuilder_ == null
+              ? connection_
+              : connectionBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000004) != 0)) {
-          result.updateMask_ =
-              updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+          result.updateMask_ = updateMaskBuilder_ == null
+              ? updateMask_
+              : updateMaskBuilder_.build();
         }
       }
 
@@ -5225,57 +4354,46 @@ private void buildPartial0(
       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_;
           bitField0_ |= 0x00000001;
@@ -5313,31 +4431,31 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  name_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 18:
-                {
-                  input.readMessage(getConnectionFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 18
-              case 26:
-                {
-                  input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 26
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 18: {
+                input.readMessage(
+                    getConnectionFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+              case 26: {
+                input.readMessage(
+                    getUpdateMaskFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -5347,28 +4465,23 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       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; @@ -5377,24 +4490,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 { @@ -5402,41 +4512,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -5446,24 +4545,18 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -5473,63 +4566,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * 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(); @@ -5543,19 +4614,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(); } else { @@ -5566,24 +4632,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 (((bitField0_ & 0x00000002) != 0) - && connection_ != null - && connection_ - != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection - .getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + connection_ != null && + connection_ != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance()) { getConnectionBuilder().mergeFrom(value); } else { connection_ = value; @@ -5596,15 +4655,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -5617,67 +4672,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() { bitField0_ |= 0x00000002; 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_; @@ -5685,55 +4721,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 ((bitField0_ & 0x00000004) != 0); } /** - * - * *
        * 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) { @@ -5749,16 +4769,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(); } else { @@ -5769,20 +4787,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 (((bitField0_ & 0x00000004) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -5795,14 +4810,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -5815,14 +4827,11 @@ 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() { bitField0_ |= 0x00000004; @@ -5830,51 +4839,40 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { 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) { @@ -5887,48 +4885,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5940,156 +4931,121 @@ 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; } - - 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; - @SuppressWarnings("serial") 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 @@ -6098,30 +5054,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 { @@ -6130,19 +5086,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 @@ -6150,49 +5100,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() { - return credential_ == null - ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - .getDefaultInstance() - : credential_; + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredentialOrBuilder getCredentialOrBuilder() { + return credential_ == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.getDefaultInstance() : credential_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6204,7 +5135,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -6224,7 +5156,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -6234,24 +5167,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -6275,115 +5203,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 @@ -6393,47 +5294,40 @@ 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() - private Builder() {} + // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -6448,26 +5342,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); } @@ -6475,32 +5362,22 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + 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); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .UpdateConnectionCredentialRequest - result) { + private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.credential_ = - credentialBuilder_ == null ? credential_ : credentialBuilder_.build(); + result.credential_ = credentialBuilder_ == null + ? credential_ + : credentialBuilder_.build(); } } @@ -6508,60 +5385,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -6596,25 +5459,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getCredentialFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getCredentialFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -6624,26 +5486,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -6652,22 +5511,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 { @@ -6675,37 +5533,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -6715,22 +5566,18 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -6738,68 +5585,43 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * 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(); @@ -6813,19 +5635,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(); } else { @@ -6836,24 +5653,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 (((bitField0_ & 0x00000002) != 0) - && credential_ != null - && credential_ - != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto - .ConnectionCredential.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + credential_ != null && + credential_ != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.getDefaultInstance()) { getCredentialBuilder().mergeFrom(value); } else { credential_ = value; @@ -6866,15 +5676,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -6887,78 +5693,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() { bitField0_ |= 0x00000002; 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) { @@ -6971,48 +5751,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7024,116 +5797,93 @@ 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; } - - 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; - @SuppressWarnings("serial") 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 @@ -7142,32 +5892,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 { @@ -7176,7 +5924,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7188,7 +5935,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -7212,18 +5960,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -7242,114 +5987,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 @@ -7359,45 +6078,39 @@ 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() - private Builder() {} + // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -7407,23 +6120,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); } @@ -7431,22 +6140,14 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + 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); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest - result) { + private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -7457,57 +6158,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -7539,19 +6229,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -7561,28 +6249,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -7591,24 +6274,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 { @@ -7616,41 +6296,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -7660,31 +6329,24 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7697,48 +6359,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7750,175 +6405,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.
@@ -7926,16 +6544,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_ = "";
@@ -7944,42 +6561,37 @@ 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;
     }
-
-    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;
       }
@@ -7995,38 +6607,32 @@ 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;
-
     @SuppressWarnings("serial")
     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 @@ -8035,30 +6641,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 { @@ -8067,18 +6673,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FRIENDLY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object friendlyName_ = ""; /** - * - * *
      * User provided display name for the connection.
      * 
* * string friendly_name = 2; - * * @return The friendlyName. */ @java.lang.Override @@ -8087,29 +6689,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 { @@ -8118,18 +6720,14 @@ public com.google.protobuf.ByteString getFriendlyNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
      * User provided description.
      * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -8138,29 +6736,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 { @@ -8170,14 +6768,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 @@ -8185,29 +6780,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.
      * 
@@ -8215,27 +6802,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_ = 0L; /** - * - * *
      * Output only. The creation timestamp of the connection.
      * 
* * int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The creationTime. */ @java.lang.Override @@ -8246,14 +6827,11 @@ public long getCreationTime() { public static final int LAST_MODIFIED_TIME_FIELD_NUMBER = 6; private long lastModifiedTime_ = 0L; /** - * - * *
      * 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 @@ -8264,14 +6842,11 @@ public long getLastModifiedTime() { public static final int HAS_CREDENTIAL_FIELD_NUMBER = 7; private boolean hasCredential_ = false; /** - * - * *
      * 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 @@ -8280,7 +6855,6 @@ public boolean getHasCredential() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8292,7 +6866,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -8303,10 +6878,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_); @@ -8336,20 +6908,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -8359,25 +6931,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: @@ -8400,11 +6977,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; @@ -8419,95 +6999,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 @@ -8517,8 +7089,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Configuration parameters to establish connection with an external data
      * source, except the credential attributes.
@@ -8526,35 +7096,33 @@ 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()
-      private Builder() {}
+      // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -8574,22 +7142,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);
         }
@@ -8597,20 +7162,15 @@ 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);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+      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);
+        if (bitField0_ != 0) { buildPartial0(result); }
         buildPartialOneofs(result);
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(
-          com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection result) {
+      private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.name_ = name_;
@@ -8632,11 +7192,11 @@ private void buildPartial0(
         }
       }
 
-      private void buildPartialOneofs(
-          com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection result) {
+      private void buildPartialOneofs(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection result) {
         result.propertiesCase_ = propertiesCase_;
         result.properties_ = this.properties_;
-        if (propertiesCase_ == 4 && cloudSqlBuilder_ != null) {
+        if (propertiesCase_ == 4 &&
+            cloudSqlBuilder_ != null) {
           result.properties_ = cloudSqlBuilder_.build();
         }
       }
@@ -8645,54 +7205,46 @@ private void buildPartialOneofs(
       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_;
           bitField0_ |= 0x00000001;
@@ -8718,15 +7270,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.getUnknownFields());
         onChanged();
@@ -8754,55 +7304,49 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  name_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 18:
-                {
-                  friendlyName_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 18
-              case 26:
-                {
-                  description_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 26
-              case 34:
-                {
-                  input.readMessage(getCloudSqlFieldBuilder().getBuilder(), extensionRegistry);
-                  propertiesCase_ = 4;
-                  break;
-                } // case 34
-              case 40:
-                {
-                  creationTime_ = input.readInt64();
-                  bitField0_ |= 0x00000010;
-                  break;
-                } // case 40
-              case 48:
-                {
-                  lastModifiedTime_ = input.readInt64();
-                  bitField0_ |= 0x00000020;
-                  break;
-                } // case 48
-              case 56:
-                {
-                  hasCredential_ = input.readBool();
-                  bitField0_ |= 0x00000040;
-                  break;
-                } // case 56
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 18: {
+                friendlyName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+              case 26: {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+              case 34: {
+                input.readMessage(
+                    getCloudSqlFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                propertiesCase_ = 4;
+                break;
+              } // case 34
+              case 40: {
+                creationTime_ = input.readInt64();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 40
+              case 48: {
+                lastModifiedTime_ = input.readInt64();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 48
+              case 56: {
+                hasCredential_ = input.readBool();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 56
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -8812,12 +7356,12 @@ public Builder mergeFrom(
         } // finally
         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() {
@@ -8831,21 +7375,19 @@ public Builder clearProperties() {
 
       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; @@ -8854,22 +7396,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 { @@ -8877,37 +7418,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -8917,22 +7451,18 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -8942,20 +7472,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; @@ -8964,21 +7492,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 { @@ -8986,35 +7513,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFriendlyName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } friendlyName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * User provided display name for the connection.
        * 
* * string friendly_name = 2; - * * @return This builder for chaining. */ public Builder clearFriendlyName() { @@ -9024,21 +7544,17 @@ public Builder clearFriendlyName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFriendlyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); friendlyName_ = value; bitField0_ |= 0x00000002; @@ -9048,20 +7564,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; @@ -9070,21 +7584,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 { @@ -9092,35 +7605,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * User provided description.
        * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -9130,21 +7636,17 @@ public Builder clearDescription() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000004; @@ -9153,21 +7655,13 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { } 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 @@ -9175,45 +7669,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(); @@ -9227,8 +7711,6 @@ public Builder setCloudSql( return this; } /** - * - * *
        * Cloud SQL properties.
        * 
@@ -9236,8 +7718,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(); @@ -9248,29 +7729,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; } @@ -9286,8 +7756,6 @@ public Builder mergeCloudSql( return this; } /** - * - * *
        * Cloud SQL properties.
        * 
@@ -9311,21 +7779,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.
        * 
@@ -9333,23 +7796,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.
        * 
@@ -9357,27 +7814,15 @@ 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; @@ -9387,16 +7832,13 @@ public Builder clearCloudSql() { 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 @@ -9404,33 +7846,27 @@ 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; bitField0_ |= 0x00000010; 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() { @@ -9440,16 +7876,13 @@ public Builder clearCreationTime() { 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 @@ -9457,33 +7890,27 @@ 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; bitField0_ |= 0x00000020; 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() { @@ -9493,16 +7920,13 @@ public Builder clearLastModifiedTime() { 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 @@ -9510,33 +7934,27 @@ 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; bitField0_ |= 0x00000040; 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() { @@ -9545,7 +7963,6 @@ public Builder clearHasCredential() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -9558,45 +7975,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9608,117 +8021,97 @@ 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; } - - 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; } @@ -9734,34 +8127,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 @@ -9769,29 +8157,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.
      * 
@@ -9799,18 +8179,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; @@ -9822,12 +8198,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_); } getUnknownFields().writeTo(output); } @@ -9839,11 +8213,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -9853,20 +8224,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: @@ -9895,102 +8264,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 @@ -10000,44 +8355,39 @@ 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() - private Builder() {} + // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -10051,23 +8401,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); } @@ -10075,31 +8421,23 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + 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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - result) { + private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential - result) { + private void buildPartialOneofs(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential result) { result.credentialCase_ = credentialCase_; result.credential_ = this.credential_; - if (credentialCase_ == 1 && cloudSqlBuilder_ != null) { + if (credentialCase_ == 1 && + cloudSqlBuilder_ != null) { result.credential_ = cloudSqlBuilder_.build(); } } @@ -10108,66 +8446,54 @@ private void buildPartialOneofs( 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.getUnknownFields()); onChanged(); @@ -10195,19 +8521,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCloudSqlFieldBuilder().getBuilder(), extensionRegistry); - credentialCase_ = 1; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCloudSqlFieldBuilder().getBuilder(), + extensionRegistry); + credentialCase_ = 1; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -10217,12 +8543,12 @@ public Builder mergeFrom( } // finally 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() { @@ -10235,21 +8561,13 @@ public Builder clearCredential() { private int bitField0_; 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 @@ -10257,45 +8575,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(); @@ -10309,8 +8617,6 @@ public Builder setCloudSql( return this; } /** - * - * *
        * Credential for Cloud SQL database.
        * 
@@ -10318,8 +8624,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(); @@ -10330,29 +8635,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; } @@ -10368,8 +8662,6 @@ public Builder mergeCloudSql( return this; } /** - * - * *
        * Credential for Cloud SQL database.
        * 
@@ -10393,21 +8685,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.
        * 
@@ -10415,23 +8702,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.
        * 
@@ -10439,27 +8720,15 @@ 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; @@ -10468,7 +8737,6 @@ public Builder clearCloudSql() { onChanged(); return cloudSqlBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10481,46 +8749,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -10532,140 +8795,103 @@ 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(); /** - * - * *
      * Output only. The account ID of the service used for the purpose of this
      * connection.
@@ -10675,13 +8901,10 @@ public interface CloudSqlPropertiesOrBuilder
      * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAccountId. */ java.lang.String getServiceAccountId(); /** - * - * *
      * Output only. The account ID of the service used for the purpose of this
      * connection.
@@ -10691,30 +8914,27 @@ public interface CloudSqlPropertiesOrBuilder
      * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAccountId. */ - com.google.protobuf.ByteString getServiceAccountIdBytes(); + com.google.protobuf.ByteString + getServiceAccountIdBytes(); } /** - * - * *
    * 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_ = ""; @@ -10724,45 +8944,39 @@ 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; } - - 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.
        * 
@@ -10771,8 +8985,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ DATABASE_TYPE_UNSPECIFIED(0), /** - * - * *
        * Cloud SQL for PostgreSQL.
        * 
@@ -10781,8 +8993,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ POSTGRES(1), /** - * - * *
        * Cloud SQL for MySQL.
        * 
@@ -10794,8 +9004,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * Unspecified database type.
        * 
@@ -10804,8 +9012,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DATABASE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
        * Cloud SQL for PostgreSQL.
        * 
@@ -10814,8 +9020,6 @@ public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int POSTGRES_VALUE = 1; /** - * - * *
        * Cloud SQL for MySQL.
        * 
@@ -10824,6 +9028,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( @@ -10848,52 +9053,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; @@ -10911,18 +9113,14 @@ private DatabaseType(int value) { } public static final int INSTANCE_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") 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 @@ -10931,29 +9129,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 { @@ -10962,18 +9160,14 @@ public com.google.protobuf.ByteString getInstanceIdBytes() { } public static final int DATABASE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object database_ = ""; /** - * - * *
      * Database name.
      * 
* * string database = 2; - * * @return The database. */ @java.lang.Override @@ -10982,29 +9176,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 { @@ -11015,61 +9209,37 @@ public com.google.protobuf.ByteString getDatabaseBytes() { public static final int TYPE_FIELD_NUMBER = 3; 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; * @return The type. */ - @java.lang.Override - public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .DatabaseType - getType() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType - result = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .DatabaseType.forNumber(type_); - return result == null - ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .DatabaseType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType getType() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType result = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType.forNumber(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 @@ -11077,53 +9247,33 @@ 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() { - return credential_ == null - ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - .getDefaultInstance() - : credential_; + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder getCredentialOrBuilder() { + return credential_ == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.getDefaultInstance() : credential_; } public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object serviceAccountId_ = ""; /** - * - * *
      * Output only. The account ID of the service used for the purpose of this
      * connection.
@@ -11133,7 +9283,6 @@ public boolean hasCredential() {
      * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAccountId. */ @java.lang.Override @@ -11142,15 +9291,14 @@ public java.lang.String getServiceAccountId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountId_ = s; return s; } } /** - * - * *
      * Output only. The account ID of the service used for the purpose of this
      * connection.
@@ -11160,15 +9308,16 @@ public java.lang.String getServiceAccountId() {
      * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAccountId. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountIdBytes() { + public com.google.protobuf.ByteString + getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountId_ = b; return b; } else { @@ -11177,7 +9326,6 @@ public com.google.protobuf.ByteString getServiceAccountIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -11189,17 +9337,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, database_); } - if (type_ - != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .DatabaseType.DATABASE_TYPE_UNSPECIFIED - .getNumber()) { + if (type_ != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType.DATABASE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(3, type_); } if (credential_ != null) { @@ -11223,14 +9369,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, database_); } - if (type_ - != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .DatabaseType.DATABASE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_); + if (type_ != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType.DATABASE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, type_); } if (credential_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCredential()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCredential()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, serviceAccountId_); @@ -11243,24 +9388,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.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 (!getServiceAccountId().equals(other.getServiceAccountId())) return false; + if (!getServiceAccountId() + .equals(other.getServiceAccountId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -11289,101 +9435,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 @@ -11393,44 +9526,39 @@ 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() - private Builder() {} + // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -11448,23 +9576,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); } @@ -11472,20 +9596,14 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + 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); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties result) { + private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.instanceId_ = instanceId_; @@ -11497,8 +9615,9 @@ private void buildPartial0( result.type_ = type_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.credential_ = - credentialBuilder_ == null ? credential_ : credentialBuilder_.build(); + result.credential_ = credentialBuilder_ == null + ? credential_ + : credentialBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.serviceAccountId_ = serviceAccountId_; @@ -11509,56 +9628,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -11606,43 +9715,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - instanceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - database_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - type_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage(getCredentialFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - serviceAccountId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + database_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + type_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getCredentialFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + serviceAccountId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -11652,25 +9757,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -11679,21 +9781,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 { @@ -11701,35 +9802,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInstanceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } instanceId_ = value; bitField0_ |= 0x00000001; 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() { @@ -11739,21 +9833,17 @@ public Builder clearInstanceId() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setInstanceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceId_ = value; bitField0_ |= 0x00000001; @@ -11763,20 +9853,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; @@ -11785,21 +9873,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 { @@ -11807,35 +9894,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabase( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } database_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Database name.
        * 
* * string database = 2; - * * @return This builder for chaining. */ public Builder clearDatabase() { @@ -11845,21 +9925,17 @@ public Builder clearDatabase() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); database_ = value; bitField0_ |= 0x00000002; @@ -11869,31 +9945,22 @@ 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. */ @@ -11904,47 +9971,28 @@ public Builder setTypeValue(int value) { 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() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType - result = - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .DatabaseType.forNumber(type_); - return result == null - ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties - .DatabaseType.UNRECOGNIZED - : result; + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType getType() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType result = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType.forNumber(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(); } @@ -11954,15 +10002,11 @@ public Builder setType( 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() { @@ -11972,68 +10016,43 @@ public Builder clearType() { 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 ((bitField0_ & 0x00000008) != 0); } /** - * - * *
        * 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(); @@ -12047,19 +10066,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(); } else { @@ -12070,24 +10084,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 (((bitField0_ & 0x00000008) != 0) - && credential_ != null - && credential_ - != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential - .getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + credential_ != null && + credential_ != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.getDefaultInstance()) { getCredentialBuilder().mergeFrom(value); } else { credential_ = value; @@ -12100,15 +10107,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() { bitField0_ = (bitField0_ & ~0x00000008); @@ -12121,72 +10124,48 @@ 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() { bitField0_ |= 0x00000008; 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_; @@ -12194,8 +10173,6 @@ public Builder clearCredential() { private java.lang.Object serviceAccountId_ = ""; /** - * - * *
        * Output only. The account ID of the service used for the purpose of this
        * connection.
@@ -12205,13 +10182,13 @@ public Builder clearCredential() {
        * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAccountId. */ public java.lang.String getServiceAccountId() { java.lang.Object ref = serviceAccountId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountId_ = s; return s; @@ -12220,8 +10197,6 @@ public java.lang.String getServiceAccountId() { } } /** - * - * *
        * Output only. The account ID of the service used for the purpose of this
        * connection.
@@ -12231,14 +10206,15 @@ public java.lang.String getServiceAccountId() {
        * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAccountId. */ - public com.google.protobuf.ByteString getServiceAccountIdBytes() { + public com.google.protobuf.ByteString + getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountId_ = b; return b; } else { @@ -12246,8 +10222,6 @@ public com.google.protobuf.ByteString getServiceAccountIdBytes() { } } /** - * - * *
        * Output only. The account ID of the service used for the purpose of this
        * connection.
@@ -12257,22 +10231,18 @@ public com.google.protobuf.ByteString getServiceAccountIdBytes() {
        * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The serviceAccountId to set. * @return This builder for chaining. */ - public Builder setServiceAccountId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccountId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } serviceAccountId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
        * Output only. The account ID of the service used for the purpose of this
        * connection.
@@ -12282,7 +10252,6 @@ public Builder setServiceAccountId(java.lang.String value) {
        * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearServiceAccountId() { @@ -12292,8 +10261,6 @@ public Builder clearServiceAccountId() { return this; } /** - * - * *
        * Output only. The account ID of the service used for the purpose of this
        * connection.
@@ -12303,21 +10270,18 @@ public Builder clearServiceAccountId() {
        * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for serviceAccountId to set. * @return This builder for chaining. */ - public Builder setServiceAccountIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccountIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceAccountId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -12330,46 +10294,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -12381,86 +10340,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_ = ""; @@ -12468,44 +10413,38 @@ 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; } - - 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; - @SuppressWarnings("serial") private volatile java.lang.Object username_ = ""; /** - * - * *
      * The username for the credential.
      * 
* * string username = 1; - * * @return The username. */ @java.lang.Override @@ -12514,29 +10453,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 { @@ -12545,18 +10484,14 @@ public com.google.protobuf.ByteString getUsernameBytes() { } public static final int PASSWORD_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object password_ = ""; /** - * - * *
      * The password for the credential.
      * 
* * string password = 2; - * * @return The password. */ @java.lang.Override @@ -12565,29 +10500,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 { @@ -12596,7 +10531,6 @@ public com.google.protobuf.ByteString getPasswordBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -12608,7 +10542,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -12638,18 +10573,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -12670,101 +10604,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 @@ -12774,44 +10695,39 @@ 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() - private Builder() {} + // Construct using com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -12822,23 +10738,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); } @@ -12846,20 +10758,14 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + 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); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential result) { + private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.username_ = username_; @@ -12873,56 +10779,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -12959,25 +10855,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - password_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -12987,25 +10880,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -13014,21 +10904,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 { @@ -13036,35 +10925,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsername( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } username_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The username for the credential.
        * 
* * string username = 1; - * * @return This builder for chaining. */ public Builder clearUsername() { @@ -13074,21 +10956,17 @@ public Builder clearUsername() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000001; @@ -13098,20 +10976,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; @@ -13120,21 +10996,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 { @@ -13142,35 +11017,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPassword( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } password_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * The password for the credential.
        * 
* * string password = 2; - * * @return This builder for chaining. */ public Builder clearPassword() { @@ -13180,28 +11048,23 @@ public Builder clearPassword() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -13214,46 +11077,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -13265,291 +11123,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\"\324\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\022\037\n\022serv" - + "ice_account_id\030\005 \001(\tB\003\340A\003\"F\n\014DatabaseTyp" - + "e\022\035\n\031DATABASE_TYPE_UNSPECIFIED\020\000\022\014\n\010POST" - + "GRES\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(\t2\230\020\n\021" - + "ConnectionService\022\367\001\n\020CreateConnection\022A" - + ".google.cloud.bigquery.connection.v1beta" - + "1.CreateConnectionRequest\0324.google.cloud" - + ".bigquery.connection.v1beta1.Connection\"" - + "j\202\323\344\223\002B\"4/v1beta1/{parent=projects/*/loc" - + "ations/*}/connections:\nconnection\332A\037pare" - + "nt,connection,connection_id\022\312\001\n\rGetConne" - + "ction\022>.google.cloud.bigquery.connection" - + ".v1beta1.GetConnectionRequest\0324.google.c" - + "loud.bigquery.connection.v1beta1.Connect" - + "ion\"C\202\323\344\223\0026\0224/v1beta1/{name=projects/*/l" - + "ocations/*/connections/*}\332A\004name\022\351\001\n\017Lis" - + "tConnections\022@.google.cloud.bigquery.con" - + "nection.v1beta1.ListConnectionsRequest\032A" - + ".google.cloud.bigquery.connection.v1beta" - + "1.ListConnectionsResponse\"Q\202\323\344\223\0026\0224/v1be" - + "ta1/{parent=projects/*/locations/*}/conn" - + "ections\332A\022parent,max_results\022\363\001\n\020UpdateC" - + "onnection\022A.google.cloud.bigquery.connec" - + "tion.v1beta1.UpdateConnectionRequest\0324.g" - + "oogle.cloud.bigquery.connection.v1beta1." - + "Connection\"f\202\323\344\223\002B24/v1beta1/{name=proje" - + "cts/*/locations/*/connections/*}:\nconnec" - + "tion\332A\033name,connection,update_mask\022\350\001\n\032U" - + "pdateConnectionCredential\022K.google.cloud" - + ".bigquery.connection.v1beta1.UpdateConne" - + "ctionCredentialRequest\032\026.google.protobuf" - + ".Empty\"e\202\323\344\223\002M2?/v1beta1/{name=projects/" - + "*/locations/*/connections/*/credential}:" - + "\ncredential\332A\017name,credential\022\262\001\n\020Delete" - + "Connection\022A.google.cloud.bigquery.conne" - + "ction.v1beta1.DeleteConnectionRequest\032\026." - + "google.protobuf.Empty\"C\202\323\344\223\0026*4/v1beta1/" - + "{name=projects/*/locations/*/connections" - + "/*}\332A\004name\022\256\001\n\014GetIamPolicy\022\".google.iam" - + ".v1.GetIamPolicyRequest\032\025.google.iam.v1." - + "Policy\"c\202\323\344\223\002J\"E/v1beta1/{resource=proje" - + "cts/*/locations/*/connections/*}:getIamP" - + "olicy:\001*\332A\020resource,options\022\255\001\n\014SetIamPo" - + "licy\022\".google.iam.v1.SetIamPolicyRequest" - + "\032\025.google.iam.v1.Policy\"b\202\323\344\223\002J\"E/v1beta" - + "1/{resource=projects/*/locations/*/conne" - + "ctions/*}:setIamPolicy:\001*\332A\017resource,pol" - + "icy\022\330\001\n\022TestIamPermissions\022(.google.iam." - + "v1.TestIamPermissionsRequest\032).google.ia" - + "m.v1.TestIamPermissionsResponse\"m\202\323\344\223\002P\"" - + "K/v1beta1/{resource=projects/*/locations" - + "/*/connections/*}:testIamPermissions:\001*\332" - + "A\024resource,permissions\032~\312A!bigqueryconne" - + "ction.googleapis.com\322AWhttps://www.googl" - + "eapis.com/auth/bigquery,https://www.goog" - + "leapis.com/auth/cloud-platformB\343\001\n,com.g" - + "oogle.cloud.bigquery.connection.v1beta1B" - + "\017ConnectionProtoZLcloud.google.com/go/bi" - + "gquery/connection/apiv1beta1/connectionp" - + "b;connectionpb\252\002(Google.Cloud.BigQuery.C" - + "onnection.V1Beta1\312\002(Google\\Cloud\\BigQuer" - + "y\\Connection\\V1beta1b\006proto3" + "\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\"\324\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\022\037\n\022serv" + + "ice_account_id\030\005 \001(\tB\003\340A\003\"F\n\014DatabaseTyp" + + "e\022\035\n\031DATABASE_TYPE_UNSPECIFIED\020\000\022\014\n\010POST" + + "GRES\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(\t2\230\020\n\021" + + "ConnectionService\022\367\001\n\020CreateConnection\022A" + + ".google.cloud.bigquery.connection.v1beta" + + "1.CreateConnectionRequest\0324.google.cloud" + + ".bigquery.connection.v1beta1.Connection\"" + + "j\202\323\344\223\002B\"4/v1beta1/{parent=projects/*/loc" + + "ations/*}/connections:\nconnection\332A\037pare" + + "nt,connection,connection_id\022\312\001\n\rGetConne" + + "ction\022>.google.cloud.bigquery.connection" + + ".v1beta1.GetConnectionRequest\0324.google.c" + + "loud.bigquery.connection.v1beta1.Connect" + + "ion\"C\202\323\344\223\0026\0224/v1beta1/{name=projects/*/l" + + "ocations/*/connections/*}\332A\004name\022\351\001\n\017Lis" + + "tConnections\022@.google.cloud.bigquery.con" + + "nection.v1beta1.ListConnectionsRequest\032A" + + ".google.cloud.bigquery.connection.v1beta" + + "1.ListConnectionsResponse\"Q\202\323\344\223\0026\0224/v1be" + + "ta1/{parent=projects/*/locations/*}/conn" + + "ections\332A\022parent,max_results\022\363\001\n\020UpdateC" + + "onnection\022A.google.cloud.bigquery.connec" + + "tion.v1beta1.UpdateConnectionRequest\0324.g" + + "oogle.cloud.bigquery.connection.v1beta1." + + "Connection\"f\202\323\344\223\002B24/v1beta1/{name=proje" + + "cts/*/locations/*/connections/*}:\nconnec" + + "tion\332A\033name,connection,update_mask\022\350\001\n\032U" + + "pdateConnectionCredential\022K.google.cloud" + + ".bigquery.connection.v1beta1.UpdateConne" + + "ctionCredentialRequest\032\026.google.protobuf" + + ".Empty\"e\202\323\344\223\002M2?/v1beta1/{name=projects/" + + "*/locations/*/connections/*/credential}:" + + "\ncredential\332A\017name,credential\022\262\001\n\020Delete" + + "Connection\022A.google.cloud.bigquery.conne" + + "ction.v1beta1.DeleteConnectionRequest\032\026." + + "google.protobuf.Empty\"C\202\323\344\223\0026*4/v1beta1/" + + "{name=projects/*/locations/*/connections" + + "/*}\332A\004name\022\256\001\n\014GetIamPolicy\022\".google.iam" + + ".v1.GetIamPolicyRequest\032\025.google.iam.v1." + + "Policy\"c\202\323\344\223\002J\"E/v1beta1/{resource=proje" + + "cts/*/locations/*/connections/*}:getIamP" + + "olicy:\001*\332A\020resource,options\022\255\001\n\014SetIamPo" + + "licy\022\".google.iam.v1.SetIamPolicyRequest" + + "\032\025.google.iam.v1.Policy\"b\202\323\344\223\002J\"E/v1beta" + + "1/{resource=projects/*/locations/*/conne" + + "ctions/*}:setIamPolicy:\001*\332A\017resource,pol" + + "icy\022\330\001\n\022TestIamPermissions\022(.google.iam." + + "v1.TestIamPermissionsRequest\032).google.ia" + + "m.v1.TestIamPermissionsResponse\"m\202\323\344\223\002P\"" + + "K/v1beta1/{resource=projects/*/locations" + + "/*/connections/*}:testIamPermissions:\001*\332" + + "A\024resource,permissions\032~\312A!bigqueryconne" + + "ction.googleapis.com\322AWhttps://www.googl" + + "eapis.com/auth/bigquery,https://www.goog" + + "leapis.com/auth/cloud-platformB\343\001\n,com.g" + + "oogle.cloud.bigquery.connection.v1beta1B" + + "\017ConnectionProtoZLcloud.google.com/go/bi" + + "gquery/connection/apiv1beta1/connectionp" + + "b;connectionpb\252\002(Google.Cloud.BigQuery.C" + + "onnection.V1Beta1\312\002(Google\\Cloud\\BigQuer" + + "y\\Connection\\V1beta1b\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(), - }); + 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", "ServiceAccountId", - }); + 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", "ServiceAccountId", }); 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); @@ -13559,8 +11398,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/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/LocationName.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/LocationName.java similarity index 100% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/LocationName.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/LocationName.java diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/src/main/proto/google/cloud/bigquery/connection/v1beta1/connection.proto b/owl-bot-staging/java-bigqueryconnection/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/proto/google/cloud/bigquery/connection/v1beta1/connection.proto similarity index 100% rename from java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/src/main/proto/google/cloud/bigquery/connection/v1beta1/connection.proto rename to owl-bot-staging/java-bigqueryconnection/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/proto/google/cloud/bigquery/connection/v1beta1/connection.proto diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetEndpoint.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/AsyncCreateConnection.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/AsyncCreateConnection.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/AsyncCreateConnection.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/AsyncCreateConnection.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnection.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnection.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnection.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnection.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnectionLocationnameConnectionprotoconnectionString.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnectionLocationnameConnectionprotoconnectionString.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnectionLocationnameConnectionprotoconnectionString.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnectionLocationnameConnectionprotoconnectionString.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnectionStringConnectionprotoconnectionString.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnectionStringConnectionprotoconnectionString.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnectionStringConnectionprotoconnectionString.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnectionStringConnectionprotoconnectionString.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/AsyncDeleteConnection.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/AsyncDeleteConnection.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/AsyncDeleteConnection.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/AsyncDeleteConnection.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnection.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnection.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnection.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnection.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnectionConnectionname.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnectionConnectionname.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnectionConnectionname.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnectionConnectionname.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnectionString.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnectionString.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnectionString.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnectionString.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/AsyncGetConnection.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/AsyncGetConnection.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/AsyncGetConnection.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/AsyncGetConnection.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnection.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnection.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnection.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnection.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnectionConnectionname.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnectionConnectionname.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnectionConnectionname.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnectionConnectionname.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnectionString.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnectionString.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnectionString.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnectionString.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/AsyncGetIamPolicy.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/AsyncGetIamPolicy.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/AsyncGetIamPolicy.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/AsyncGetIamPolicy.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicy.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicy.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicy.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicy.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicyResourcenameGetpolicyoptions.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicyResourcenameGetpolicyoptions.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicyResourcenameGetpolicyoptions.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicyResourcenameGetpolicyoptions.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicyStringGetpolicyoptions.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicyStringGetpolicyoptions.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicyStringGetpolicyoptions.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicyStringGetpolicyoptions.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/AsyncListConnections.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/AsyncListConnections.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/AsyncListConnections.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/AsyncListConnections.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnections.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnections.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnections.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnections.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnectionsLocationnameUint32Value.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnectionsLocationnameUint32Value.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnectionsLocationnameUint32Value.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnectionsLocationnameUint32Value.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnectionsStringUint32Value.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnectionsStringUint32Value.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnectionsStringUint32Value.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnectionsStringUint32Value.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/AsyncSetIamPolicy.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/AsyncSetIamPolicy.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/AsyncSetIamPolicy.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/AsyncSetIamPolicy.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicy.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicy.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicy.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicy.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicyStringPolicy.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicyStringPolicy.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicyStringPolicy.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicyStringPolicy.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/AsyncTestIamPermissions.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/AsyncTestIamPermissions.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/AsyncTestIamPermissions.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/AsyncTestIamPermissions.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissions.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissions.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissions.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissions.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissionsStringListstring.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissionsStringListstring.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissionsStringListstring.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissionsStringListstring.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/AsyncUpdateConnection.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/AsyncUpdateConnection.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/AsyncUpdateConnection.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/AsyncUpdateConnection.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnection.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnection.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnection.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnection.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnectionConnectionnameConnectionprotoconnectionFieldmask.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnectionConnectionnameConnectionprotoconnectionFieldmask.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnectionConnectionnameConnectionprotoconnectionFieldmask.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnectionConnectionnameConnectionprotoconnectionFieldmask.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnectionStringConnectionprotoconnectionFieldmask.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnectionStringConnectionprotoconnectionFieldmask.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnectionStringConnectionprotoconnectionFieldmask.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnectionStringConnectionprotoconnectionFieldmask.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/AsyncUpdateConnectionCredential.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/AsyncUpdateConnectionCredential.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/AsyncUpdateConnectionCredential.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/AsyncUpdateConnectionCredential.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/SyncUpdateConnectionCredential.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/SyncUpdateConnectionCredential.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/SyncUpdateConnectionCredential.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/SyncUpdateConnectionCredential.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/SyncUpdateConnectionCredentialStringConnectionprotoconnectioncredential.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/SyncUpdateConnectionCredentialStringConnectionprotoconnectioncredential.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/SyncUpdateConnectionCredentialStringConnectionprotoconnectioncredential.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/SyncUpdateConnectionCredentialStringConnectionprotoconnectioncredential.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservicesettings/createconnection/SyncCreateConnection.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservicesettings/createconnection/SyncCreateConnection.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservicesettings/createconnection/SyncCreateConnection.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservicesettings/createconnection/SyncCreateConnection.java diff --git a/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/stub/connectionservicestubsettings/createconnection/SyncCreateConnection.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/stub/connectionservicestubsettings/createconnection/SyncCreateConnection.java similarity index 100% rename from java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/stub/connectionservicestubsettings/createconnection/SyncCreateConnection.java rename to owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/stub/connectionservicestubsettings/createconnection/SyncCreateConnection.java From 0843270adfd9a56e4b4c47358f6cc18938594984 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 16 Mar 2023 21:33:23 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- java-bigqueryconnection/README.md | 6 +- .../v1beta1/ConnectionServiceClient.java | 0 .../v1beta1/ConnectionServiceSettings.java | 1 - .../connection/v1beta1/gapic_metadata.json | 0 .../connection/v1beta1/package-info.java | 0 .../v1beta1/stub/ConnectionServiceStub.java | 0 .../stub/ConnectionServiceStubSettings.java | 0 .../GrpcConnectionServiceCallableFactory.java | 0 .../stub/GrpcConnectionServiceStub.java | 1 - ...pJsonConnectionServiceCallableFactory.java | 0 .../stub/HttpJsonConnectionServiceStub.java | 0 .../v1/ConnectionServiceClient.java | 0 .../v1/ConnectionServiceSettings.java | 1 - .../bigqueryconnection/v1/gapic_metadata.json | 0 .../bigqueryconnection/v1/package-info.java | 0 .../v1/stub/ConnectionServiceStub.java | 0 .../stub/ConnectionServiceStubSettings.java | 0 .../GrpcConnectionServiceCallableFactory.java | 0 .../v1/stub/GrpcConnectionServiceStub.java | 1 - ...pJsonConnectionServiceCallableFactory.java | 0 .../stub/HttpJsonConnectionServiceStub.java | 0 .../ConnectionServiceClientHttpJsonTest.java | 0 .../v1beta1/ConnectionServiceClientTest.java | 0 .../v1beta1/MockConnectionService.java | 0 .../v1beta1/MockConnectionServiceImpl.java | 0 .../ConnectionServiceClientHttpJsonTest.java | 0 .../v1/ConnectionServiceClientTest.java | 0 .../v1/MockConnectionService.java | 0 .../v1/MockConnectionServiceImpl.java | 0 .../connection/v1/ConnectionServiceGrpc.java | 1216 +++ .../v1beta1/ConnectionServiceGrpc.java | 1417 +++ .../bigquery/connection/v1/AwsAccessRole.java | 400 +- .../connection/v1/AwsAccessRoleOrBuilder.java | 36 +- .../connection/v1/AwsCrossAccountRole.java | 472 +- .../v1/AwsCrossAccountRoleOrBuilder.java | 45 +- .../bigquery/connection/v1/AwsProperties.java | 602 +- .../connection/v1/AwsPropertiesOrBuilder.java | 59 +- .../connection/v1/AzureProperties.java | 767 +- .../v1/AzurePropertiesOrBuilder.java | 81 +- .../v1/CloudResourceProperties.java | 351 +- .../v1/CloudResourcePropertiesOrBuilder.java | 27 +- .../connection/v1/CloudSpannerProperties.java | 492 +- .../v1/CloudSpannerPropertiesOrBuilder.java | 42 +- .../connection/v1/CloudSqlCredential.java | 400 +- .../v1/CloudSqlCredentialOrBuilder.java | 36 +- .../connection/v1/CloudSqlProperties.java | 767 +- .../v1/CloudSqlPropertiesOrBuilder.java | 71 +- .../bigquery/connection/v1/Connection.java | 1283 ++- .../connection/v1/ConnectionName.java | 0 .../connection/v1/ConnectionOrBuilder.java | 108 +- .../connection/v1/ConnectionOuterClass.java | 452 + .../v1/CreateConnectionRequest.java | 594 +- .../v1/CreateConnectionRequestOrBuilder.java | 64 +- .../v1/DeleteConnectionRequest.java | 379 +- .../v1/DeleteConnectionRequestOrBuilder.java | 56 + .../connection/v1/GetConnectionRequest.java | 366 +- .../v1/GetConnectionRequestOrBuilder.java | 56 + .../connection/v1/ListConnectionsRequest.java | 481 +- .../v1/ListConnectionsRequestOrBuilder.java | 47 +- .../v1/ListConnectionsResponse.java | 497 +- .../v1/ListConnectionsResponseOrBuilder.java | 45 +- .../bigquery/connection/v1/LocationName.java | 0 .../connection/v1/MetastoreServiceConfig.java | 376 +- .../v1/MetastoreServiceConfigOrBuilder.java | 58 + .../v1/SparkHistoryServerConfig.java | 379 +- .../v1/SparkHistoryServerConfigOrBuilder.java | 60 + .../connection/v1/SparkProperties.java | 675 +- .../v1/SparkPropertiesOrBuilder.java | 73 +- .../v1/UpdateConnectionRequest.java | 647 +- .../v1/UpdateConnectionRequestOrBuilder.java | 72 +- .../bigquery/connection/v1/connection.proto | 0 .../connection/v1beta1/ConnectionName.java | 0 .../connection/v1beta1/ConnectionProto.java | 8041 +++++++++++------ .../connection/v1beta1/LocationName.java | 0 .../connection/v1beta1/connection.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateConnection.java | 0 .../SyncCreateConnection.java | 0 ...onnameConnectionprotoconnectionString.java | 0 ...StringConnectionprotoconnectionString.java | 0 .../AsyncDeleteConnection.java | 0 .../SyncDeleteConnection.java | 0 .../SyncDeleteConnectionConnectionname.java | 0 .../SyncDeleteConnectionString.java | 0 .../getconnection/AsyncGetConnection.java | 0 .../getconnection/SyncGetConnection.java | 0 .../SyncGetConnectionConnectionname.java | 0 .../SyncGetConnectionString.java | 0 .../getiampolicy/AsyncGetIamPolicy.java | 0 .../getiampolicy/SyncGetIamPolicy.java | 0 ...IamPolicyResourcenameGetpolicyoptions.java | 0 ...yncGetIamPolicyStringGetpolicyoptions.java | 0 .../listconnections/AsyncListConnections.java | 0 .../listconnections/SyncListConnections.java | 0 ...istConnectionsLocationnameUint32Value.java | 0 .../SyncListConnectionsStringUint32Value.java | 0 .../setiampolicy/AsyncSetIamPolicy.java | 0 .../setiampolicy/SyncSetIamPolicy.java | 0 .../SyncSetIamPolicyResourcenamePolicy.java | 0 .../SyncSetIamPolicyStringPolicy.java | 0 .../AsyncTestIamPermissions.java | 0 .../SyncTestIamPermissions.java | 0 ...tIamPermissionsResourcenameListstring.java | 0 ...yncTestIamPermissionsStringListstring.java | 0 .../AsyncUpdateConnection.java | 0 .../SyncUpdateConnection.java | 0 ...ameConnectionprotoconnectionFieldmask.java | 0 ...ingConnectionprotoconnectionFieldmask.java | 0 .../AsyncUpdateConnectionCredential.java | 0 .../SyncUpdateConnectionCredential.java | 0 ...ngConnectionprotoconnectioncredential.java | 0 .../SyncCreateConnection.java | 0 .../SyncCreateConnection.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateConnection.java | 0 .../SyncCreateConnection.java | 0 ...onnectionLocationnameConnectionString.java | 0 ...reateConnectionStringConnectionString.java | 0 .../AsyncDeleteConnection.java | 0 .../SyncDeleteConnection.java | 0 .../SyncDeleteConnectionConnectionname.java | 0 .../SyncDeleteConnectionString.java | 0 .../getconnection/AsyncGetConnection.java | 0 .../getconnection/SyncGetConnection.java | 0 .../SyncGetConnectionConnectionname.java | 0 .../SyncGetConnectionString.java | 0 .../getiampolicy/AsyncGetIamPolicy.java | 0 .../getiampolicy/SyncGetIamPolicy.java | 0 ...IamPolicyResourcenameGetpolicyoptions.java | 0 ...yncGetIamPolicyStringGetpolicyoptions.java | 0 .../listconnections/AsyncListConnections.java | 0 .../AsyncListConnectionsPaged.java | 0 .../listconnections/SyncListConnections.java | 0 .../SyncListConnectionsLocationname.java | 0 .../SyncListConnectionsString.java | 0 .../setiampolicy/AsyncSetIamPolicy.java | 0 .../setiampolicy/SyncSetIamPolicy.java | 0 .../SyncSetIamPolicyResourcenamePolicy.java | 0 .../SyncSetIamPolicyStringPolicy.java | 0 .../AsyncTestIamPermissions.java | 0 .../SyncTestIamPermissions.java | 0 ...tIamPermissionsResourcenameListstring.java | 0 ...yncTestIamPermissionsStringListstring.java | 0 .../AsyncUpdateConnection.java | 0 .../SyncUpdateConnection.java | 0 ...tionConnectionnameConnectionFieldmask.java | 0 ...teConnectionStringConnectionFieldmask.java | 0 .../SyncCreateConnection.java | 0 .../SyncCreateConnection.java | 0 .../connection/v1/ConnectionServiceGrpc.java | 945 -- .../connection/v1/ConnectionOuterClass.java | 402 - .../v1/DeleteConnectionRequestOrBuilder.java | 31 - .../v1/GetConnectionRequestOrBuilder.java | 31 - .../v1/MetastoreServiceConfigOrBuilder.java | 33 - .../v1/SparkHistoryServerConfigOrBuilder.java | 35 - .../v1beta1/ConnectionServiceGrpc.java | 1031 --- 160 files changed, 15233 insertions(+), 9375 deletions(-) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java (99%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/gapic_metadata.json (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/package-info.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStub.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceCallableFactory.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java (99%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceCallableFactory.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceStub.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java (99%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/gapic_metadata.json (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/package-info.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStub.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceCallableFactory.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java (99%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceCallableFactory.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceStub.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientTest.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionService.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionServiceImpl.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientTest.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionService.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionServiceImpl.java (100%) create mode 100644 java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java create mode 100644 java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java (69%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.java (61%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRole.java (71%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRoleOrBuilder.java (70%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java (64%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java (60%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzureProperties.java (73%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzurePropertiesOrBuilder.java (75%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourceProperties.java (69%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourcePropertiesOrBuilder.java (71%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.java (73%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java (78%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredential.java (67%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredentialOrBuilder.java (54%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.java (67%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java (68%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java (72%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionName.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java (84%) create mode 100644 java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequest.java (62%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequestOrBuilder.java (53%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequest.java (61%) create mode 100644 java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequestOrBuilder.java rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequest.java (62%) create mode 100644 java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequestOrBuilder.java rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequest.java (65%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequestOrBuilder.java (52%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponse.java (70%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponseOrBuilder.java (67%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/LocationName.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/MetastoreServiceConfig.java (62%) create mode 100644 java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/MetastoreServiceConfigOrBuilder.java rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkHistoryServerConfig.java (62%) create mode 100644 java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkHistoryServerConfigOrBuilder.java rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkProperties.java (63%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkPropertiesOrBuilder.java (62%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequest.java (62%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequestOrBuilder.java (56%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionName.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java (58%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/LocationName.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/proto-google-cloud-bigqueryconnection-v1beta1/src/main/proto/google/cloud/bigquery/connection/v1beta1/connection.proto (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/AsyncCreateConnection.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnection.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnectionLocationnameConnectionprotoconnectionString.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnectionStringConnectionprotoconnectionString.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/AsyncDeleteConnection.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnection.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnectionConnectionname.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnectionString.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/AsyncGetConnection.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnection.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnectionConnectionname.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnectionString.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/AsyncGetIamPolicy.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicy.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicyResourcenameGetpolicyoptions.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicyStringGetpolicyoptions.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/AsyncListConnections.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnections.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnectionsLocationnameUint32Value.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnectionsStringUint32Value.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/AsyncSetIamPolicy.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicy.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicyStringPolicy.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/AsyncTestIamPermissions.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissions.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissionsStringListstring.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/AsyncUpdateConnection.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnection.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnectionConnectionnameConnectionprotoconnectionFieldmask.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnectionStringConnectionprotoconnectionFieldmask.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/AsyncUpdateConnectionCredential.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/SyncUpdateConnectionCredential.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/SyncUpdateConnectionCredentialStringConnectionprotoconnectioncredential.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservicesettings/createconnection/SyncCreateConnection.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1beta1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/stub/connectionservicestubsettings/createconnection/SyncCreateConnection.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/AsyncCreateConnection.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnection.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnectionLocationnameConnectionString.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnectionStringConnectionString.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/AsyncDeleteConnection.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnection.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnectionConnectionname.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnectionString.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/AsyncGetConnection.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnection.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnectionConnectionname.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnectionString.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/AsyncGetIamPolicy.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicy.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicyResourcenameGetpolicyoptions.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicyStringGetpolicyoptions.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/AsyncListConnections.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/AsyncListConnectionsPaged.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnections.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnectionsLocationname.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnectionsString.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/AsyncSetIamPolicy.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicy.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicyStringPolicy.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/AsyncTestIamPermissions.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissions.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissionsStringListstring.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/AsyncUpdateConnection.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnection.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnectionConnectionnameConnectionFieldmask.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnectionStringConnectionFieldmask.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservicesettings/createconnection/SyncCreateConnection.java (100%) rename {owl-bot-staging/java-bigqueryconnection/v1 => java-bigqueryconnection}/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/stub/connectionservicestubsettings/createconnection/SyncCreateConnection.java (100%) delete mode 100644 owl-bot-staging/java-bigqueryconnection/v1/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java delete mode 100644 owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java delete mode 100644 owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/MetastoreServiceConfigOrBuilder.java delete mode 100644 owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkHistoryServerConfigOrBuilder.java delete mode 100644 owl-bot-staging/java-bigqueryconnection/v1beta1/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java diff --git a/java-bigqueryconnection/README.md b/java-bigqueryconnection/README.md index 058000eb5486..f924087facbf 100644 --- a/java-bigqueryconnection/README.md +++ b/java-bigqueryconnection/README.md @@ -50,7 +50,7 @@ The client application making API calls must be granted [authorization scopes][a You will need a [Google Cloud Platform Console][developer-console] project with the Cloud BigQuery Connection [API enabled][enable-api]. You will need to [enable billing][enable-billing] to use Google Cloud BigQuery Connection. [Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by -[installing the Google Cloud SDK][cloud-sdk] and running the following commands in command line: +[installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line: `gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. ### Installation and setup @@ -171,14 +171,14 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigqueryconnection.svg -[maven-version-link]: https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-bigqueryconnection&core=gav +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.14.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles [iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy [developer-console]: https://console.developers.google.com/ [create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects -[cloud-sdk]: https://cloud.google.com/sdk/ +[cloud-cli]: https://cloud.google.com/cli [troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting [contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md [code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java rename to java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClient.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java similarity index 99% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java rename to java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java index 170f7b72180b..d87b6ea20ecf 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceSettings.java @@ -25,7 +25,6 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.bigquery.connection.v1beta1.stub.ConnectionServiceStubSettings; diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/gapic_metadata.json b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/gapic_metadata.json rename to java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/gapic_metadata.json diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/package-info.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/package-info.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/package-info.java rename to java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/package-info.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStub.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStub.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStub.java rename to java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStub.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java rename to java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/ConnectionServiceStubSettings.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceCallableFactory.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceCallableFactory.java rename to java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceCallableFactory.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java similarity index 99% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java rename to java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java index fd17eef2a7a4..012a6e07a1b8 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/GrpcConnectionServiceStub.java @@ -35,7 +35,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceCallableFactory.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceCallableFactory.java rename to java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceCallableFactory.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceStub.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceStub.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceStub.java rename to java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/HttpJsonConnectionServiceStub.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java rename to java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClient.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java similarity index 99% rename from owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java rename to java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java index 912b5ef0f573..1e1044fa4127 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceSettings.java @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.bigquery.connection.v1.Connection; diff --git a/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/gapic_metadata.json b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/gapic_metadata.json rename to java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/package-info.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/package-info.java rename to java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/package-info.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStub.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStub.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStub.java rename to java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStub.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java rename to java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/ConnectionServiceStubSettings.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceCallableFactory.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceCallableFactory.java rename to java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceCallableFactory.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java similarity index 99% rename from owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java rename to java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java index 08551b68237a..31b7ac5d6c0e 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/GrpcConnectionServiceStub.java @@ -42,7 +42,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceCallableFactory.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceCallableFactory.java rename to java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceCallableFactory.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceStub.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceStub.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceStub.java rename to java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/HttpJsonConnectionServiceStub.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientHttpJsonTest.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientHttpJsonTest.java rename to java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientTest.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientTest.java rename to java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceClientTest.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionService.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionService.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionService.java rename to java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionService.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionServiceImpl.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionServiceImpl.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionServiceImpl.java rename to java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigquery/connection/v1beta1/MockConnectionServiceImpl.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientHttpJsonTest.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientHttpJsonTest.java rename to java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientTest.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientTest.java rename to java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/ConnectionServiceClientTest.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionService.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionService.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionService.java rename to java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionService.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionServiceImpl.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionServiceImpl.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionServiceImpl.java rename to java-bigqueryconnection/google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v1/MockConnectionServiceImpl.java diff --git a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java new file mode 100644 index 000000000000..3c517226a410 --- /dev/null +++ b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java @@ -0,0 +1,1216 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.bigquery.connection.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Manages external data source connections and credentials.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/bigquery/connection/v1/connection.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ConnectionServiceGrpc { + + private ConnectionServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.bigquery.connection.v1.ConnectionService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection> + getCreateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateConnection", + requestType = com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.class, + responseType = com.google.cloud.bigquery.connection.v1.Connection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection> + getCreateConnectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection> + getCreateConnectionMethod; + if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { + ConnectionServiceGrpc.getCreateConnectionMethod = + getCreateConnectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.Connection + .getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("CreateConnection")) + .build(); + } + } + } + return getCreateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.GetConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection> + getGetConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConnection", + requestType = com.google.cloud.bigquery.connection.v1.GetConnectionRequest.class, + responseType = com.google.cloud.bigquery.connection.v1.Connection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.GetConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection> + getGetConnectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.GetConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection> + getGetConnectionMethod; + if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { + ConnectionServiceGrpc.getGetConnectionMethod = + getGetConnectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.GetConnectionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.Connection + .getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("GetConnection")) + .build(); + } + } + } + return getGetConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest, + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse> + getListConnectionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConnections", + requestType = com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.class, + responseType = com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest, + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse> + getListConnectionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest, + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse> + getListConnectionsMethod; + if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { + ConnectionServiceGrpc.getListConnectionsMethod = + getListConnectionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnections")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("ListConnections")) + .build(); + } + } + } + return getListConnectionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection> + getUpdateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConnection", + requestType = com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.class, + responseType = com.google.cloud.bigquery.connection.v1.Connection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection> + getUpdateConnectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection> + getUpdateConnectionMethod; + if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { + ConnectionServiceGrpc.getUpdateConnectionMethod = + getUpdateConnectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.Connection + .getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("UpdateConnection")) + .build(); + } + } + } + return getUpdateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest, + com.google.protobuf.Empty> + getDeleteConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConnection", + requestType = com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest, + com.google.protobuf.Empty> + getDeleteConnectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest, + com.google.protobuf.Empty> + getDeleteConnectionMethod; + if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { + ConnectionServiceGrpc.getDeleteConnectionMethod = + getDeleteConnectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("DeleteConnection")) + .build(); + } + } + } + return getDeleteConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", + requestType = com.google.iam.v1.GetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod() { + io.grpc.MethodDescriptor + getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { + ConnectionServiceGrpc.getGetIamPolicyMethod = + getGetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", + requestType = com.google.iam.v1.SetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod() { + io.grpc.MethodDescriptor + getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { + ConnectionServiceGrpc.getSetIamPolicyMethod = + getSetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", + requestType = com.google.iam.v1.TestIamPermissionsRequest.class, + responseType = com.google.iam.v1.TestIamPermissionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) + == null) { + ConnectionServiceGrpc.getTestIamPermissionsMethod = + getTestIamPermissionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ConnectionServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceStub(channel, callOptions); + } + }; + return ConnectionServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ConnectionServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceBlockingStub(channel, callOptions); + } + }; + return ConnectionServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ConnectionServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceFutureStub(channel, callOptions); + } + }; + return ConnectionServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Manages external data source connections and credentials.
+   * 
+ */ + public abstract static class ConnectionServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a new connection.
+     * 
+ */ + public void createConnection( + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns specified connection.
+     * 
+ */ + public void getConnection( + com.google.cloud.bigquery.connection.v1.GetConnectionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a list of connections in the given project.
+     * 
+ */ + public void listConnections( + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListConnectionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the specified connection. For security reasons, also resets
+     * credential if connection properties are in the update field mask.
+     * 
+ */ + public void updateConnection( + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes connection and associated credential.
+     * 
+ */ + public void deleteConnection( + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
+     * 
+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a `NOT_FOUND` error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTestIamPermissionsMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection>( + this, METHODID_CREATE_CONNECTION))) + .addMethod( + getGetConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1.GetConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection>( + this, METHODID_GET_CONNECTION))) + .addMethod( + getListConnectionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest, + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse>( + this, METHODID_LIST_CONNECTIONS))) + .addMethod( + getUpdateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest, + com.google.cloud.bigquery.connection.v1.Connection>( + this, METHODID_UPDATE_CONNECTION))) + .addMethod( + getDeleteConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_CONNECTION))) + .addMethod( + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( + this, METHODID_GET_IAM_POLICY))) + .addMethod( + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( + this, METHODID_SET_IAM_POLICY))) + .addMethod( + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + this, METHODID_TEST_IAM_PERMISSIONS))) + .build(); + } + } + + /** + * + * + *
+   * Manages external data source connections and credentials.
+   * 
+ */ + public static final class ConnectionServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private ConnectionServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConnectionServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new connection.
+     * 
+ */ + public void createConnection( + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateConnectionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns specified connection.
+     * 
+ */ + public void getConnection( + com.google.cloud.bigquery.connection.v1.GetConnectionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConnectionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a list of connections in the given project.
+     * 
+ */ + public void listConnections( + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListConnectionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the specified connection. For security reasons, also resets
+     * credential if connection properties are in the update field mask.
+     * 
+ */ + public void updateConnection( + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConnectionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes connection and associated credential.
+     * 
+ */ + public void deleteConnection( + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteConnectionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
+     * 
+ */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a `NOT_FOUND` error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Manages external data source connections and credentials.
+   * 
+ */ + public static final class ConnectionServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ConnectionServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConnectionServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new connection.
+     * 
+ */ + public com.google.cloud.bigquery.connection.v1.Connection createConnection( + com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns specified connection.
+     * 
+ */ + public com.google.cloud.bigquery.connection.v1.Connection getConnection( + com.google.cloud.bigquery.connection.v1.GetConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns a list of connections in the given project.
+     * 
+ */ + public com.google.cloud.bigquery.connection.v1.ListConnectionsResponse listConnections( + com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListConnectionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the specified connection. For security reasons, also resets
+     * credential if connection properties are in the update field mask.
+     * 
+ */ + public com.google.cloud.bigquery.connection.v1.Connection updateConnection( + com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes connection and associated credential.
+     * 
+ */ + public com.google.protobuf.Empty deleteConnection( + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
+     * 
+ */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a `NOT_FOUND` error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Manages external data source connections and credentials.
+   * 
+ */ + public static final class ConnectionServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ConnectionServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConnectionServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a new connection.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.connection.v1.Connection> + createConnection(com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateConnectionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns specified connection.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.connection.v1.Connection> + getConnection(com.google.cloud.bigquery.connection.v1.GetConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConnectionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns a list of connections in the given project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse> + listConnections(com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListConnectionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the specified connection. For security reasons, also resets
+     * credential if connection properties are in the update field mask.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.connection.v1.Connection> + updateConnection(com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateConnectionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes connection and associated credential.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteConnection(com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteConnectionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns permissions that a caller has on the specified resource.
+     * If the resource does not exist, this will return an empty set of
+     * permissions, not a `NOT_FOUND` error.
+     * Note: This operation is designed to be used for building permission-aware
+     * UIs and command-line tools, not for authorization checking. This operation
+     * may "fail open" without warning.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.iam.v1.TestIamPermissionsResponse> + testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_CONNECTION = 0; + private static final int METHODID_GET_CONNECTION = 1; + private static final int METHODID_LIST_CONNECTIONS = 2; + private static final int METHODID_UPDATE_CONNECTION = 3; + private static final int METHODID_DELETE_CONNECTION = 4; + private static final int METHODID_GET_IAM_POLICY = 5; + private static final int METHODID_SET_IAM_POLICY = 6; + private static final int METHODID_TEST_IAM_PERMISSIONS = 7; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final ConnectionServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ConnectionServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_CONNECTION: + serviceImpl.createConnection( + (com.google.cloud.bigquery.connection.v1.CreateConnectionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_CONNECTION: + serviceImpl.getConnection( + (com.google.cloud.bigquery.connection.v1.GetConnectionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CONNECTIONS: + serviceImpl.listConnections( + (com.google.cloud.bigquery.connection.v1.ListConnectionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.connection.v1.ListConnectionsResponse>) + responseObserver); + break; + case METHODID_UPDATE_CONNECTION: + serviceImpl.updateConnection( + (com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_CONNECTION: + serviceImpl.deleteConnection( + (com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy( + (com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy( + (com.google.iam.v1.SetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TEST_IAM_PERMISSIONS: + serviceImpl.testIamPermissions( + (com.google.iam.v1.TestIamPermissionsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class ConnectionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ConnectionServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ConnectionService"); + } + } + + private static final class ConnectionServiceFileDescriptorSupplier + extends ConnectionServiceBaseDescriptorSupplier { + ConnectionServiceFileDescriptorSupplier() {} + } + + private static final class ConnectionServiceMethodDescriptorSupplier + extends ConnectionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ConnectionServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ConnectionServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ConnectionServiceFileDescriptorSupplier()) + .addMethod(getCreateConnectionMethod()) + .addMethod(getGetConnectionMethod()) + .addMethod(getListConnectionsMethod()) + .addMethod(getUpdateConnectionMethod()) + .addMethod(getDeleteConnectionMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java new file mode 100644 index 000000000000..29002cfd6e78 --- /dev/null +++ b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java @@ -0,0 +1,1417 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.bigquery.connection.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Manages external data source connections and credentials.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/bigquery/connection/v1beta1/connection.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ConnectionServiceGrpc { + + private ConnectionServiceGrpc() {} + + public static final String SERVICE_NAME = + "google.cloud.bigquery.connection.v1beta1.ConnectionService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + getCreateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateConnection", + requestType = + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest + .class, + responseType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + getCreateConnectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + getCreateConnectionMethod; + if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { + ConnectionServiceGrpc.getCreateConnectionMethod = + getCreateConnectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .CreateConnectionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .Connection.getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("CreateConnection")) + .build(); + } + } + } + return getCreateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + getGetConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConnection", + requestType = + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.class, + responseType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + getGetConnectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + getGetConnectionMethod; + if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { + ConnectionServiceGrpc.getGetConnectionMethod = + getGetConnectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .GetConnectionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .Connection.getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("GetConnection")) + .build(); + } + } + } + return getGetConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse> + getListConnectionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConnections", + requestType = + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.class, + responseType = + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse + .class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse> + getListConnectionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse> + getListConnectionsMethod; + if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { + ConnectionServiceGrpc.getListConnectionsMethod = + getListConnectionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnections")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("ListConnections")) + .build(); + } + } + } + return getListConnectionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + getUpdateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConnection", + requestType = + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest + .class, + responseType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + getUpdateConnectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest, + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + getUpdateConnectionMethod; + if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { + ConnectionServiceGrpc.getUpdateConnectionMethod = + getUpdateConnectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .Connection.getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("UpdateConnection")) + .build(); + } + } + } + return getUpdateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest, + com.google.protobuf.Empty> + getUpdateConnectionCredentialMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConnectionCredential", + requestType = + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest, + com.google.protobuf.Empty> + getUpdateConnectionCredentialMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest, + com.google.protobuf.Empty> + getUpdateConnectionCredentialMethod; + if ((getUpdateConnectionCredentialMethod = + ConnectionServiceGrpc.getUpdateConnectionCredentialMethod) + == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getUpdateConnectionCredentialMethod = + ConnectionServiceGrpc.getUpdateConnectionCredentialMethod) + == null) { + ConnectionServiceGrpc.getUpdateConnectionCredentialMethod = + getUpdateConnectionCredentialMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateConnectionCredential")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier( + "UpdateConnectionCredential")) + .build(); + } + } + } + return getUpdateConnectionCredentialMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest, + com.google.protobuf.Empty> + getDeleteConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConnection", + requestType = + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest + .class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest, + com.google.protobuf.Empty> + getDeleteConnectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest, + com.google.protobuf.Empty> + getDeleteConnectionMethod; + if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { + ConnectionServiceGrpc.getDeleteConnectionMethod = + getDeleteConnectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .DeleteConnectionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("DeleteConnection")) + .build(); + } + } + } + return getDeleteConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", + requestType = com.google.iam.v1.GetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod() { + io.grpc.MethodDescriptor + getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { + ConnectionServiceGrpc.getGetIamPolicyMethod = + getGetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", + requestType = com.google.iam.v1.SetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod() { + io.grpc.MethodDescriptor + getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { + ConnectionServiceGrpc.getSetIamPolicyMethod = + getSetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", + requestType = com.google.iam.v1.TestIamPermissionsRequest.class, + responseType = com.google.iam.v1.TestIamPermissionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse> + getTestIamPermissionsMethod; + if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) + == null) { + ConnectionServiceGrpc.getTestIamPermissionsMethod = + getTestIamPermissionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("TestIamPermissions")) + .build(); + } + } + } + return getTestIamPermissionsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ConnectionServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceStub(channel, callOptions); + } + }; + return ConnectionServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ConnectionServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceBlockingStub(channel, callOptions); + } + }; + return ConnectionServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ConnectionServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceFutureStub(channel, callOptions); + } + }; + return ConnectionServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Manages external data source connections and credentials.
+   * 
+ */ + public abstract static class ConnectionServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a new connection.
+     * 
+ */ + public void createConnection( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns specified connection.
+     * 
+ */ + public void getConnection( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a list of connections in the given project.
+     * 
+ */ + public void listConnections( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ListConnectionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListConnectionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the specified connection. For security reasons, also resets
+     * credential if connection properties are in the update field mask.
+     * 
+ */ + public void updateConnection( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the credential for the specified connection.
+     * 
+ */ + public void updateConnectionCredential( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest + request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateConnectionCredentialMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes connection and associated credential.
+     * 
+ */ + public void deleteConnection( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest + request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the access control policy for a resource.
+     * Returns an empty policy if the resource exists and does not have a policy
+     * set.
+     * 
+ */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the access control policy on the specified resource. Replaces any
+     * existing policy.
+     * Can return `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.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 `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.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 `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.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 `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_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/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java similarity index 69% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java index cfc7b329249c..a043a07ef9fa 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRole.java +++ b/java-bigqueryconnection/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,39 +45,44 @@ 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;
   }
-  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;
+
   @SuppressWarnings("serial")
   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 @@ -68,30 +91,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 { @@ -100,15 +123,19 @@ public java.lang.String getIamRoleId() { } public static final int IDENTITY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -117,30 +144,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 { @@ -149,6 +176,7 @@ public java.lang.String getIdentity() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -160,8 +188,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iamRoleId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, iamRoleId_); } @@ -191,17 +218,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,96 +249,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.
@@ -320,33 +354,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -357,9 +390,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
@@ -378,8 +411,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.connection.v1.AwsAccessRole result =
+          new com.google.cloud.bigquery.connection.v1.AwsAccessRole(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -398,38 +434,39 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.AwsAccessRole
     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;
@@ -437,7 +474,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_;
         bitField0_ |= 0x00000001;
@@ -474,22 +512,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              iamRoleId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              identity_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                iamRoleId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                identity_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -499,23 +540,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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; @@ -524,21 +568,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 { @@ -546,30 +591,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setIamRoleId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } iamRoleId_ = value; bitField0_ |= 0x00000001; 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() { @@ -579,18 +631,22 @@ public Builder clearIamRoleId() { 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(); } + public Builder setIamRoleIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); iamRoleId_ = value; bitField0_ |= 0x00000001; @@ -600,19 +656,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; @@ -621,21 +679,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 { @@ -643,30 +702,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setIdentity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } identity_ = value; bitField0_ |= 0x00000002; 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() { @@ -676,27 +742,31 @@ public Builder clearIdentity() { 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(); } + public Builder setIdentityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); identity_ = value; bitField0_ |= 0x00000002; 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); } @@ -706,12 +776,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(); } @@ -720,27 +790,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -755,6 +825,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/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.java similarity index 61% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.java index 192c1165e70b..0c06ce431dc6 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsAccessRoleOrBuilder.java +++ b/java-bigqueryconnection/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/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRole.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRole.java similarity index 71% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRole.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRole.java index 9b0990114786..373e052d0e7d 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRole.java +++ b/java-bigqueryconnection/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,39 +46,44 @@ 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;
   }
-  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;
+
   @SuppressWarnings("serial")
   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 @@ -69,30 +92,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 { @@ -101,14 +124,18 @@ public java.lang.String getIamRoleId() { } public static final int IAM_USER_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -117,29 +144,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 { @@ -148,9 +175,12 @@ public java.lang.String getIamUserId() { } public static final int EXTERNAL_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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
@@ -159,6 +189,7 @@ public java.lang.String getIamUserId() {
    * 
* * string external_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The externalId. */ @java.lang.Override @@ -167,14 +198,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
@@ -183,16 +215,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 { @@ -201,6 +232,7 @@ public java.lang.String getExternalId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,8 +244,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iamRoleId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, iamRoleId_); } @@ -249,19 +280,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,96 +314,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.
@@ -382,33 +419,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -420,9 +456,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
@@ -441,8 +477,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole result =
+          new com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -464,38 +503,39 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.AwsCrossAccou
     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;
@@ -503,7 +543,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_;
         bitField0_ |= 0x00000001;
@@ -545,27 +586,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              iamRoleId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              iamUserId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              externalId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                iamRoleId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                iamUserId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                externalId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -575,23 +620,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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; @@ -600,21 +648,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 { @@ -622,30 +671,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setIamRoleId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } iamRoleId_ = value; bitField0_ |= 0x00000001; 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() { @@ -655,18 +711,22 @@ public Builder clearIamRoleId() { 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(); } + public Builder setIamRoleIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); iamRoleId_ = value; bitField0_ |= 0x00000001; @@ -676,18 +736,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; @@ -696,20 +758,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 { @@ -717,28 +780,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setIamUserId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } iamUserId_ = value; bitField0_ |= 0x00000002; 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() { @@ -748,17 +818,21 @@ public Builder clearIamUserId() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setIamUserIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); iamUserId_ = value; bitField0_ |= 0x00000002; @@ -768,6 +842,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
@@ -776,13 +852,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; @@ -791,6 +867,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
@@ -799,15 +877,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 { @@ -815,6 +892,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
@@ -823,18 +902,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setExternalId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } externalId_ = value; bitField0_ |= 0x00000004; 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
@@ -843,6 +926,7 @@ public Builder setExternalId(
      * 
* * string external_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearExternalId() { @@ -852,6 +936,8 @@ public Builder clearExternalId() { 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
@@ -860,21 +946,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); externalId_ = value; bitField0_ |= 0x00000004; 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); } @@ -884,12 +972,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(); } @@ -898,27 +986,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -933,6 +1021,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/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRoleOrBuilder.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRoleOrBuilder.java similarity index 70% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRoleOrBuilder.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRoleOrBuilder.java index 046ef2d4e2e7..a0b7efd4d24d 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsCrossAccountRoleOrBuilder.java +++ b/java-bigqueryconnection/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
@@ -58,10 +86,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
@@ -70,8 +101,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/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java similarity index 64% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java index 87166d63dc31..0090274781b6 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsProperties.java @@ -1,61 +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; /** + * + * *
  * 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; } - 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 { - @java.lang.Deprecated CROSS_ACCOUNT_ROLE(2), + @java.lang.Deprecated + CROSS_ACCOUNT_ROLE(2), ACCESS_ROLE(3), AUTHENTICATIONMETHOD_NOT_SET(0); private final int value; + private AuthenticationMethodCase(int value) { this.value = value; } @@ -71,84 +93,108 @@ 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.
    * Deprecated, do not use.
    * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * + * * @deprecated google.cloud.bigquery.connection.v1.AwsProperties.cross_account_role is deprecated. * See google/cloud/bigquery/connection/v1/connection.proto;l=356 * @return Whether the crossAccountRole field is set. */ @java.lang.Override - @java.lang.Deprecated public boolean hasCrossAccountRole() { + @java.lang.Deprecated + public boolean hasCrossAccountRole() { return authenticationMethodCase_ == 2; } /** + * + * *
    * Authentication using Google owned AWS IAM user's access key to assume
    * into customer's AWS IAM Role.
    * Deprecated, do not use.
    * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * + * * @deprecated google.cloud.bigquery.connection.v1.AwsProperties.cross_account_role is deprecated. * See google/cloud/bigquery/connection/v1/connection.proto;l=356 * @return The crossAccountRole. */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole getCrossAccountRole() { + @java.lang.Deprecated + 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.
    * Deprecated, do not use.
    * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder getCrossAccountRoleOrBuilder() { + @java.lang.Deprecated + 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 @@ -156,22 +202,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.
@@ -182,12 +233,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;
@@ -199,13 +251,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_);
     }
     getUnknownFields().writeTo(output);
   }
@@ -217,12 +270,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 += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -232,22 +288,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:
@@ -281,129 +336,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -420,9 +482,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 @@ -441,8 +503,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.connection.v1.AwsProperties result = + new com.google.cloud.bigquery.connection.v1.AwsProperties(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -455,12 +520,10 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.AwsProperties private void buildPartialOneofs(com.google.cloud.bigquery.connection.v1.AwsProperties result) { result.authenticationMethodCase_ = authenticationMethodCase_; result.authenticationMethod_ = this.authenticationMethod_; - if (authenticationMethodCase_ == 2 && - crossAccountRoleBuilder_ != null) { + if (authenticationMethodCase_ == 2 && crossAccountRoleBuilder_ != null) { result.authenticationMethod_ = crossAccountRoleBuilder_.build(); } - if (authenticationMethodCase_ == 3 && - accessRoleBuilder_ != null) { + if (authenticationMethodCase_ == 3 && accessRoleBuilder_ != null) { result.authenticationMethod_ = accessRoleBuilder_.build(); } } @@ -469,38 +532,39 @@ private void buildPartialOneofs(com.google.cloud.bigquery.connection.v1.AwsPrope 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; @@ -508,19 +572,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.getUnknownFields()); onChanged(); @@ -548,26 +616,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - input.readMessage( - getCrossAccountRoleFieldBuilder().getBuilder(), - extensionRegistry); - authenticationMethodCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getAccessRoleFieldBuilder().getBuilder(), - extensionRegistry); - authenticationMethodCase_ = 3; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + input.readMessage( + getCrossAccountRoleFieldBuilder().getBuilder(), extensionRegistry); + authenticationMethodCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getAccessRoleFieldBuilder().getBuilder(), extensionRegistry); + authenticationMethodCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -577,12 +645,12 @@ public Builder mergeFrom( } // finally 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() { @@ -595,40 +663,56 @@ public Builder clearAuthenticationMethod() { private int bitField0_; 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.
      * Deprecated, do not use.
      * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; - * @deprecated google.cloud.bigquery.connection.v1.AwsProperties.cross_account_role is deprecated. - * See google/cloud/bigquery/connection/v1/connection.proto;l=356 + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * + * + * @deprecated google.cloud.bigquery.connection.v1.AwsProperties.cross_account_role is + * deprecated. See google/cloud/bigquery/connection/v1/connection.proto;l=356 * @return Whether the crossAccountRole field is set. */ @java.lang.Override - @java.lang.Deprecated public boolean hasCrossAccountRole() { + @java.lang.Deprecated + public boolean hasCrossAccountRole() { return authenticationMethodCase_ == 2; } /** + * + * *
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
      * Deprecated, do not use.
      * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; - * @deprecated google.cloud.bigquery.connection.v1.AwsProperties.cross_account_role is deprecated. - * See google/cloud/bigquery/connection/v1/connection.proto;l=356 + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * + * + * @deprecated google.cloud.bigquery.connection.v1.AwsProperties.cross_account_role is + * deprecated. See google/cloud/bigquery/connection/v1/connection.proto;l=356 * @return The crossAccountRole. */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole getCrossAccountRole() { + @java.lang.Deprecated + 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 { @@ -639,15 +723,21 @@ public Builder clearAuthenticationMethod() { } } /** + * + * *
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
      * Deprecated, do not use.
      * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setCrossAccountRole(com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole value) { + @java.lang.Deprecated + public Builder setCrossAccountRole( + com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole value) { if (crossAccountRoleBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -661,15 +751,20 @@ public Builder clearAuthenticationMethod() { return this; } /** + * + * *
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
      * Deprecated, do not use.
      * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setCrossAccountRole( + @java.lang.Deprecated + public Builder setCrossAccountRole( com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder builderForValue) { if (crossAccountRoleBuilder_ == null) { authenticationMethod_ = builderForValue.build(); @@ -681,20 +776,32 @@ public Builder clearAuthenticationMethod() { return this; } /** + * + * *
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
      * Deprecated, do not use.
      * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder mergeCrossAccountRole(com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole value) { + @java.lang.Deprecated + 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; } @@ -710,15 +817,20 @@ public Builder clearAuthenticationMethod() { return this; } /** + * + * *
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
      * Deprecated, do not use.
      * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder clearCrossAccountRole() { + @java.lang.Deprecated + public Builder clearCrossAccountRole() { if (crossAccountRoleBuilder_ == null) { if (authenticationMethodCase_ == 2) { authenticationMethodCase_ = 0; @@ -735,55 +847,78 @@ public Builder clearAuthenticationMethod() { return this; } /** + * + * *
      * Authentication using Google owned AWS IAM user's access key to assume
      * into customer's AWS IAM Role.
      * Deprecated, do not use.
      * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole.Builder getCrossAccountRoleBuilder() { + @java.lang.Deprecated + 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.
      * Deprecated, do not use.
      * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder getCrossAccountRoleOrBuilder() { + @java.lang.Deprecated + 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.
      * Deprecated, do not use.
      * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * */ 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()); @@ -795,14 +930,20 @@ public Builder clearAuthenticationMethod() { } 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 @@ -810,12 +951,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 @@ -833,6 +977,8 @@ public com.google.cloud.bigquery.connection.v1.AwsAccessRole getAccessRole() { } } /** + * + * *
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
@@ -854,6 +1000,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.
@@ -873,6 +1021,8 @@ public Builder setAccessRole(
       return this;
     }
     /**
+     *
+     *
      * 
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
@@ -882,10 +1032,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;
         }
@@ -901,6 +1055,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.
@@ -925,6 +1081,8 @@ public Builder clearAccessRole() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
@@ -936,6 +1094,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.
@@ -955,6 +1115,8 @@ public com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder getAccessR
       }
     }
     /**
+     *
+     *
      * 
      * Authentication using Google owned service account to assume into
      * customer's AWS IAM Role.
@@ -963,14 +1125,20 @@ 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());
@@ -980,9 +1148,9 @@ public com.google.cloud.bigquery.connection.v1.AwsAccessRoleOrBuilder getAccessR
       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);
     }
 
@@ -992,12 +1160,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();
   }
@@ -1006,27 +1174,27 @@ 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 {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  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 {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1041,6 +1209,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/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java
similarity index 60%
rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java
rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java
index 472ade88168e..e84c888e962a 100644
--- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java
+++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AwsPropertiesOrBuilder.java
@@ -1,70 +1,112 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the 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.
    * Deprecated, do not use.
    * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * + * * @deprecated google.cloud.bigquery.connection.v1.AwsProperties.cross_account_role is deprecated. * See google/cloud/bigquery/connection/v1/connection.proto;l=356 * @return Whether the crossAccountRole field is set. */ - @java.lang.Deprecated boolean hasCrossAccountRole(); + @java.lang.Deprecated + boolean hasCrossAccountRole(); /** + * + * *
    * Authentication using Google owned AWS IAM user's access key to assume
    * into customer's AWS IAM Role.
    * Deprecated, do not use.
    * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * + * * @deprecated google.cloud.bigquery.connection.v1.AwsProperties.cross_account_role is deprecated. * See google/cloud/bigquery/connection/v1/connection.proto;l=356 * @return The crossAccountRole. */ - @java.lang.Deprecated com.google.cloud.bigquery.connection.v1.AwsCrossAccountRole getCrossAccountRole(); + @java.lang.Deprecated + 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.
    * Deprecated, do not use.
    * 
* - * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * + * .google.cloud.bigquery.connection.v1.AwsCrossAccountRole cross_account_role = 2 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.cloud.bigquery.connection.v1.AwsCrossAccountRoleOrBuilder getCrossAccountRoleOrBuilder(); + @java.lang.Deprecated + 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.
@@ -74,5 +116,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/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzureProperties.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzureProperties.java
similarity index 73%
rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzureProperties.java
rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzureProperties.java
index 52fdefb1ef10..6d9f30cd13e0 100644
--- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzureProperties.java
+++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzureProperties.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;
 
 /**
+ *
+ *
  * 
  * Container for connection properties specific to Azure.
  * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.AzureProperties} */ -public final class AzureProperties extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AzureProperties extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.AzureProperties) AzurePropertiesOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AzureProperties.newBuilder() to construct. private AzureProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AzureProperties() { application_ = ""; clientId_ = ""; @@ -31,38 +49,43 @@ private AzureProperties() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AzureProperties(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AzureProperties_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_AzureProperties_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_AzureProperties_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_AzureProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.AzureProperties.class, com.google.cloud.bigquery.connection.v1.AzureProperties.Builder.class); + com.google.cloud.bigquery.connection.v1.AzureProperties.class, + com.google.cloud.bigquery.connection.v1.AzureProperties.Builder.class); } public static final int APPLICATION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object application_ = ""; /** + * + * *
    * Output only. The name of the Azure Active Directory Application.
    * 
* * string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The application. */ @java.lang.Override @@ -71,29 +94,29 @@ public java.lang.String getApplication() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); application_ = s; return s; } } /** + * + * *
    * Output only. The name of the Azure Active Directory Application.
    * 
* * string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for application. */ @java.lang.Override - public com.google.protobuf.ByteString - getApplicationBytes() { + public com.google.protobuf.ByteString getApplicationBytes() { java.lang.Object ref = application_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); application_ = b; return b; } else { @@ -102,14 +125,18 @@ public java.lang.String getApplication() { } public static final int CLIENT_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object clientId_ = ""; /** + * + * *
    * Output only. The client id of the Azure Active Directory Application.
    * 
* * string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clientId. */ @java.lang.Override @@ -118,29 +145,29 @@ public java.lang.String getClientId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientId_ = s; return s; } } /** + * + * *
    * Output only. The client id of the Azure Active Directory Application.
    * 
* * string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clientId. */ @java.lang.Override - public com.google.protobuf.ByteString - getClientIdBytes() { + public com.google.protobuf.ByteString getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clientId_ = b; return b; } else { @@ -149,14 +176,18 @@ public java.lang.String getClientId() { } public static final int OBJECT_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object objectId_ = ""; /** + * + * *
    * Output only. The object id of the Azure Active Directory Application.
    * 
* * string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The objectId. */ @java.lang.Override @@ -165,29 +196,29 @@ public java.lang.String getObjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); objectId_ = s; return s; } } /** + * + * *
    * Output only. The object id of the Azure Active Directory Application.
    * 
* * string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for objectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getObjectIdBytes() { + public com.google.protobuf.ByteString getObjectIdBytes() { java.lang.Object ref = objectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); objectId_ = b; return b; } else { @@ -196,14 +227,18 @@ public java.lang.String getObjectId() { } public static final int CUSTOMER_TENANT_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object customerTenantId_ = ""; /** + * + * *
    * The id of customer's directory that host the data.
    * 
* * string customer_tenant_id = 4; + * * @return The customerTenantId. */ @java.lang.Override @@ -212,29 +247,29 @@ public java.lang.String getCustomerTenantId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customerTenantId_ = s; return s; } } /** + * + * *
    * The id of customer's directory that host the data.
    * 
* * string customer_tenant_id = 4; + * * @return The bytes for customerTenantId. */ @java.lang.Override - public com.google.protobuf.ByteString - getCustomerTenantIdBytes() { + public com.google.protobuf.ByteString getCustomerTenantIdBytes() { java.lang.Object ref = customerTenantId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customerTenantId_ = b; return b; } else { @@ -243,15 +278,19 @@ public java.lang.String getCustomerTenantId() { } public static final int REDIRECT_URI_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object redirectUri_ = ""; /** + * + * *
    * The URL user will be redirected to after granting consent during connection
    * setup.
    * 
* * string redirect_uri = 5; + * * @return The redirectUri. */ @java.lang.Override @@ -260,30 +299,30 @@ public java.lang.String getRedirectUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); redirectUri_ = s; return s; } } /** + * + * *
    * The URL user will be redirected to after granting consent during connection
    * setup.
    * 
* * string redirect_uri = 5; + * * @return The bytes for redirectUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getRedirectUriBytes() { + public com.google.protobuf.ByteString getRedirectUriBytes() { java.lang.Object ref = redirectUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); redirectUri_ = b; return b; } else { @@ -292,15 +331,19 @@ public java.lang.String getRedirectUri() { } public static final int FEDERATED_APPLICATION_CLIENT_ID_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object federatedApplicationClientId_ = ""; /** + * + * *
    * The client ID of the user's Azure Active Directory Application used for a
    * federated connection.
    * 
* * string federated_application_client_id = 6; + * * @return The federatedApplicationClientId. */ @java.lang.Override @@ -309,30 +352,30 @@ public java.lang.String getFederatedApplicationClientId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); federatedApplicationClientId_ = s; return s; } } /** + * + * *
    * The client ID of the user's Azure Active Directory Application used for a
    * federated connection.
    * 
* * string federated_application_client_id = 6; + * * @return The bytes for federatedApplicationClientId. */ @java.lang.Override - public com.google.protobuf.ByteString - getFederatedApplicationClientIdBytes() { + public com.google.protobuf.ByteString getFederatedApplicationClientIdBytes() { java.lang.Object ref = federatedApplicationClientId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); federatedApplicationClientId_ = b; return b; } else { @@ -341,9 +384,12 @@ public java.lang.String getFederatedApplicationClientId() { } public static final int IDENTITY_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object identity_ = ""; /** + * + * *
    * Output only. A unique Google-owned and Google-generated identity for the
    * Connection. This identity will be used to access the user's Azure Active
@@ -351,6 +397,7 @@ public java.lang.String getFederatedApplicationClientId() {
    * 
* * string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The identity. */ @java.lang.Override @@ -359,14 +406,15 @@ 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; } } /** + * + * *
    * Output only. A unique Google-owned and Google-generated identity for the
    * Connection. This identity will be used to access the user's Azure Active
@@ -374,16 +422,15 @@ public java.lang.String getIdentity() {
    * 
* * string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -392,6 +439,7 @@ public java.lang.String getIdentity() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -403,8 +451,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(application_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, application_); } @@ -451,7 +498,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, redirectUri_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(federatedApplicationClientId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, federatedApplicationClientId_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 6, federatedApplicationClientId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identity_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, identity_); @@ -464,27 +513,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.AzureProperties)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.AzureProperties other = (com.google.cloud.bigquery.connection.v1.AzureProperties) obj; - - if (!getApplication() - .equals(other.getApplication())) return false; - if (!getClientId() - .equals(other.getClientId())) return false; - if (!getObjectId() - .equals(other.getObjectId())) return false; - if (!getCustomerTenantId() - .equals(other.getCustomerTenantId())) return false; - if (!getRedirectUri() - .equals(other.getRedirectUri())) return false; - if (!getFederatedApplicationClientId() - .equals(other.getFederatedApplicationClientId())) return false; - if (!getIdentity() - .equals(other.getIdentity())) return false; + com.google.cloud.bigquery.connection.v1.AzureProperties other = + (com.google.cloud.bigquery.connection.v1.AzureProperties) obj; + + if (!getApplication().equals(other.getApplication())) return false; + if (!getClientId().equals(other.getClientId())) return false; + if (!getObjectId().equals(other.getObjectId())) return false; + if (!getCustomerTenantId().equals(other.getCustomerTenantId())) return false; + if (!getRedirectUri().equals(other.getRedirectUri())) return false; + if (!getFederatedApplicationClientId().equals(other.getFederatedApplicationClientId())) + return false; + if (!getIdentity().equals(other.getIdentity())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -516,129 +560,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.AzureProperties 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.AzureProperties 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.AzureProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.AzureProperties 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.AzureProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.AzureProperties 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.AzureProperties 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.AzureProperties 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.AzureProperties 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.AzureProperties 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.AzureProperties 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.AzureProperties 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.AzureProperties 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.AzureProperties 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.AzureProperties prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.connection.v1.AzureProperties prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Container for connection properties specific to Azure.
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.AzureProperties} */ - 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.AzureProperties) com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_AzureProperties_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_AzureProperties_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_AzureProperties_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_AzureProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.AzureProperties.class, com.google.cloud.bigquery.connection.v1.AzureProperties.Builder.class); + com.google.cloud.bigquery.connection.v1.AzureProperties.class, + com.google.cloud.bigquery.connection.v1.AzureProperties.Builder.class); } // Construct using com.google.cloud.bigquery.connection.v1.AzureProperties.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -654,9 +705,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_AzureProperties_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_AzureProperties_descriptor; } @java.lang.Override @@ -675,8 +726,11 @@ public com.google.cloud.bigquery.connection.v1.AzureProperties build() { @java.lang.Override public com.google.cloud.bigquery.connection.v1.AzureProperties buildPartial() { - com.google.cloud.bigquery.connection.v1.AzureProperties result = new com.google.cloud.bigquery.connection.v1.AzureProperties(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.connection.v1.AzureProperties result = + new com.google.cloud.bigquery.connection.v1.AzureProperties(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -710,38 +764,39 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.AzureProperti 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.AzureProperties) { - return mergeFrom((com.google.cloud.bigquery.connection.v1.AzureProperties)other); + return mergeFrom((com.google.cloud.bigquery.connection.v1.AzureProperties) other); } else { super.mergeFrom(other); return this; @@ -749,7 +804,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.AzureProperties other) { - if (other == com.google.cloud.bigquery.connection.v1.AzureProperties.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.connection.v1.AzureProperties.getDefaultInstance()) + return this; if (!other.getApplication().isEmpty()) { application_ = other.application_; bitField0_ |= 0x00000001; @@ -811,47 +867,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - application_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - clientId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - objectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - customerTenantId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - redirectUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - federatedApplicationClientId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - identity_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + application_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + clientId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + objectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + customerTenantId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + redirectUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + federatedApplicationClientId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + identity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -861,22 +925,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object application_ = ""; /** + * + * *
      * Output only. The name of the Azure Active Directory Application.
      * 
* * string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The application. */ public java.lang.String getApplication() { java.lang.Object ref = application_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); application_ = s; return s; @@ -885,20 +952,21 @@ public java.lang.String getApplication() { } } /** + * + * *
      * Output only. The name of the Azure Active Directory Application.
      * 
* * string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for application. */ - public com.google.protobuf.ByteString - getApplicationBytes() { + public com.google.protobuf.ByteString getApplicationBytes() { java.lang.Object ref = application_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); application_ = b; return b; } else { @@ -906,28 +974,35 @@ public java.lang.String getApplication() { } } /** + * + * *
      * Output only. The name of the Azure Active Directory Application.
      * 
* * string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The application to set. * @return This builder for chaining. */ - public Builder setApplication( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApplication(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } application_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The name of the Azure Active Directory Application.
      * 
* * string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearApplication() { @@ -937,17 +1012,21 @@ public Builder clearApplication() { return this; } /** + * + * *
      * Output only. The name of the Azure Active Directory Application.
      * 
* * string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for application to set. * @return This builder for chaining. */ - public Builder setApplicationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApplicationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); application_ = value; bitField0_ |= 0x00000001; @@ -957,18 +1036,20 @@ public Builder setApplicationBytes( private java.lang.Object clientId_ = ""; /** + * + * *
      * Output only. The client id of the Azure Active Directory Application.
      * 
* * string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clientId. */ public java.lang.String getClientId() { java.lang.Object ref = clientId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientId_ = s; return s; @@ -977,20 +1058,21 @@ public java.lang.String getClientId() { } } /** + * + * *
      * Output only. The client id of the Azure Active Directory Application.
      * 
* * string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clientId. */ - public com.google.protobuf.ByteString - getClientIdBytes() { + public com.google.protobuf.ByteString getClientIdBytes() { java.lang.Object ref = clientId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clientId_ = b; return b; } else { @@ -998,28 +1080,35 @@ public java.lang.String getClientId() { } } /** + * + * *
      * Output only. The client id of the Azure Active Directory Application.
      * 
* * string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The clientId to set. * @return This builder for chaining. */ - public Builder setClientId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setClientId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } clientId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Output only. The client id of the Azure Active Directory Application.
      * 
* * string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClientId() { @@ -1029,17 +1118,21 @@ public Builder clearClientId() { return this; } /** + * + * *
      * Output only. The client id of the Azure Active Directory Application.
      * 
* * string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for clientId to set. * @return This builder for chaining. */ - public Builder setClientIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setClientIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); clientId_ = value; bitField0_ |= 0x00000002; @@ -1049,18 +1142,20 @@ public Builder setClientIdBytes( private java.lang.Object objectId_ = ""; /** + * + * *
      * Output only. The object id of the Azure Active Directory Application.
      * 
* * string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The objectId. */ public java.lang.String getObjectId() { java.lang.Object ref = objectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); objectId_ = s; return s; @@ -1069,20 +1164,21 @@ public java.lang.String getObjectId() { } } /** + * + * *
      * Output only. The object id of the Azure Active Directory Application.
      * 
* * string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for objectId. */ - public com.google.protobuf.ByteString - getObjectIdBytes() { + public com.google.protobuf.ByteString getObjectIdBytes() { java.lang.Object ref = objectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); objectId_ = b; return b; } else { @@ -1090,28 +1186,35 @@ public java.lang.String getObjectId() { } } /** + * + * *
      * Output only. The object id of the Azure Active Directory Application.
      * 
* * string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The objectId to set. * @return This builder for chaining. */ - public Builder setObjectId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setObjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } objectId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. The object id of the Azure Active Directory Application.
      * 
* * string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearObjectId() { @@ -1121,17 +1224,21 @@ public Builder clearObjectId() { return this; } /** + * + * *
      * Output only. The object id of the Azure Active Directory Application.
      * 
* * string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for objectId to set. * @return This builder for chaining. */ - public Builder setObjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setObjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); objectId_ = value; bitField0_ |= 0x00000004; @@ -1141,18 +1248,20 @@ public Builder setObjectIdBytes( private java.lang.Object customerTenantId_ = ""; /** + * + * *
      * The id of customer's directory that host the data.
      * 
* * string customer_tenant_id = 4; + * * @return The customerTenantId. */ public java.lang.String getCustomerTenantId() { java.lang.Object ref = customerTenantId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customerTenantId_ = s; return s; @@ -1161,20 +1270,21 @@ public java.lang.String getCustomerTenantId() { } } /** + * + * *
      * The id of customer's directory that host the data.
      * 
* * string customer_tenant_id = 4; + * * @return The bytes for customerTenantId. */ - public com.google.protobuf.ByteString - getCustomerTenantIdBytes() { + public com.google.protobuf.ByteString getCustomerTenantIdBytes() { java.lang.Object ref = customerTenantId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customerTenantId_ = b; return b; } else { @@ -1182,28 +1292,35 @@ public java.lang.String getCustomerTenantId() { } } /** + * + * *
      * The id of customer's directory that host the data.
      * 
* * string customer_tenant_id = 4; + * * @param value The customerTenantId to set. * @return This builder for chaining. */ - public Builder setCustomerTenantId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomerTenantId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } customerTenantId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The id of customer's directory that host the data.
      * 
* * string customer_tenant_id = 4; + * * @return This builder for chaining. */ public Builder clearCustomerTenantId() { @@ -1213,17 +1330,21 @@ public Builder clearCustomerTenantId() { return this; } /** + * + * *
      * The id of customer's directory that host the data.
      * 
* * string customer_tenant_id = 4; + * * @param value The bytes for customerTenantId to set. * @return This builder for chaining. */ - public Builder setCustomerTenantIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomerTenantIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); customerTenantId_ = value; bitField0_ |= 0x00000008; @@ -1233,19 +1354,21 @@ public Builder setCustomerTenantIdBytes( private java.lang.Object redirectUri_ = ""; /** + * + * *
      * The URL user will be redirected to after granting consent during connection
      * setup.
      * 
* * string redirect_uri = 5; + * * @return The redirectUri. */ public java.lang.String getRedirectUri() { java.lang.Object ref = redirectUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); redirectUri_ = s; return s; @@ -1254,21 +1377,22 @@ public java.lang.String getRedirectUri() { } } /** + * + * *
      * The URL user will be redirected to after granting consent during connection
      * setup.
      * 
* * string redirect_uri = 5; + * * @return The bytes for redirectUri. */ - public com.google.protobuf.ByteString - getRedirectUriBytes() { + public com.google.protobuf.ByteString getRedirectUriBytes() { java.lang.Object ref = redirectUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); redirectUri_ = b; return b; } else { @@ -1276,30 +1400,37 @@ public java.lang.String getRedirectUri() { } } /** + * + * *
      * The URL user will be redirected to after granting consent during connection
      * setup.
      * 
* * string redirect_uri = 5; + * * @param value The redirectUri to set. * @return This builder for chaining. */ - public Builder setRedirectUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRedirectUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } redirectUri_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * The URL user will be redirected to after granting consent during connection
      * setup.
      * 
* * string redirect_uri = 5; + * * @return This builder for chaining. */ public Builder clearRedirectUri() { @@ -1309,18 +1440,22 @@ public Builder clearRedirectUri() { return this; } /** + * + * *
      * The URL user will be redirected to after granting consent during connection
      * setup.
      * 
* * string redirect_uri = 5; + * * @param value The bytes for redirectUri to set. * @return This builder for chaining. */ - public Builder setRedirectUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRedirectUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); redirectUri_ = value; bitField0_ |= 0x00000010; @@ -1330,19 +1465,21 @@ public Builder setRedirectUriBytes( private java.lang.Object federatedApplicationClientId_ = ""; /** + * + * *
      * The client ID of the user's Azure Active Directory Application used for a
      * federated connection.
      * 
* * string federated_application_client_id = 6; + * * @return The federatedApplicationClientId. */ public java.lang.String getFederatedApplicationClientId() { java.lang.Object ref = federatedApplicationClientId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); federatedApplicationClientId_ = s; return s; @@ -1351,21 +1488,22 @@ public java.lang.String getFederatedApplicationClientId() { } } /** + * + * *
      * The client ID of the user's Azure Active Directory Application used for a
      * federated connection.
      * 
* * string federated_application_client_id = 6; + * * @return The bytes for federatedApplicationClientId. */ - public com.google.protobuf.ByteString - getFederatedApplicationClientIdBytes() { + public com.google.protobuf.ByteString getFederatedApplicationClientIdBytes() { java.lang.Object ref = federatedApplicationClientId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); federatedApplicationClientId_ = b; return b; } else { @@ -1373,30 +1511,37 @@ public java.lang.String getFederatedApplicationClientId() { } } /** + * + * *
      * The client ID of the user's Azure Active Directory Application used for a
      * federated connection.
      * 
* * string federated_application_client_id = 6; + * * @param value The federatedApplicationClientId to set. * @return This builder for chaining. */ - public Builder setFederatedApplicationClientId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFederatedApplicationClientId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } federatedApplicationClientId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * The client ID of the user's Azure Active Directory Application used for a
      * federated connection.
      * 
* * string federated_application_client_id = 6; + * * @return This builder for chaining. */ public Builder clearFederatedApplicationClientId() { @@ -1406,18 +1551,22 @@ public Builder clearFederatedApplicationClientId() { return this; } /** + * + * *
      * The client ID of the user's Azure Active Directory Application used for a
      * federated connection.
      * 
* * string federated_application_client_id = 6; + * * @param value The bytes for federatedApplicationClientId to set. * @return This builder for chaining. */ - public Builder setFederatedApplicationClientIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFederatedApplicationClientIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); federatedApplicationClientId_ = value; bitField0_ |= 0x00000020; @@ -1427,6 +1576,8 @@ public Builder setFederatedApplicationClientIdBytes( private java.lang.Object identity_ = ""; /** + * + * *
      * Output only. A unique Google-owned and Google-generated identity for the
      * Connection. This identity will be used to access the user's Azure Active
@@ -1434,13 +1585,13 @@ public Builder setFederatedApplicationClientIdBytes(
      * 
* * string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -1449,6 +1600,8 @@ public java.lang.String getIdentity() { } } /** + * + * *
      * Output only. A unique Google-owned and Google-generated identity for the
      * Connection. This identity will be used to access the user's Azure Active
@@ -1456,15 +1609,14 @@ public java.lang.String getIdentity() {
      * 
* * string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1472,6 +1624,8 @@ public java.lang.String getIdentity() { } } /** + * + * *
      * Output only. A unique Google-owned and Google-generated identity for the
      * Connection. This identity will be used to access the user's Azure Active
@@ -1479,18 +1633,22 @@ public java.lang.String getIdentity() {
      * 
* * string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The identity to set. * @return This builder for chaining. */ - public Builder setIdentity( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setIdentity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } identity_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Output only. A unique Google-owned and Google-generated identity for the
      * Connection. This identity will be used to access the user's Azure Active
@@ -1498,6 +1656,7 @@ public Builder setIdentity(
      * 
* * string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearIdentity() { @@ -1507,6 +1666,8 @@ public Builder clearIdentity() { return this; } /** + * + * *
      * Output only. A unique Google-owned and Google-generated identity for the
      * Connection. This identity will be used to access the user's Azure Active
@@ -1514,21 +1675,23 @@ public Builder clearIdentity() {
      * 
* * string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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(); } + public Builder setIdentityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); identity_ = value; bitField0_ |= 0x00000040; 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); } @@ -1538,12 +1701,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.AzureProperties) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.AzureProperties) private static final com.google.cloud.bigquery.connection.v1.AzureProperties DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.AzureProperties(); } @@ -1552,27 +1715,27 @@ public static com.google.cloud.bigquery.connection.v1.AzureProperties getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AzureProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AzureProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1587,6 +1750,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.connection.v1.AzureProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzurePropertiesOrBuilder.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzurePropertiesOrBuilder.java similarity index 75% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzurePropertiesOrBuilder.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzurePropertiesOrBuilder.java index d459c5617988..80811e6ef242 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzurePropertiesOrBuilder.java +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/AzurePropertiesOrBuilder.java @@ -1,137 +1,185 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 AzurePropertiesOrBuilder extends +public interface AzurePropertiesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.AzureProperties) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The name of the Azure Active Directory Application.
    * 
* * string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The application. */ java.lang.String getApplication(); /** + * + * *
    * Output only. The name of the Azure Active Directory Application.
    * 
* * string application = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for application. */ - com.google.protobuf.ByteString - getApplicationBytes(); + com.google.protobuf.ByteString getApplicationBytes(); /** + * + * *
    * Output only. The client id of the Azure Active Directory Application.
    * 
* * string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clientId. */ java.lang.String getClientId(); /** + * + * *
    * Output only. The client id of the Azure Active Directory Application.
    * 
* * string client_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clientId. */ - com.google.protobuf.ByteString - getClientIdBytes(); + com.google.protobuf.ByteString getClientIdBytes(); /** + * + * *
    * Output only. The object id of the Azure Active Directory Application.
    * 
* * string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The objectId. */ java.lang.String getObjectId(); /** + * + * *
    * Output only. The object id of the Azure Active Directory Application.
    * 
* * string object_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for objectId. */ - com.google.protobuf.ByteString - getObjectIdBytes(); + com.google.protobuf.ByteString getObjectIdBytes(); /** + * + * *
    * The id of customer's directory that host the data.
    * 
* * string customer_tenant_id = 4; + * * @return The customerTenantId. */ java.lang.String getCustomerTenantId(); /** + * + * *
    * The id of customer's directory that host the data.
    * 
* * string customer_tenant_id = 4; + * * @return The bytes for customerTenantId. */ - com.google.protobuf.ByteString - getCustomerTenantIdBytes(); + com.google.protobuf.ByteString getCustomerTenantIdBytes(); /** + * + * *
    * The URL user will be redirected to after granting consent during connection
    * setup.
    * 
* * string redirect_uri = 5; + * * @return The redirectUri. */ java.lang.String getRedirectUri(); /** + * + * *
    * The URL user will be redirected to after granting consent during connection
    * setup.
    * 
* * string redirect_uri = 5; + * * @return The bytes for redirectUri. */ - com.google.protobuf.ByteString - getRedirectUriBytes(); + com.google.protobuf.ByteString getRedirectUriBytes(); /** + * + * *
    * The client ID of the user's Azure Active Directory Application used for a
    * federated connection.
    * 
* * string federated_application_client_id = 6; + * * @return The federatedApplicationClientId. */ java.lang.String getFederatedApplicationClientId(); /** + * + * *
    * The client ID of the user's Azure Active Directory Application used for a
    * federated connection.
    * 
* * string federated_application_client_id = 6; + * * @return The bytes for federatedApplicationClientId. */ - com.google.protobuf.ByteString - getFederatedApplicationClientIdBytes(); + com.google.protobuf.ByteString getFederatedApplicationClientIdBytes(); /** + * + * *
    * Output only. A unique Google-owned and Google-generated identity for the
    * Connection. This identity will be used to access the user's Azure Active
@@ -139,10 +187,13 @@ public interface AzurePropertiesOrBuilder extends
    * 
* * string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The identity. */ java.lang.String getIdentity(); /** + * + * *
    * Output only. A unique Google-owned and Google-generated identity for the
    * Connection. This identity will be used to access the user's Azure Active
@@ -150,8 +201,8 @@ public interface AzurePropertiesOrBuilder extends
    * 
* * string identity = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for identity. */ - com.google.protobuf.ByteString - getIdentityBytes(); + com.google.protobuf.ByteString getIdentityBytes(); } diff --git a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourceProperties.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourceProperties.java similarity index 69% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourceProperties.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourceProperties.java index 79405880c7a0..d704edb8ef7c 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourceProperties.java +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourceProperties.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** + * + * *
  * Container for connection properties for delegation of access to GCP
  * resources.
@@ -11,48 +28,53 @@
  *
  * Protobuf type {@code google.cloud.bigquery.connection.v1.CloudResourceProperties}
  */
-public final class CloudResourceProperties extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CloudResourceProperties extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.CloudResourceProperties)
     CloudResourcePropertiesOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CloudResourceProperties.newBuilder() to construct.
   private CloudResourceProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CloudResourceProperties() {
     serviceAccountId_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CloudResourceProperties();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
+        .internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable
+    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
+        .internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.connection.v1.CloudResourceProperties.class, com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder.class);
+            com.google.cloud.bigquery.connection.v1.CloudResourceProperties.class,
+            com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder.class);
   }
 
   public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object serviceAccountId_ = "";
   /**
+   *
+   *
    * 
    * Output only. The account ID of the service created for the purpose of this
    * connection.
@@ -66,6 +88,7 @@ protected java.lang.Object newInstance(
    * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAccountId. */ @java.lang.Override @@ -74,14 +97,15 @@ public java.lang.String getServiceAccountId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountId_ = s; return s; } } /** + * + * *
    * Output only. The account ID of the service created for the purpose of this
    * connection.
@@ -95,16 +119,15 @@ public java.lang.String getServiceAccountId() {
    * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAccountId. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountIdBytes() { + public com.google.protobuf.ByteString getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountId_ = b; return b; } else { @@ -113,6 +136,7 @@ public java.lang.String getServiceAccountId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -124,8 +148,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAccountId_); } @@ -149,15 +172,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.connection.v1.CloudResourceProperties)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.CloudResourceProperties other = (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) obj; + com.google.cloud.bigquery.connection.v1.CloudResourceProperties other = + (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) obj; - if (!getServiceAccountId() - .equals(other.getServiceAccountId())) return false; + if (!getServiceAccountId().equals(other.getServiceAccountId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -177,96 +200,104 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.connection.v1.CloudResourceProperties prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.connection.v1.CloudResourceProperties prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Container for connection properties for delegation of access to GCP
    * resources.
@@ -274,33 +305,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.connection.v1.CloudResourceProperties}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.connection.v1.CloudResourceProperties)
       com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
+          .internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
+          .internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.connection.v1.CloudResourceProperties.class, com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder.class);
+              com.google.cloud.bigquery.connection.v1.CloudResourceProperties.class,
+              com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.connection.v1.CloudResourceProperties.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -310,13 +340,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
+          .internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.connection.v1.CloudResourceProperties getDefaultInstanceForType() {
+    public com.google.cloud.bigquery.connection.v1.CloudResourceProperties
+        getDefaultInstanceForType() {
       return com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance();
     }
 
@@ -331,13 +362,17 @@ public com.google.cloud.bigquery.connection.v1.CloudResourceProperties build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.connection.v1.CloudResourceProperties buildPartial() {
-      com.google.cloud.bigquery.connection.v1.CloudResourceProperties result = new com.google.cloud.bigquery.connection.v1.CloudResourceProperties(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.connection.v1.CloudResourceProperties result =
+          new com.google.cloud.bigquery.connection.v1.CloudResourceProperties(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.bigquery.connection.v1.CloudResourceProperties result) {
+    private void buildPartial0(
+        com.google.cloud.bigquery.connection.v1.CloudResourceProperties result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.serviceAccountId_ = serviceAccountId_;
@@ -348,46 +383,50 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.CloudResource
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.connection.v1.CloudResourceProperties) {
-        return mergeFrom((com.google.cloud.bigquery.connection.v1.CloudResourceProperties)other);
+        return mergeFrom((com.google.cloud.bigquery.connection.v1.CloudResourceProperties) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.CloudResourceProperties other) {
-      if (other == com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.bigquery.connection.v1.CloudResourceProperties other) {
+      if (other
+          == com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance())
+        return this;
       if (!other.getServiceAccountId().isEmpty()) {
         serviceAccountId_ = other.serviceAccountId_;
         bitField0_ |= 0x00000001;
@@ -419,17 +458,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              serviceAccountId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                serviceAccountId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -439,10 +480,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object serviceAccountId_ = "";
     /**
+     *
+     *
      * 
      * Output only. The account ID of the service created for the purpose of this
      * connection.
@@ -456,13 +500,13 @@ public Builder mergeFrom(
      * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAccountId. */ public java.lang.String getServiceAccountId() { java.lang.Object ref = serviceAccountId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountId_ = s; return s; @@ -471,6 +515,8 @@ public java.lang.String getServiceAccountId() { } } /** + * + * *
      * Output only. The account ID of the service created for the purpose of this
      * connection.
@@ -484,15 +530,14 @@ public java.lang.String getServiceAccountId() {
      * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAccountId. */ - public com.google.protobuf.ByteString - getServiceAccountIdBytes() { + public com.google.protobuf.ByteString getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountId_ = b; return b; } else { @@ -500,6 +545,8 @@ public java.lang.String getServiceAccountId() { } } /** + * + * *
      * Output only. The account ID of the service created for the purpose of this
      * connection.
@@ -513,18 +560,22 @@ public java.lang.String getServiceAccountId() {
      * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The serviceAccountId to set. * @return This builder for chaining. */ - public Builder setServiceAccountId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAccountId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } serviceAccountId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The account ID of the service created for the purpose of this
      * connection.
@@ -538,6 +589,7 @@ public Builder setServiceAccountId(
      * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearServiceAccountId() { @@ -547,6 +599,8 @@ public Builder clearServiceAccountId() { return this; } /** + * + * *
      * Output only. The account ID of the service created for the purpose of this
      * connection.
@@ -560,21 +614,23 @@ public Builder clearServiceAccountId() {
      * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for serviceAccountId to set. * @return This builder for chaining. */ - public Builder setServiceAccountIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAccountIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); serviceAccountId_ = value; bitField0_ |= 0x00000001; 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); } @@ -584,41 +640,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.CloudResourceProperties) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.CloudResourceProperties) - private static final com.google.cloud.bigquery.connection.v1.CloudResourceProperties DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.connection.v1.CloudResourceProperties + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.CloudResourceProperties(); } - public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1.CloudResourceProperties + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudResourceProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudResourceProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -630,9 +688,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudResourceProperties getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.CloudResourceProperties + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourcePropertiesOrBuilder.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourcePropertiesOrBuilder.java similarity index 71% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourcePropertiesOrBuilder.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourcePropertiesOrBuilder.java index f3ba510207d2..dfd59ecd8e9b 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourcePropertiesOrBuilder.java +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudResourcePropertiesOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; -public interface CloudResourcePropertiesOrBuilder extends +public interface CloudResourcePropertiesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.CloudResourceProperties) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The account ID of the service created for the purpose of this
    * connection.
@@ -21,10 +39,13 @@ public interface CloudResourcePropertiesOrBuilder extends
    * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAccountId. */ java.lang.String getServiceAccountId(); /** + * + * *
    * Output only. The account ID of the service created for the purpose of this
    * connection.
@@ -38,8 +59,8 @@ public interface CloudResourcePropertiesOrBuilder extends
    * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAccountId. */ - com.google.protobuf.ByteString - getServiceAccountIdBytes(); + com.google.protobuf.ByteString getServiceAccountIdBytes(); } diff --git a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.java similarity index 73% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.java index cdd3f5c9ddbc..053871613aa3 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.java +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerProperties.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 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_ = ""; databaseRole_ = ""; @@ -26,38 +44,43 @@ private CloudSpannerProperties() { @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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object database_ = ""; /** + * + * *
    * Cloud Spanner database in the form `project/instance/database'
    * 
* * string database = 1; + * * @return The database. */ @java.lang.Override @@ -66,29 +89,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 { @@ -99,11 +122,14 @@ public java.lang.String getDatabase() { public static final int USE_PARALLELISM_FIELD_NUMBER = 2; private boolean useParallelism_ = false; /** + * + * *
    * If parallelism should be used when reading from Cloud Spanner
    * 
* * bool use_parallelism = 2; + * * @return The useParallelism. */ @java.lang.Override @@ -114,6 +140,8 @@ public boolean getUseParallelism() { public static final int USE_SERVERLESS_ANALYTICS_FIELD_NUMBER = 3; private boolean useServerlessAnalytics_ = false; /** + * + * *
    * If the serverless analytics service should be used to read data from Cloud
    * Spanner.
@@ -121,6 +149,7 @@ public boolean getUseParallelism() {
    * 
* * bool use_serverless_analytics = 3; + * * @return The useServerlessAnalytics. */ @java.lang.Override @@ -129,9 +158,12 @@ public boolean getUseServerlessAnalytics() { } public static final int DATABASE_ROLE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object databaseRole_ = ""; /** + * + * *
    * Optional. Cloud Spanner database role for fine-grained access control.
    * A database role is a collection of fine-grained access privileges. Example:
@@ -146,6 +178,7 @@ public boolean getUseServerlessAnalytics() {
    * 
* * string database_role = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The databaseRole. */ @java.lang.Override @@ -154,14 +187,15 @@ public java.lang.String getDatabaseRole() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseRole_ = s; return s; } } /** + * + * *
    * Optional. Cloud Spanner database role for fine-grained access control.
    * A database role is a collection of fine-grained access privileges. Example:
@@ -176,16 +210,15 @@ public java.lang.String getDatabaseRole() {
    * 
* * string database_role = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for databaseRole. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatabaseRoleBytes() { + public com.google.protobuf.ByteString getDatabaseRoleBytes() { java.lang.Object ref = databaseRole_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); databaseRole_ = b; return b; } else { @@ -194,6 +227,7 @@ public java.lang.String getDatabaseRole() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,8 +239,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_); } @@ -232,12 +265,10 @@ 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_); } if (useServerlessAnalytics_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, useServerlessAnalytics_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, useServerlessAnalytics_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseRole_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, databaseRole_); @@ -250,21 +281,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.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 (getUseServerlessAnalytics() - != other.getUseServerlessAnalytics()) return false; - if (!getDatabaseRole() - .equals(other.getDatabaseRole())) return false; + if (!getDatabase().equals(other.getDatabase())) return false; + if (getUseParallelism() != other.getUseParallelism()) return false; + if (getUseServerlessAnalytics() != other.getUseServerlessAnalytics()) return false; + if (!getDatabaseRole().equals(other.getDatabaseRole())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -279,11 +307,9 @@ 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 = (37 * hash) + USE_SERVERLESS_ANALYTICS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUseServerlessAnalytics()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseServerlessAnalytics()); hash = (37 * hash) + DATABASE_ROLE_FIELD_NUMBER; hash = (53 * hash) + getDatabaseRole().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -292,129 +318,136 @@ public int hashCode() { } 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -427,13 +460,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(); } @@ -448,13 +482,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties result = + new com.google.cloud.bigquery.connection.v1.CloudSpannerProperties(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.connection.v1.CloudSpannerProperties result) { + private void buildPartial0( + com.google.cloud.bigquery.connection.v1.CloudSpannerProperties result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.database_ = database_; @@ -474,38 +512,39 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.CloudSpannerP 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; @@ -513,7 +552,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_; bitField0_ |= 0x00000001; @@ -556,32 +597,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - database_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - useParallelism_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - useServerlessAnalytics_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - databaseRole_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + database_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + useParallelism_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + useServerlessAnalytics_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + databaseRole_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -591,22 +637,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -615,20 +664,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 { @@ -636,28 +686,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatabase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } database_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Cloud Spanner database in the form `project/instance/database'
      * 
* * string database = 1; + * * @return This builder for chaining. */ public Builder clearDatabase() { @@ -667,17 +724,21 @@ public Builder clearDatabase() { 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(); } + public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); database_ = value; bitField0_ |= 0x00000001; @@ -685,13 +746,16 @@ public Builder setDatabaseBytes( 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 @@ -699,27 +763,33 @@ 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; bitField0_ |= 0x00000002; 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() { @@ -729,8 +799,10 @@ public Builder clearUseParallelism() { return this; } - private boolean useServerlessAnalytics_ ; + private boolean useServerlessAnalytics_; /** + * + * *
      * If the serverless analytics service should be used to read data from Cloud
      * Spanner.
@@ -738,6 +810,7 @@ public Builder clearUseParallelism() {
      * 
* * bool use_serverless_analytics = 3; + * * @return The useServerlessAnalytics. */ @java.lang.Override @@ -745,6 +818,8 @@ public boolean getUseServerlessAnalytics() { return useServerlessAnalytics_; } /** + * + * *
      * If the serverless analytics service should be used to read data from Cloud
      * Spanner.
@@ -752,17 +827,20 @@ public boolean getUseServerlessAnalytics() {
      * 
* * bool use_serverless_analytics = 3; + * * @param value The useServerlessAnalytics to set. * @return This builder for chaining. */ public Builder setUseServerlessAnalytics(boolean value) { - + useServerlessAnalytics_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * If the serverless analytics service should be used to read data from Cloud
      * Spanner.
@@ -770,6 +848,7 @@ public Builder setUseServerlessAnalytics(boolean value) {
      * 
* * bool use_serverless_analytics = 3; + * * @return This builder for chaining. */ public Builder clearUseServerlessAnalytics() { @@ -781,6 +860,8 @@ public Builder clearUseServerlessAnalytics() { private java.lang.Object databaseRole_ = ""; /** + * + * *
      * Optional. Cloud Spanner database role for fine-grained access control.
      * A database role is a collection of fine-grained access privileges. Example:
@@ -795,13 +876,13 @@ public Builder clearUseServerlessAnalytics() {
      * 
* * string database_role = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The databaseRole. */ public java.lang.String getDatabaseRole() { java.lang.Object ref = databaseRole_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseRole_ = s; return s; @@ -810,6 +891,8 @@ public java.lang.String getDatabaseRole() { } } /** + * + * *
      * Optional. Cloud Spanner database role for fine-grained access control.
      * A database role is a collection of fine-grained access privileges. Example:
@@ -824,15 +907,14 @@ public java.lang.String getDatabaseRole() {
      * 
* * string database_role = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for databaseRole. */ - public com.google.protobuf.ByteString - getDatabaseRoleBytes() { + public com.google.protobuf.ByteString getDatabaseRoleBytes() { java.lang.Object ref = databaseRole_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); databaseRole_ = b; return b; } else { @@ -840,6 +922,8 @@ public java.lang.String getDatabaseRole() { } } /** + * + * *
      * Optional. Cloud Spanner database role for fine-grained access control.
      * A database role is a collection of fine-grained access privileges. Example:
@@ -854,18 +938,22 @@ public java.lang.String getDatabaseRole() {
      * 
* * string database_role = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The databaseRole to set. * @return This builder for chaining. */ - public Builder setDatabaseRole( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatabaseRole(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } databaseRole_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. Cloud Spanner database role for fine-grained access control.
      * A database role is a collection of fine-grained access privileges. Example:
@@ -880,6 +968,7 @@ public Builder setDatabaseRole(
      * 
* * string database_role = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDatabaseRole() { @@ -889,6 +978,8 @@ public Builder clearDatabaseRole() { return this; } /** + * + * *
      * Optional. Cloud Spanner database role for fine-grained access control.
      * A database role is a collection of fine-grained access privileges. Example:
@@ -903,21 +994,23 @@ public Builder clearDatabaseRole() {
      * 
* * string database_role = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for databaseRole to set. * @return This builder for chaining. */ - public Builder setDatabaseRoleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatabaseRoleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); databaseRole_ = value; bitField0_ |= 0x00000008; 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); } @@ -927,41 +1020,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -973,9 +1068,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/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java similarity index 78% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java index c9f4279c4d45..32240402dcec 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSpannerPropertiesOrBuilder.java @@ -1,43 +1,69 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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(); /** + * + * *
    * If the serverless analytics service should be used to read data from Cloud
    * Spanner.
@@ -45,11 +71,14 @@ public interface CloudSpannerPropertiesOrBuilder extends
    * 
* * bool use_serverless_analytics = 3; + * * @return The useServerlessAnalytics. */ boolean getUseServerlessAnalytics(); /** + * + * *
    * Optional. Cloud Spanner database role for fine-grained access control.
    * A database role is a collection of fine-grained access privileges. Example:
@@ -64,10 +93,13 @@ public interface CloudSpannerPropertiesOrBuilder extends
    * 
* * string database_role = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The databaseRole. */ java.lang.String getDatabaseRole(); /** + * + * *
    * Optional. Cloud Spanner database role for fine-grained access control.
    * A database role is a collection of fine-grained access privileges. Example:
@@ -82,8 +114,8 @@ public interface CloudSpannerPropertiesOrBuilder extends
    * 
* * string database_role = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for databaseRole. */ - com.google.protobuf.ByteString - getDatabaseRoleBytes(); + com.google.protobuf.ByteString getDatabaseRoleBytes(); } diff --git a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredential.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredential.java similarity index 67% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredential.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredential.java index 0479489dbcba..e7cdfcb161bf 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredential.java +++ b/java-bigqueryconnection/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,38 +44,43 @@ 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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object username_ = ""; /** + * + * *
    * The username for the credential.
    * 
* * string username = 1; + * * @return The username. */ @java.lang.Override @@ -66,29 +89,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 { @@ -97,14 +120,18 @@ public java.lang.String getUsername() { } public static final int PASSWORD_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object password_ = ""; /** + * + * *
    * The password for the credential.
    * 
* * string password = 2; + * * @return The password. */ @java.lang.Override @@ -113,29 +140,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 { @@ -144,6 +171,7 @@ public java.lang.String getPassword() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -186,17 +213,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -218,129 +244,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +384,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 @@ -372,8 +405,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.connection.v1.CloudSqlCredential result = + new com.google.cloud.bigquery.connection.v1.CloudSqlCredential(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -392,38 +428,39 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.CloudSqlCrede 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; @@ -431,7 +468,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_; bitField0_ |= 0x00000001; @@ -468,22 +506,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - password_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -493,22 +534,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -517,20 +561,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 { @@ -538,28 +583,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } username_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The username for the credential.
      * 
* * string username = 1; + * * @return This builder for chaining. */ public Builder clearUsername() { @@ -569,17 +621,21 @@ public Builder clearUsername() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000001; @@ -589,18 +645,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; @@ -609,20 +667,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 { @@ -630,28 +689,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } password_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The password for the credential.
      * 
* * string password = 2; + * * @return This builder for chaining. */ public Builder clearPassword() { @@ -661,26 +727,30 @@ public Builder clearPassword() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000002; 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); } @@ -690,12 +760,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(); } @@ -704,27 +774,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -739,6 +809,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/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredentialOrBuilder.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredentialOrBuilder.java similarity index 54% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredentialOrBuilder.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredentialOrBuilder.java index 2285698dcb1f..4ffc1de6b2d9 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlCredentialOrBuilder.java +++ b/java-bigqueryconnection/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/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.java similarity index 67% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.java index da1d7955fd57..5c43c3c3feaf 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlProperties.java +++ b/java-bigqueryconnection/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_ = ""; @@ -28,39 +46,43 @@ 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; } - 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.
      * 
@@ -69,6 +91,8 @@ public enum DatabaseType */ DATABASE_TYPE_UNSPECIFIED(0), /** + * + * *
      * Cloud SQL for PostgreSQL.
      * 
@@ -77,6 +101,8 @@ public enum DatabaseType */ POSTGRES(1), /** + * + * *
      * Cloud SQL for MySQL.
      * 
@@ -88,6 +114,8 @@ public enum DatabaseType ; /** + * + * *
      * Unspecified database type.
      * 
@@ -96,6 +124,8 @@ public enum DatabaseType */ public static final int DATABASE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Cloud SQL for PostgreSQL.
      * 
@@ -104,6 +134,8 @@ public enum DatabaseType */ public static final int POSTGRES_VALUE = 1; /** + * + * *
      * Cloud SQL for MySQL.
      * 
@@ -112,7 +144,6 @@ public enum DatabaseType */ public static final int MYSQL_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -137,49 +168,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; @@ -197,14 +230,18 @@ private DatabaseType(int value) { } public static final int INSTANCE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") 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 @@ -213,29 +250,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 { @@ -244,14 +281,18 @@ public java.lang.String getInstanceId() { } public static final int DATABASE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object database_ = ""; /** + * + * *
    * Database name.
    * 
* * string database = 2; + * * @return The database. */ @java.lang.Override @@ -260,29 +301,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 { @@ -293,37 +334,53 @@ public java.lang.String getDatabase() { public static final int TYPE_FIELD_NUMBER = 3; 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; + * * @return The type. */ - @java.lang.Override public com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType getType() { - com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType result = com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.forNumber(type_); - return result == null ? com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType getType() { + com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType result = + com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.forNumber(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 @@ -331,33 +388,50 @@ 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() { - return credential_ == null ? com.google.cloud.bigquery.connection.v1.CloudSqlCredential.getDefaultInstance() : credential_; + public com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder + getCredentialOrBuilder() { + return credential_ == null + ? com.google.cloud.bigquery.connection.v1.CloudSqlCredential.getDefaultInstance() + : credential_; } public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object serviceAccountId_ = ""; /** + * + * *
    * Output only. The account ID of the service used for the purpose of this
    * connection.
@@ -367,6 +441,7 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder getCr
    * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAccountId. */ @java.lang.Override @@ -375,14 +450,15 @@ public java.lang.String getServiceAccountId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountId_ = s; return s; } } /** + * + * *
    * Output only. The account ID of the service used for the purpose of this
    * connection.
@@ -392,16 +468,15 @@ public java.lang.String getServiceAccountId() {
    * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAccountId. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountIdBytes() { + public com.google.protobuf.ByteString getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountId_ = b; return b; } else { @@ -410,6 +485,7 @@ public java.lang.String getServiceAccountId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -421,15 +497,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, database_); } - if (type_ != com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.DATABASE_TYPE_UNSPECIFIED.getNumber()) { + if (type_ + != com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType + .DATABASE_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, type_); } if (credential_ != null) { @@ -453,13 +531,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, database_); } - if (type_ != com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.DATABASE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, type_); + if (type_ + != com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType + .DATABASE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_); } if (credential_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCredential()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCredential()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, serviceAccountId_); @@ -472,25 +551,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 (!getServiceAccountId() - .equals(other.getServiceAccountId())) return false; + if (!getServiceAccountId().equals(other.getServiceAccountId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -520,129 +596,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -660,9 +743,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 @@ -681,8 +764,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.connection.v1.CloudSqlProperties result = + new com.google.cloud.bigquery.connection.v1.CloudSqlProperties(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -699,9 +785,7 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.CloudSqlPrope result.type_ = type_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.credential_ = credentialBuilder_ == null - ? credential_ - : credentialBuilder_.build(); + result.credential_ = credentialBuilder_ == null ? credential_ : credentialBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.serviceAccountId_ = serviceAccountId_; @@ -712,38 +796,39 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.CloudSqlPrope 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; @@ -751,7 +836,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_; bitField0_ |= 0x00000001; @@ -799,39 +885,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - instanceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - database_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - type_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - input.readMessage( - getCredentialFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - serviceAccountId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + database_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage(getCredentialFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + serviceAccountId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -841,22 +931,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -865,20 +958,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 { @@ -886,28 +980,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setInstanceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } instanceId_ = value; bitField0_ |= 0x00000001; 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() { @@ -917,17 +1018,21 @@ public Builder clearInstanceId() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); instanceId_ = value; bitField0_ |= 0x00000001; @@ -937,18 +1042,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; @@ -957,20 +1064,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 { @@ -978,28 +1086,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatabase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } database_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Database name.
      * 
* * string database = 2; + * * @return This builder for chaining. */ public Builder clearDatabase() { @@ -1009,17 +1124,21 @@ public Builder clearDatabase() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); database_ = value; bitField0_ |= 0x00000002; @@ -1029,22 +1148,29 @@ 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. */ @@ -1055,28 +1181,38 @@ public Builder setTypeValue(int value) { 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() { - com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType result = com.google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType.forNumber(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.forNumber(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(); } @@ -1086,11 +1222,14 @@ public Builder setType(com.google.cloud.bigquery.connection.v1.CloudSqlPropertie 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() { @@ -1102,39 +1241,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 ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * 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) { @@ -1150,11 +1308,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) { @@ -1168,17 +1330,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 (((bitField0_ & 0x00000008) != 0) && - credential_ != null && - credential_ != com.google.cloud.bigquery.connection.v1.CloudSqlCredential.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && credential_ != null + && credential_ + != com.google.cloud.bigquery.connection.v1.CloudSqlCredential + .getDefaultInstance()) { getCredentialBuilder().mergeFrom(value); } else { credential_ = value; @@ -1191,11 +1360,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() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1208,48 +1381,66 @@ 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() { bitField0_ |= 0x00000008; 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_; @@ -1257,6 +1448,8 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder getCr private java.lang.Object serviceAccountId_ = ""; /** + * + * *
      * Output only. The account ID of the service used for the purpose of this
      * connection.
@@ -1266,13 +1459,13 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlCredentialOrBuilder getCr
      * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAccountId. */ public java.lang.String getServiceAccountId() { java.lang.Object ref = serviceAccountId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountId_ = s; return s; @@ -1281,6 +1474,8 @@ public java.lang.String getServiceAccountId() { } } /** + * + * *
      * Output only. The account ID of the service used for the purpose of this
      * connection.
@@ -1290,15 +1485,14 @@ public java.lang.String getServiceAccountId() {
      * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAccountId. */ - public com.google.protobuf.ByteString - getServiceAccountIdBytes() { + public com.google.protobuf.ByteString getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountId_ = b; return b; } else { @@ -1306,6 +1500,8 @@ public java.lang.String getServiceAccountId() { } } /** + * + * *
      * Output only. The account ID of the service used for the purpose of this
      * connection.
@@ -1315,18 +1511,22 @@ public java.lang.String getServiceAccountId() {
      * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The serviceAccountId to set. * @return This builder for chaining. */ - public Builder setServiceAccountId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAccountId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } serviceAccountId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Output only. The account ID of the service used for the purpose of this
      * connection.
@@ -1336,6 +1536,7 @@ public Builder setServiceAccountId(
      * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearServiceAccountId() { @@ -1345,6 +1546,8 @@ public Builder clearServiceAccountId() { return this; } /** + * + * *
      * Output only. The account ID of the service used for the purpose of this
      * connection.
@@ -1354,21 +1557,23 @@ public Builder clearServiceAccountId() {
      * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for serviceAccountId to set. * @return This builder for chaining. */ - public Builder setServiceAccountIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAccountIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); serviceAccountId_ = value; bitField0_ |= 0x00000010; 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); } @@ -1378,12 +1583,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(); } @@ -1392,27 +1597,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1427,6 +1632,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/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java similarity index 68% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java index f149fb87f9b0..1894dc57339d 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CloudSqlPropertiesOrBuilder.java @@ -1,99 +1,147 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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(); /** + * + * *
    * Output only. The account ID of the service used for the purpose of this
    * connection.
@@ -103,10 +151,13 @@ public interface CloudSqlPropertiesOrBuilder extends
    * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAccountId. */ java.lang.String getServiceAccountId(); /** + * + * *
    * Output only. The account ID of the service used for the purpose of this
    * connection.
@@ -116,8 +167,8 @@ public interface CloudSqlPropertiesOrBuilder extends
    * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAccountId. */ - com.google.protobuf.ByteString - getServiceAccountIdBytes(); + com.google.protobuf.ByteString getServiceAccountIdBytes(); } diff --git a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java similarity index 72% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java index e6d4c9ed5ab9..c768437cc2df 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/Connection.java +++ b/java-bigqueryconnection/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,33 +46,36 @@ 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;
   }
-  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),
@@ -64,6 +85,7 @@ public enum PropertiesCase
     SPARK(23),
     PROPERTIES_NOT_SET(0);
     private final int value;
+
     private PropertiesCase(int value) {
       this.value = value;
     }
@@ -79,37 +101,48 @@ public static PropertiesCase valueOf(int value) {
 
     public static PropertiesCase forNumber(int value) {
       switch (value) {
-        case 4: return CLOUD_SQL;
-        case 8: return AWS;
-        case 11: return AZURE;
-        case 21: return CLOUD_SPANNER;
-        case 22: return CLOUD_RESOURCE;
-        case 23: return SPARK;
-        case 0: return PROPERTIES_NOT_SET;
-        default: return null;
+        case 4:
+          return CLOUD_SQL;
+        case 8:
+          return AWS;
+        case 11:
+          return AZURE;
+        case 21:
+          return CLOUD_SPANNER;
+        case 22:
+          return CLOUD_RESOURCE;
+        case 23:
+          return SPARK;
+        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;
+
   @SuppressWarnings("serial")
   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 @@ -118,30 +151,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 { @@ -150,14 +183,18 @@ public java.lang.String getName() { } public static final int FRIENDLY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object friendlyName_ = ""; /** + * + * *
    * User provided display name for the connection.
    * 
* * string friendly_name = 2; + * * @return The friendlyName. */ @java.lang.Override @@ -166,29 +203,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 { @@ -197,14 +234,18 @@ public java.lang.String getFriendlyName() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * User provided description.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -213,29 +254,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 { @@ -245,11 +286,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 @@ -257,21 +301,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.
    * 
@@ -279,20 +328,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 @@ -300,21 +353,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.
    * 
@@ -324,18 +382,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 AZURE_FIELD_NUMBER = 11; /** + * + * *
    * Azure properties.
    * 
* * .google.cloud.bigquery.connection.v1.AzureProperties azure = 11; + * * @return Whether the azure field is set. */ @java.lang.Override @@ -343,21 +404,26 @@ public boolean hasAzure() { return propertiesCase_ == 11; } /** + * + * *
    * Azure properties.
    * 
* * .google.cloud.bigquery.connection.v1.AzureProperties azure = 11; + * * @return The azure. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.AzureProperties getAzure() { if (propertiesCase_ == 11) { - return (com.google.cloud.bigquery.connection.v1.AzureProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.AzureProperties) properties_; } return com.google.cloud.bigquery.connection.v1.AzureProperties.getDefaultInstance(); } /** + * + * *
    * Azure properties.
    * 
@@ -367,18 +433,21 @@ public com.google.cloud.bigquery.connection.v1.AzureProperties getAzure() { @java.lang.Override public com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder getAzureOrBuilder() { if (propertiesCase_ == 11) { - return (com.google.cloud.bigquery.connection.v1.AzureProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.AzureProperties) properties_; } return com.google.cloud.bigquery.connection.v1.AzureProperties.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 @@ -386,21 +455,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.
    * 
@@ -408,20 +482,24 @@ public com.google.cloud.bigquery.connection.v1.CloudSpannerProperties getCloudSp * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder getCloudSpannerOrBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder + getCloudSpannerOrBuilder() { if (propertiesCase_ == 21) { - return (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_; } return com.google.cloud.bigquery.connection.v1.CloudSpannerProperties.getDefaultInstance(); } public static final int CLOUD_RESOURCE_FIELD_NUMBER = 22; /** + * + * *
    * Cloud Resource properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * * @return Whether the cloudResource field is set. */ @java.lang.Override @@ -429,21 +507,26 @@ public boolean hasCloudResource() { return propertiesCase_ == 22; } /** + * + * *
    * Cloud Resource properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * * @return The cloudResource. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.CloudResourceProperties getCloudResource() { if (propertiesCase_ == 22) { - return (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_; } return com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance(); } /** + * + * *
    * Cloud Resource properties.
    * 
@@ -451,20 +534,24 @@ public com.google.cloud.bigquery.connection.v1.CloudResourceProperties getCloudR * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder getCloudResourceOrBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder + getCloudResourceOrBuilder() { if (propertiesCase_ == 22) { - return (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_; } return com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance(); } public static final int SPARK_FIELD_NUMBER = 23; /** + * + * *
    * Spark properties.
    * 
* * .google.cloud.bigquery.connection.v1.SparkProperties spark = 23; + * * @return Whether the spark field is set. */ @java.lang.Override @@ -472,21 +559,26 @@ public boolean hasSpark() { return propertiesCase_ == 23; } /** + * + * *
    * Spark properties.
    * 
* * .google.cloud.bigquery.connection.v1.SparkProperties spark = 23; + * * @return The spark. */ @java.lang.Override public com.google.cloud.bigquery.connection.v1.SparkProperties getSpark() { if (propertiesCase_ == 23) { - return (com.google.cloud.bigquery.connection.v1.SparkProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.SparkProperties) properties_; } return com.google.cloud.bigquery.connection.v1.SparkProperties.getDefaultInstance(); } /** + * + * *
    * Spark properties.
    * 
@@ -496,7 +588,7 @@ public com.google.cloud.bigquery.connection.v1.SparkProperties getSpark() { @java.lang.Override public com.google.cloud.bigquery.connection.v1.SparkPropertiesOrBuilder getSparkOrBuilder() { if (propertiesCase_ == 23) { - return (com.google.cloud.bigquery.connection.v1.SparkProperties) properties_; + return (com.google.cloud.bigquery.connection.v1.SparkProperties) properties_; } return com.google.cloud.bigquery.connection.v1.SparkProperties.getDefaultInstance(); } @@ -504,11 +596,14 @@ public com.google.cloud.bigquery.connection.v1.SparkPropertiesOrBuilder getSpark public static final int CREATION_TIME_FIELD_NUMBER = 5; private long creationTime_ = 0L; /** + * + * *
    * Output only. The creation timestamp of the connection.
    * 
* * int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The creationTime. */ @java.lang.Override @@ -519,11 +614,14 @@ public long getCreationTime() { public static final int LAST_MODIFIED_TIME_FIELD_NUMBER = 6; private long lastModifiedTime_ = 0L; /** + * + * *
    * 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 @@ -534,11 +632,14 @@ public long getLastModifiedTime() { public static final int HAS_CREDENTIAL_FIELD_NUMBER = 7; private boolean hasCredential_ = false; /** + * + * *
    * 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 @@ -547,6 +648,7 @@ public boolean getHasCredential() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -558,8 +660,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -570,7 +671,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_); @@ -585,16 +687,20 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(8, (com.google.cloud.bigquery.connection.v1.AwsProperties) properties_); } if (propertiesCase_ == 11) { - output.writeMessage(11, (com.google.cloud.bigquery.connection.v1.AzureProperties) properties_); + output.writeMessage( + 11, (com.google.cloud.bigquery.connection.v1.AzureProperties) properties_); } if (propertiesCase_ == 21) { - output.writeMessage(21, (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_); + output.writeMessage( + 21, (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_); } if (propertiesCase_ == 22) { - output.writeMessage(22, (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_); + output.writeMessage( + 22, (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_); } if (propertiesCase_ == 23) { - output.writeMessage(23, (com.google.cloud.bigquery.connection.v1.SparkProperties) properties_); + output.writeMessage( + 23, (com.google.cloud.bigquery.connection.v1.SparkProperties) properties_); } getUnknownFields().writeTo(output); } @@ -615,40 +721,43 @@ 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_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, (com.google.cloud.bigquery.connection.v1.AzureProperties) properties_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.cloud.bigquery.connection.v1.AzureProperties) properties_); } if (propertiesCase_ == 21) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 21, (com.google.cloud.bigquery.connection.v1.CloudSpannerProperties) properties_); } if (propertiesCase_ == 22) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 22, (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_); } if (propertiesCase_ == 23) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, (com.google.cloud.bigquery.connection.v1.SparkProperties) properties_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 23, (com.google.cloud.bigquery.connection.v1.SparkProperties) properties_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -658,50 +767,39 @@ 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 11: - if (!getAzure() - .equals(other.getAzure())) return false; + if (!getAzure().equals(other.getAzure())) return false; break; case 21: - if (!getCloudSpanner() - .equals(other.getCloudSpanner())) return false; + if (!getCloudSpanner().equals(other.getCloudSpanner())) return false; break; case 22: - if (!getCloudResource() - .equals(other.getCloudResource())) return false; + if (!getCloudResource().equals(other.getCloudResource())) return false; break; case 23: - if (!getSpark() - .equals(other.getSpark())) return false; + if (!getSpark().equals(other.getSpark())) return false; break; case 0: default: @@ -724,14 +822,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; @@ -766,96 +861,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.
@@ -863,33 +965,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -924,9 +1025,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
@@ -945,8 +1046,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.connection.v1.Connection result =
+          new com.google.cloud.bigquery.connection.v1.Connection(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -977,28 +1081,22 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.Connection re
     private void buildPartialOneofs(com.google.cloud.bigquery.connection.v1.Connection result) {
       result.propertiesCase_ = propertiesCase_;
       result.properties_ = this.properties_;
-      if (propertiesCase_ == 4 &&
-          cloudSqlBuilder_ != null) {
+      if (propertiesCase_ == 4 && cloudSqlBuilder_ != null) {
         result.properties_ = cloudSqlBuilder_.build();
       }
-      if (propertiesCase_ == 8 &&
-          awsBuilder_ != null) {
+      if (propertiesCase_ == 8 && awsBuilder_ != null) {
         result.properties_ = awsBuilder_.build();
       }
-      if (propertiesCase_ == 11 &&
-          azureBuilder_ != null) {
+      if (propertiesCase_ == 11 && azureBuilder_ != null) {
         result.properties_ = azureBuilder_.build();
       }
-      if (propertiesCase_ == 21 &&
-          cloudSpannerBuilder_ != null) {
+      if (propertiesCase_ == 21 && cloudSpannerBuilder_ != null) {
         result.properties_ = cloudSpannerBuilder_.build();
       }
-      if (propertiesCase_ == 22 &&
-          cloudResourceBuilder_ != null) {
+      if (propertiesCase_ == 22 && cloudResourceBuilder_ != null) {
         result.properties_ = cloudResourceBuilder_.build();
       }
-      if (propertiesCase_ == 23 &&
-          sparkBuilder_ != null) {
+      if (propertiesCase_ == 23 && sparkBuilder_ != null) {
         result.properties_ = sparkBuilder_.build();
       }
     }
@@ -1007,38 +1105,39 @@ private void buildPartialOneofs(com.google.cloud.bigquery.connection.v1.Connecti
     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;
@@ -1046,7 +1145,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_;
         bitField0_ |= 0x00000001;
@@ -1072,33 +1172,40 @@ 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 AZURE: {
-          mergeAzure(other.getAzure());
-          break;
-        }
-        case CLOUD_SPANNER: {
-          mergeCloudSpanner(other.getCloudSpanner());
-          break;
-        }
-        case CLOUD_RESOURCE: {
-          mergeCloudResource(other.getCloudResource());
-          break;
-        }
-        case SPARK: {
-          mergeSpark(other.getSpark());
-          break;
-        }
-        case PROPERTIES_NOT_SET: {
-          break;
-        }
+        case CLOUD_SQL:
+          {
+            mergeCloudSql(other.getCloudSql());
+            break;
+          }
+        case AWS:
+          {
+            mergeAws(other.getAws());
+            break;
+          }
+        case AZURE:
+          {
+            mergeAzure(other.getAzure());
+            break;
+          }
+        case CLOUD_SPANNER:
+          {
+            mergeCloudSpanner(other.getCloudSpanner());
+            break;
+          }
+        case CLOUD_RESOURCE:
+          {
+            mergeCloudResource(other.getCloudResource());
+            break;
+          }
+        case SPARK:
+          {
+            mergeSpark(other.getSpark());
+            break;
+          }
+        case PROPERTIES_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1126,84 +1233,85 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              friendlyName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              description_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getCloudSqlFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              propertiesCase_ = 4;
-              break;
-            } // case 34
-            case 40: {
-              creationTime_ = input.readInt64();
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 40
-            case 48: {
-              lastModifiedTime_ = input.readInt64();
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 48
-            case 56: {
-              hasCredential_ = input.readBool();
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 56
-            case 66: {
-              input.readMessage(
-                  getAwsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              propertiesCase_ = 8;
-              break;
-            } // case 66
-            case 90: {
-              input.readMessage(
-                  getAzureFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              propertiesCase_ = 11;
-              break;
-            } // case 90
-            case 170: {
-              input.readMessage(
-                  getCloudSpannerFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              propertiesCase_ = 21;
-              break;
-            } // case 170
-            case 178: {
-              input.readMessage(
-                  getCloudResourceFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              propertiesCase_ = 22;
-              break;
-            } // case 178
-            case 186: {
-              input.readMessage(
-                  getSparkFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              propertiesCase_ = 23;
-              break;
-            } // case 186
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                friendlyName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(getCloudSqlFieldBuilder().getBuilder(), extensionRegistry);
+                propertiesCase_ = 4;
+                break;
+              } // case 34
+            case 40:
+              {
+                creationTime_ = input.readInt64();
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 40
+            case 48:
+              {
+                lastModifiedTime_ = input.readInt64();
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 48
+            case 56:
+              {
+                hasCredential_ = input.readBool();
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 56
+            case 66:
+              {
+                input.readMessage(getAwsFieldBuilder().getBuilder(), extensionRegistry);
+                propertiesCase_ = 8;
+                break;
+              } // case 66
+            case 90:
+              {
+                input.readMessage(getAzureFieldBuilder().getBuilder(), extensionRegistry);
+                propertiesCase_ = 11;
+                break;
+              } // case 90
+            case 170:
+              {
+                input.readMessage(getCloudSpannerFieldBuilder().getBuilder(), extensionRegistry);
+                propertiesCase_ = 21;
+                break;
+              } // case 170
+            case 178:
+              {
+                input.readMessage(getCloudResourceFieldBuilder().getBuilder(), extensionRegistry);
+                propertiesCase_ = 22;
+                break;
+              } // case 178
+            case 186:
+              {
+                input.readMessage(getSparkFieldBuilder().getBuilder(), extensionRegistry);
+                propertiesCase_ = 23;
+                break;
+              } // case 186
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1213,12 +1321,12 @@ public Builder mergeFrom(
       } // finally
       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() {
@@ -1232,19 +1340,21 @@ public Builder clearProperties() {
 
     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; @@ -1253,21 +1363,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 { @@ -1275,30 +1386,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -1308,18 +1426,22 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1329,18 +1451,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; @@ -1349,20 +1473,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 { @@ -1370,28 +1495,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFriendlyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } friendlyName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * User provided display name for the connection.
      * 
* * string friendly_name = 2; + * * @return This builder for chaining. */ public Builder clearFriendlyName() { @@ -1401,17 +1533,21 @@ public Builder clearFriendlyName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFriendlyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); friendlyName_ = value; bitField0_ |= 0x00000002; @@ -1421,18 +1557,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; @@ -1441,20 +1579,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 { @@ -1462,28 +1601,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * User provided description.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1493,17 +1639,21 @@ public Builder clearDescription() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000004; @@ -1512,13 +1662,19 @@ public Builder setDescriptionBytes( } 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 @@ -1526,11 +1682,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 @@ -1548,6 +1707,8 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlProperties getCloudSql() } } /** + * + * *
      * Cloud SQL properties.
      * 
@@ -1568,6 +1729,8 @@ public Builder setCloudSql(com.google.cloud.bigquery.connection.v1.CloudSqlPrope return this; } /** + * + * *
      * Cloud SQL properties.
      * 
@@ -1586,6 +1749,8 @@ public Builder setCloudSql( return this; } /** + * + * *
      * Cloud SQL properties.
      * 
@@ -1594,10 +1759,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; } @@ -1613,6 +1783,8 @@ public Builder mergeCloudSql(com.google.cloud.bigquery.connection.v1.CloudSqlPro return this; } /** + * + * *
      * Cloud SQL properties.
      * 
@@ -1636,6 +1808,8 @@ public Builder clearCloudSql() { return this; } /** + * + * *
      * Cloud SQL properties.
      * 
@@ -1646,6 +1820,8 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlProperties.Builder getClo return getCloudSqlFieldBuilder().getBuilder(); } /** + * + * *
      * Cloud SQL properties.
      * 
@@ -1653,7 +1829,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 { @@ -1664,6 +1841,8 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlPropertiesOrBuilder getCl } } /** + * + * *
      * Cloud SQL properties.
      * 
@@ -1671,14 +1850,20 @@ 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()); @@ -1690,13 +1875,19 @@ public com.google.cloud.bigquery.connection.v1.CloudSqlPropertiesOrBuilder getCl } 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 @@ -1704,11 +1895,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 @@ -1726,6 +1920,8 @@ public com.google.cloud.bigquery.connection.v1.AwsProperties getAws() { } } /** + * + * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1746,6 +1942,8 @@ public Builder setAws(com.google.cloud.bigquery.connection.v1.AwsProperties valu return this; } /** + * + * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1764,6 +1962,8 @@ public Builder setAws( return this; } /** + * + * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1772,10 +1972,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; } @@ -1791,6 +1995,8 @@ public Builder mergeAws(com.google.cloud.bigquery.connection.v1.AwsProperties va return this; } /** + * + * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1814,6 +2020,8 @@ public Builder clearAws() { return this; } /** + * + * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1824,6 +2032,8 @@ public com.google.cloud.bigquery.connection.v1.AwsProperties.Builder getAwsBuild return getAwsFieldBuilder().getBuilder(); } /** + * + * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1842,6 +2052,8 @@ public com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder getAwsOrBu } } /** + * + * *
      * Amazon Web Services (AWS) properties.
      * 
@@ -1849,14 +2061,19 @@ 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()); @@ -1868,13 +2085,19 @@ public com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder getAwsOrBu } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.AzureProperties, com.google.cloud.bigquery.connection.v1.AzureProperties.Builder, com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder> azureBuilder_; + com.google.cloud.bigquery.connection.v1.AzureProperties, + com.google.cloud.bigquery.connection.v1.AzureProperties.Builder, + com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder> + azureBuilder_; /** + * + * *
      * Azure properties.
      * 
* * .google.cloud.bigquery.connection.v1.AzureProperties azure = 11; + * * @return Whether the azure field is set. */ @java.lang.Override @@ -1882,11 +2105,14 @@ public boolean hasAzure() { return propertiesCase_ == 11; } /** + * + * *
      * Azure properties.
      * 
* * .google.cloud.bigquery.connection.v1.AzureProperties azure = 11; + * * @return The azure. */ @java.lang.Override @@ -1904,6 +2130,8 @@ public com.google.cloud.bigquery.connection.v1.AzureProperties getAzure() { } } /** + * + * *
      * Azure properties.
      * 
@@ -1924,6 +2152,8 @@ public Builder setAzure(com.google.cloud.bigquery.connection.v1.AzureProperties return this; } /** + * + * *
      * Azure properties.
      * 
@@ -1942,6 +2172,8 @@ public Builder setAzure( return this; } /** + * + * *
      * Azure properties.
      * 
@@ -1950,10 +2182,14 @@ public Builder setAzure( */ public Builder mergeAzure(com.google.cloud.bigquery.connection.v1.AzureProperties value) { if (azureBuilder_ == null) { - if (propertiesCase_ == 11 && - properties_ != com.google.cloud.bigquery.connection.v1.AzureProperties.getDefaultInstance()) { - properties_ = com.google.cloud.bigquery.connection.v1.AzureProperties.newBuilder((com.google.cloud.bigquery.connection.v1.AzureProperties) properties_) - .mergeFrom(value).buildPartial(); + if (propertiesCase_ == 11 + && properties_ + != com.google.cloud.bigquery.connection.v1.AzureProperties.getDefaultInstance()) { + properties_ = + com.google.cloud.bigquery.connection.v1.AzureProperties.newBuilder( + (com.google.cloud.bigquery.connection.v1.AzureProperties) properties_) + .mergeFrom(value) + .buildPartial(); } else { properties_ = value; } @@ -1969,6 +2205,8 @@ public Builder mergeAzure(com.google.cloud.bigquery.connection.v1.AzurePropertie return this; } /** + * + * *
      * Azure properties.
      * 
@@ -1992,6 +2230,8 @@ public Builder clearAzure() { return this; } /** + * + * *
      * Azure properties.
      * 
@@ -2002,6 +2242,8 @@ public com.google.cloud.bigquery.connection.v1.AzureProperties.Builder getAzureB return getAzureFieldBuilder().getBuilder(); } /** + * + * *
      * Azure properties.
      * 
@@ -2020,6 +2262,8 @@ public com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder getAzure } } /** + * + * *
      * Azure properties.
      * 
@@ -2027,14 +2271,20 @@ public com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder getAzure * .google.cloud.bigquery.connection.v1.AzureProperties azure = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.AzureProperties, com.google.cloud.bigquery.connection.v1.AzureProperties.Builder, com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder> + com.google.cloud.bigquery.connection.v1.AzureProperties, + com.google.cloud.bigquery.connection.v1.AzureProperties.Builder, + com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder> getAzureFieldBuilder() { if (azureBuilder_ == null) { if (!(propertiesCase_ == 11)) { - properties_ = com.google.cloud.bigquery.connection.v1.AzureProperties.getDefaultInstance(); + properties_ = + com.google.cloud.bigquery.connection.v1.AzureProperties.getDefaultInstance(); } - azureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.AzureProperties, com.google.cloud.bigquery.connection.v1.AzureProperties.Builder, com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder>( + azureBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.AzureProperties, + com.google.cloud.bigquery.connection.v1.AzureProperties.Builder, + com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder>( (com.google.cloud.bigquery.connection.v1.AzureProperties) properties_, getParentForChildren(), isClean()); @@ -2046,13 +2296,19 @@ public com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder getAzure } 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 @@ -2060,11 +2316,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 @@ -2082,13 +2341,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(); @@ -2102,6 +2364,8 @@ public Builder setCloudSpanner(com.google.cloud.bigquery.connection.v1.CloudSpan return this; } /** + * + * *
      * Cloud Spanner properties.
      * 
@@ -2120,18 +2384,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; } @@ -2147,6 +2419,8 @@ public Builder mergeCloudSpanner(com.google.cloud.bigquery.connection.v1.CloudSp return this; } /** + * + * *
      * Cloud Spanner properties.
      * 
@@ -2170,16 +2444,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.
      * 
@@ -2187,7 +2466,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 { @@ -2198,6 +2478,8 @@ public com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder g } } /** + * + * *
      * Cloud Spanner properties.
      * 
@@ -2205,14 +2487,20 @@ 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()); @@ -2224,13 +2512,20 @@ public com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder g } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudResourceProperties, com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder, com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder> cloudResourceBuilder_; + com.google.cloud.bigquery.connection.v1.CloudResourceProperties, + com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder, + com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder> + cloudResourceBuilder_; /** + * + * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * + * * @return Whether the cloudResource field is set. */ @java.lang.Override @@ -2238,11 +2533,15 @@ public boolean hasCloudResource() { return propertiesCase_ == 22; } /** + * + * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * + * * @return The cloudResource. */ @java.lang.Override @@ -2260,13 +2559,17 @@ public com.google.cloud.bigquery.connection.v1.CloudResourceProperties getCloudR } } /** + * + * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * */ - public Builder setCloudResource(com.google.cloud.bigquery.connection.v1.CloudResourceProperties value) { + public Builder setCloudResource( + com.google.cloud.bigquery.connection.v1.CloudResourceProperties value) { if (cloudResourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2280,11 +2583,14 @@ public Builder setCloudResource(com.google.cloud.bigquery.connection.v1.CloudRes return this; } /** + * + * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * */ public Builder setCloudResource( com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder builderForValue) { @@ -2298,18 +2604,27 @@ public Builder setCloudResource( return this; } /** + * + * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * */ - public Builder mergeCloudResource(com.google.cloud.bigquery.connection.v1.CloudResourceProperties value) { + public Builder mergeCloudResource( + com.google.cloud.bigquery.connection.v1.CloudResourceProperties value) { if (cloudResourceBuilder_ == null) { - if (propertiesCase_ == 22 && - properties_ != com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance()) { - properties_ = com.google.cloud.bigquery.connection.v1.CloudResourceProperties.newBuilder((com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_) - .mergeFrom(value).buildPartial(); + if (propertiesCase_ == 22 + && properties_ + != com.google.cloud.bigquery.connection.v1.CloudResourceProperties + .getDefaultInstance()) { + properties_ = + com.google.cloud.bigquery.connection.v1.CloudResourceProperties.newBuilder( + (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_) + .mergeFrom(value) + .buildPartial(); } else { properties_ = value; } @@ -2325,11 +2640,14 @@ public Builder mergeCloudResource(com.google.cloud.bigquery.connection.v1.CloudR return this; } /** + * + * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * */ public Builder clearCloudResource() { if (cloudResourceBuilder_ == null) { @@ -2348,24 +2666,32 @@ public Builder clearCloudResource() { return this; } /** + * + * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * */ - public com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder getCloudResourceBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder + getCloudResourceBuilder() { return getCloudResourceFieldBuilder().getBuilder(); } /** + * + * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder getCloudResourceOrBuilder() { + public com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder + getCloudResourceOrBuilder() { if ((propertiesCase_ == 22) && (cloudResourceBuilder_ != null)) { return cloudResourceBuilder_.getMessageOrBuilder(); } else { @@ -2376,21 +2702,30 @@ public com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder } } /** + * + * *
      * Cloud Resource properties.
      * 
* - * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudResourceProperties, com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder, com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder> + com.google.cloud.bigquery.connection.v1.CloudResourceProperties, + com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder, + com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder> getCloudResourceFieldBuilder() { if (cloudResourceBuilder_ == null) { if (!(propertiesCase_ == 22)) { - properties_ = com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance(); + properties_ = + com.google.cloud.bigquery.connection.v1.CloudResourceProperties.getDefaultInstance(); } - cloudResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.CloudResourceProperties, com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder, com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder>( + cloudResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.CloudResourceProperties, + com.google.cloud.bigquery.connection.v1.CloudResourceProperties.Builder, + com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder>( (com.google.cloud.bigquery.connection.v1.CloudResourceProperties) properties_, getParentForChildren(), isClean()); @@ -2402,13 +2737,19 @@ public com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.SparkProperties, com.google.cloud.bigquery.connection.v1.SparkProperties.Builder, com.google.cloud.bigquery.connection.v1.SparkPropertiesOrBuilder> sparkBuilder_; + com.google.cloud.bigquery.connection.v1.SparkProperties, + com.google.cloud.bigquery.connection.v1.SparkProperties.Builder, + com.google.cloud.bigquery.connection.v1.SparkPropertiesOrBuilder> + sparkBuilder_; /** + * + * *
      * Spark properties.
      * 
* * .google.cloud.bigquery.connection.v1.SparkProperties spark = 23; + * * @return Whether the spark field is set. */ @java.lang.Override @@ -2416,11 +2757,14 @@ public boolean hasSpark() { return propertiesCase_ == 23; } /** + * + * *
      * Spark properties.
      * 
* * .google.cloud.bigquery.connection.v1.SparkProperties spark = 23; + * * @return The spark. */ @java.lang.Override @@ -2438,6 +2782,8 @@ public com.google.cloud.bigquery.connection.v1.SparkProperties getSpark() { } } /** + * + * *
      * Spark properties.
      * 
@@ -2458,6 +2804,8 @@ public Builder setSpark(com.google.cloud.bigquery.connection.v1.SparkProperties return this; } /** + * + * *
      * Spark properties.
      * 
@@ -2476,6 +2824,8 @@ public Builder setSpark( return this; } /** + * + * *
      * Spark properties.
      * 
@@ -2484,10 +2834,14 @@ public Builder setSpark( */ public Builder mergeSpark(com.google.cloud.bigquery.connection.v1.SparkProperties value) { if (sparkBuilder_ == null) { - if (propertiesCase_ == 23 && - properties_ != com.google.cloud.bigquery.connection.v1.SparkProperties.getDefaultInstance()) { - properties_ = com.google.cloud.bigquery.connection.v1.SparkProperties.newBuilder((com.google.cloud.bigquery.connection.v1.SparkProperties) properties_) - .mergeFrom(value).buildPartial(); + if (propertiesCase_ == 23 + && properties_ + != com.google.cloud.bigquery.connection.v1.SparkProperties.getDefaultInstance()) { + properties_ = + com.google.cloud.bigquery.connection.v1.SparkProperties.newBuilder( + (com.google.cloud.bigquery.connection.v1.SparkProperties) properties_) + .mergeFrom(value) + .buildPartial(); } else { properties_ = value; } @@ -2503,6 +2857,8 @@ public Builder mergeSpark(com.google.cloud.bigquery.connection.v1.SparkPropertie return this; } /** + * + * *
      * Spark properties.
      * 
@@ -2526,6 +2882,8 @@ public Builder clearSpark() { return this; } /** + * + * *
      * Spark properties.
      * 
@@ -2536,6 +2894,8 @@ public com.google.cloud.bigquery.connection.v1.SparkProperties.Builder getSparkB return getSparkFieldBuilder().getBuilder(); } /** + * + * *
      * Spark properties.
      * 
@@ -2554,6 +2914,8 @@ public com.google.cloud.bigquery.connection.v1.SparkPropertiesOrBuilder getSpark } } /** + * + * *
      * Spark properties.
      * 
@@ -2561,14 +2923,20 @@ public com.google.cloud.bigquery.connection.v1.SparkPropertiesOrBuilder getSpark * .google.cloud.bigquery.connection.v1.SparkProperties spark = 23; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.SparkProperties, com.google.cloud.bigquery.connection.v1.SparkProperties.Builder, com.google.cloud.bigquery.connection.v1.SparkPropertiesOrBuilder> + com.google.cloud.bigquery.connection.v1.SparkProperties, + com.google.cloud.bigquery.connection.v1.SparkProperties.Builder, + com.google.cloud.bigquery.connection.v1.SparkPropertiesOrBuilder> getSparkFieldBuilder() { if (sparkBuilder_ == null) { if (!(propertiesCase_ == 23)) { - properties_ = com.google.cloud.bigquery.connection.v1.SparkProperties.getDefaultInstance(); + properties_ = + com.google.cloud.bigquery.connection.v1.SparkProperties.getDefaultInstance(); } - sparkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.SparkProperties, com.google.cloud.bigquery.connection.v1.SparkProperties.Builder, com.google.cloud.bigquery.connection.v1.SparkPropertiesOrBuilder>( + sparkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.SparkProperties, + com.google.cloud.bigquery.connection.v1.SparkProperties.Builder, + com.google.cloud.bigquery.connection.v1.SparkPropertiesOrBuilder>( (com.google.cloud.bigquery.connection.v1.SparkProperties) properties_, getParentForChildren(), isClean()); @@ -2579,13 +2947,16 @@ public com.google.cloud.bigquery.connection.v1.SparkPropertiesOrBuilder getSpark return sparkBuilder_; } - 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 @@ -2593,27 +2964,33 @@ 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; bitField0_ |= 0x00000200; 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() { @@ -2623,13 +3000,16 @@ public Builder clearCreationTime() { 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 @@ -2637,27 +3017,33 @@ 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; bitField0_ |= 0x00000400; 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() { @@ -2667,13 +3053,16 @@ public Builder clearLastModifiedTime() { 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 @@ -2681,27 +3070,33 @@ 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; bitField0_ |= 0x00000800; 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() { @@ -2710,9 +3105,9 @@ public Builder clearHasCredential() { 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); } @@ -2722,12 +3117,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(); } @@ -2736,27 +3131,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2771,6 +3166,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/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionName.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionName.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionName.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionName.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java similarity index 84% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java index 99654d90a797..b98712b16500 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOrBuilder.java +++ b/java-bigqueryconnection/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,24 +171,32 @@ public interface ConnectionOrBuilder extends com.google.cloud.bigquery.connection.v1.AwsPropertiesOrBuilder getAwsOrBuilder(); /** + * + * *
    * Azure properties.
    * 
* * .google.cloud.bigquery.connection.v1.AzureProperties azure = 11; + * * @return Whether the azure field is set. */ boolean hasAzure(); /** + * + * *
    * Azure properties.
    * 
* * .google.cloud.bigquery.connection.v1.AzureProperties azure = 11; + * * @return The azure. */ com.google.cloud.bigquery.connection.v1.AzureProperties getAzure(); /** + * + * *
    * Azure properties.
    * 
@@ -151,78 +206,104 @@ public interface ConnectionOrBuilder extends com.google.cloud.bigquery.connection.v1.AzurePropertiesOrBuilder getAzureOrBuilder(); /** + * + * *
    * Cloud Spanner properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; + * * @return Whether the cloudSpanner field is set. */ boolean hasCloudSpanner(); /** + * + * *
    * Cloud Spanner properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; + * * @return The cloudSpanner. */ com.google.cloud.bigquery.connection.v1.CloudSpannerProperties getCloudSpanner(); /** + * + * *
    * Cloud Spanner properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudSpannerProperties cloud_spanner = 21; */ - com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder getCloudSpannerOrBuilder(); + com.google.cloud.bigquery.connection.v1.CloudSpannerPropertiesOrBuilder + getCloudSpannerOrBuilder(); /** + * + * *
    * Cloud Resource properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * * @return Whether the cloudResource field is set. */ boolean hasCloudResource(); /** + * + * *
    * Cloud Resource properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; + * * @return The cloudResource. */ com.google.cloud.bigquery.connection.v1.CloudResourceProperties getCloudResource(); /** + * + * *
    * Cloud Resource properties.
    * 
* * .google.cloud.bigquery.connection.v1.CloudResourceProperties cloud_resource = 22; */ - com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder getCloudResourceOrBuilder(); + com.google.cloud.bigquery.connection.v1.CloudResourcePropertiesOrBuilder + getCloudResourceOrBuilder(); /** + * + * *
    * Spark properties.
    * 
* * .google.cloud.bigquery.connection.v1.SparkProperties spark = 23; + * * @return Whether the spark field is set. */ boolean hasSpark(); /** + * + * *
    * Spark properties.
    * 
* * .google.cloud.bigquery.connection.v1.SparkProperties spark = 23; + * * @return The spark. */ com.google.cloud.bigquery.connection.v1.SparkProperties getSpark(); /** + * + * *
    * Spark properties.
    * 
@@ -232,31 +313,40 @@ public interface ConnectionOrBuilder extends com.google.cloud.bigquery.connection.v1.SparkPropertiesOrBuilder getSparkOrBuilder(); /** + * + * *
    * 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/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java new file mode 100644 index 000000000000..329dd8e5c9ea --- /dev/null +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java @@ -0,0 +1,452 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/connection/v1/connection.proto + +package com.google.cloud.bigquery.connection.v1; + +public final class ConnectionOuterClass { + private ConnectionOuterClass() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_Connection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_AwsProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_AzureProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_AzureProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_MetastoreServiceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_MetastoreServiceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_SparkHistoryServerConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_SparkHistoryServerConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_connection_v1_SparkProperties_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_connection_v1_SparkProperties_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/bigquery/connection/v1/co" + + "nnection.proto\022#google.cloud.bigquery.co" + + "nnection.v1\032\034google/api/annotations.prot" + + "o\032\027google/api/client.proto\032\037google/api/f" + + "ield_behavior.proto\032\031google/api/resource" + + ".proto\032\036google/iam/v1/iam_policy.proto\032\032" + + "google/iam/v1/policy.proto\032\033google/proto" + + "buf/empty.proto\032 google/protobuf/field_m" + + "ask.proto\"\272\001\n\027CreateConnectionRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googlea" + + "pis.com/Location\022\032\n\rconnection_id\030\002 \001(\tB" + + "\003\340A\001\022H\n\nconnection\030\003 \001(\0132/.google.cloud." + + "bigquery.connection.v1.ConnectionB\003\340A\002\"Z" + + "\n\024GetConnectionRequest\022B\n\004name\030\001 \001(\tB4\340A" + + "\002\372A.\n,bigqueryconnection.googleapis.com/" + + "Connection\"\177\n\026ListConnectionsRequest\0229\n\006" + + "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + + "is.com/Location\022\026\n\tpage_size\030\004 \001(\005B\003\340A\002\022" + + "\022\n\npage_token\030\003 \001(\t\"x\n\027ListConnectionsRe" + + "sponse\022\027\n\017next_page_token\030\001 \001(\t\022D\n\013conne" + + "ctions\030\002 \003(\0132/.google.cloud.bigquery.con" + + "nection.v1.Connection\"\335\001\n\027UpdateConnecti" + + "onRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,bigquer" + + "yconnection.googleapis.com/Connection\022H\n" + + "\nconnection\030\002 \001(\0132/.google.cloud.bigquer" + + "y.connection.v1.ConnectionB\003\340A\002\0224\n\013updat" + + "e_mask\030\003 \001(\0132\032.google.protobuf.FieldMask" + + "B\003\340A\002\"]\n\027DeleteConnectionRequest\022B\n\004name" + + "\030\001 \001(\tB4\340A\002\372A.\n,bigqueryconnection.googl" + + "eapis.com/Connection\"\360\005\n\nConnection\022\014\n\004n" + + "ame\030\001 \001(\t\022\025\n\rfriendly_name\030\002 \001(\t\022\023\n\013desc" + + "ription\030\003 \001(\t\022L\n\tcloud_sql\030\004 \001(\01327.googl" + + "e.cloud.bigquery.connection.v1.CloudSqlP" + + "ropertiesH\000\022A\n\003aws\030\010 \001(\01322.google.cloud." + + "bigquery.connection.v1.AwsPropertiesH\000\022E" + + "\n\005azure\030\013 \001(\01324.google.cloud.bigquery.co" + + "nnection.v1.AzurePropertiesH\000\022T\n\rcloud_s" + + "panner\030\025 \001(\0132;.google.cloud.bigquery.con" + + "nection.v1.CloudSpannerPropertiesH\000\022V\n\016c" + + "loud_resource\030\026 \001(\0132<.google.cloud.bigqu" + + "ery.connection.v1.CloudResourcePropertie" + + "sH\000\022E\n\005spark\030\027 \001(\01324.google.cloud.bigque" + + "ry.connection.v1.SparkPropertiesH\000\022\032\n\rcr" + + "eation_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}/loca" + + "tions/{location}/connections/{connection" + + "}B\014\n\nproperties\"\312\002\n\022CloudSqlProperties\022\023" + + "\n\013instance_id\030\001 \001(\t\022\020\n\010database\030\002 \001(\t\022R\n" + + "\004type\030\003 \001(\0162D.google.cloud.bigquery.conn" + + "ection.v1.CloudSqlProperties.DatabaseTyp" + + "e\022P\n\ncredential\030\004 \001(\01327.google.cloud.big" + + "query.connection.v1.CloudSqlCredentialB\003" + + "\340A\004\022\037\n\022service_account_id\030\005 \001(\tB\003\340A\003\"F\n\014" + + "DatabaseType\022\035\n\031DATABASE_TYPE_UNSPECIFIE" + + "D\020\000\022\014\n\010POSTGRES\020\001\022\t\n\005MYSQL\020\002\"8\n\022CloudSql" + + "Credential\022\020\n\010username\030\001 \001(\t\022\020\n\010password" + + "\030\002 \001(\t\"\201\001\n\026CloudSpannerProperties\022\020\n\010dat" + + "abase\030\001 \001(\t\022\027\n\017use_parallelism\030\002 \001(\010\022 \n\030" + + "use_serverless_analytics\030\003 \001(\010\022\032\n\rdataba" + + "se_role\030\004 \001(\tB\003\340A\001\"\317\001\n\rAwsProperties\022Z\n\022" + + "cross_account_role\030\002 \001(\01328.google.cloud." + + "bigquery.connection.v1.AwsCrossAccountRo" + + "leB\002\030\001H\000\022I\n\013access_role\030\003 \001(\01322.google.c" + + "loud.bigquery.connection.v1.AwsAccessRol" + + "eH\000B\027\n\025authentication_method\"^\n\023AwsCross" + + "AccountRole\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\rAwsAccessRole\022\023\n\013iam_role_id\030\001 \001" + + "(\t\022\020\n\010identity\030\002 \001(\t\"\315\001\n\017AzureProperties" + + "\022\030\n\013application\030\001 \001(\tB\003\340A\003\022\026\n\tclient_id\030" + + "\002 \001(\tB\003\340A\003\022\026\n\tobject_id\030\003 \001(\tB\003\340A\003\022\032\n\022cu" + + "stomer_tenant_id\030\004 \001(\t\022\024\n\014redirect_uri\030\005" + + " \001(\t\022\'\n\037federated_application_client_id\030" + + "\006 \001(\t\022\025\n\010identity\030\007 \001(\tB\003\340A\003\":\n\027CloudRes" + + "ourceProperties\022\037\n\022service_account_id\030\001 " + + "\001(\tB\003\340A\003\"]\n\026MetastoreServiceConfig\022C\n\021me" + + "tastore_service\030\001 \001(\tB(\340A\001\372A\"\n metastore" + + ".googleapis.com/Service\"]\n\030SparkHistoryS" + + "erverConfig\022A\n\020dataproc_cluster\030\001 \001(\tB\'\340" + + "A\001\372A!\n\037dataproc.googleapis.com/Cluster\"\377" + + "\001\n\017SparkProperties\022\037\n\022service_account_id" + + "\030\001 \001(\tB\003\340A\003\022b\n\030metastore_service_config\030" + + "\003 \001(\0132;.google.cloud.bigquery.connection" + + ".v1.MetastoreServiceConfigB\003\340A\001\022g\n\033spark" + + "_history_server_config\030\004 \001(\0132=.google.cl" + + "oud.bigquery.connection.v1.SparkHistoryS" + + "erverConfigB\003\340A\0012\314\r\n\021ConnectionService\022\350" + + "\001\n\020CreateConnection\022<.google.cloud.bigqu" + + "ery.connection.v1.CreateConnectionReques" + + "t\032/.google.cloud.bigquery.connection.v1." + + "Connection\"e\202\323\344\223\002=\"//v1/{parent=projects" + + "/*/locations/*}/connections:\nconnection\332" + + "A\037parent,connection,connection_id\022\273\001\n\rGe" + + "tConnection\0229.google.cloud.bigquery.conn" + + "ection.v1.GetConnectionRequest\032/.google." + + "cloud.bigquery.connection.v1.Connection\"" + + ">\202\323\344\223\0021\022//v1/{name=projects/*/locations/" + + "*/connections/*}\332A\004name\022\316\001\n\017ListConnecti" + + "ons\022;.google.cloud.bigquery.connection.v" + + "1.ListConnectionsRequest\032<.google.cloud." + + "bigquery.connection.v1.ListConnectionsRe" + + "sponse\"@\202\323\344\223\0021\022//v1/{parent=projects/*/l" + + "ocations/*}/connections\332A\006parent\022\344\001\n\020Upd" + + "ateConnection\022<.google.cloud.bigquery.co" + + "nnection.v1.UpdateConnectionRequest\032/.go" + + "ogle.cloud.bigquery.connection.v1.Connec" + + "tion\"a\202\323\344\223\002=2//v1/{name=projects/*/locat" + + "ions/*/connections/*}:\nconnection\332A\033name" + + ",connection,update_mask\022\250\001\n\020DeleteConnec" + + "tion\022<.google.cloud.bigquery.connection." + + "v1.DeleteConnectionRequest\032\026.google.prot" + + "obuf.Empty\">\202\323\344\223\0021*//v1/{name=projects/*" + + "/locations/*/connections/*}\332A\004name\022\251\001\n\014G" + + "etIamPolicy\022\".google.iam.v1.GetIamPolicy" + + "Request\032\025.google.iam.v1.Policy\"^\202\323\344\223\002E\"@" + + "/v1/{resource=projects/*/locations/*/con" + + "nections/*}:getIamPolicy:\001*\332A\020resource,o" + + "ptions\022\250\001\n\014SetIamPolicy\022\".google.iam.v1." + + "SetIamPolicyRequest\032\025.google.iam.v1.Poli" + + "cy\"]\202\323\344\223\002E\"@/v1/{resource=projects/*/loc" + + "ations/*/connections/*}:setIamPolicy:\001*\332" + + "A\017resource,policy\022\323\001\n\022TestIamPermissions" + + "\022(.google.iam.v1.TestIamPermissionsReque" + + "st\032).google.iam.v1.TestIamPermissionsRes" + + "ponse\"h\202\323\344\223\002K\"F/v1/{resource=projects/*/" + + "locations/*/connections/*}:testIamPermis" + + "sions:\001*\332A\024resource,permissions\032~\312A!bigq" + + "ueryconnection.googleapis.com\322AWhttps://" + + "www.googleapis.com/auth/bigquery,https:/" + + "/www.googleapis.com/auth/cloud-platformB" + + "\375\002\n\'com.google.cloud.bigquery.connection" + + ".v1P\001ZGcloud.google.com/go/bigquery/conn" + + "ection/apiv1/connectionpb;connectionpb\252\002" + + "#Google.Cloud.BigQuery.Connection.V1\312\002#G" + + "oogle\\Cloud\\BigQuery\\Connection\\V1\352AY\n\037d" + + "ataproc.googleapis.com/Cluster\0226projects" + + "/{project}/regions/{region}/clusters/{cl" + + "uster}\352A^\n metastore.googleapis.com/Serv" + + "ice\022:projects/{project}/locations/{locat" + + "ion}/services/{service}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor, + new java.lang.String[] { + "Parent", "ConnectionId", "Connection", + }); + internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor, + new java.lang.String[] { + "NextPageToken", "Connections", + }); + internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor, + new java.lang.String[] { + "Name", "Connection", "UpdateMask", + }); + internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_bigquery_connection_v1_Connection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor, + new java.lang.String[] { + "Name", + "FriendlyName", + "Description", + "CloudSql", + "Aws", + "Azure", + "CloudSpanner", + "CloudResource", + "Spark", + "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", "ServiceAccountId", + }); + 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", "UseServerlessAnalytics", "DatabaseRole", + }); + internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_bigquery_connection_v1_AwsProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor, + new java.lang.String[] { + "CrossAccountRole", "AccessRole", "AuthenticationMethod", + }); + internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor, + new java.lang.String[] { + "IamRoleId", "IamUserId", "ExternalId", + }); + internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor, + new java.lang.String[] { + "IamRoleId", "Identity", + }); + internal_static_google_cloud_bigquery_connection_v1_AzureProperties_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_bigquery_connection_v1_AzureProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_AzureProperties_descriptor, + new java.lang.String[] { + "Application", + "ClientId", + "ObjectId", + "CustomerTenantId", + "RedirectUri", + "FederatedApplicationClientId", + "Identity", + }); + internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor, + new java.lang.String[] { + "ServiceAccountId", + }); + internal_static_google_cloud_bigquery_connection_v1_MetastoreServiceConfig_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_bigquery_connection_v1_MetastoreServiceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_MetastoreServiceConfig_descriptor, + new java.lang.String[] { + "MetastoreService", + }); + internal_static_google_cloud_bigquery_connection_v1_SparkHistoryServerConfig_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_bigquery_connection_v1_SparkHistoryServerConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_SparkHistoryServerConfig_descriptor, + new java.lang.String[] { + "DataprocCluster", + }); + internal_static_google_cloud_bigquery_connection_v1_SparkProperties_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_bigquery_connection_v1_SparkProperties_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_connection_v1_SparkProperties_descriptor, + new java.lang.String[] { + "ServiceAccountId", "MetastoreServiceConfig", "SparkHistoryServerConfig", + }); + 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.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequest.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequest.java similarity index 62% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequest.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequest.java index 797822d6207c..d926aced6670 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequest.java +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequest.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; /** + * + * *
  * The request for
  * [ConnectionService.CreateConnection][google.cloud.bigquery.connection.v1.ConnectionService.CreateConnection].
@@ -11,15 +28,16 @@
  *
  * 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_ = "";
@@ -27,39 +45,46 @@ 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;
   }
-  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;
+
   @SuppressWarnings("serial")
   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 @@ -68,30 +93,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 { @@ -100,14 +127,18 @@ public java.lang.String getParent() { } public static final int CONNECTION_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -116,29 +147,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 { @@ -149,11 +180,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 @@ -161,30 +197,44 @@ 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() { - return connection_ == null ? com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() : connection_; + return connection_ == null + ? com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() + : connection_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -196,8 +246,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -223,8 +272,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -234,21 +282,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -275,96 +321,104 @@ 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].
@@ -372,33 +426,32 @@ protected Builder newBuilderForType(
    *
    * 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -414,13 +467,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();
     }
 
@@ -435,13 +489,17 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.connection.v1.CreateConnectionRequest result =
+          new com.google.cloud.bigquery.connection.v1.CreateConnectionRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.bigquery.connection.v1.CreateConnectionRequest result) {
+    private void buildPartial0(
+        com.google.cloud.bigquery.connection.v1.CreateConnectionRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.parent_ = parent_;
@@ -450,9 +508,7 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.CreateConnect
         result.connectionId_ = connectionId_;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.connection_ = connectionBuilder_ == null
-            ? connection_
-            : connectionBuilder_.build();
+        result.connection_ = connectionBuilder_ == null ? connection_ : connectionBuilder_.build();
       }
     }
 
@@ -460,46 +516,50 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.CreateConnect
     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_;
         bitField0_ |= 0x00000001;
@@ -539,29 +599,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              connectionId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getConnectionFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                connectionId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getConnectionFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -571,23 +633,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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; @@ -596,21 +663,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 { @@ -618,30 +688,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -651,18 +732,24 @@ public Builder clearParent() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -672,18 +759,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; @@ -692,20 +781,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 { @@ -713,28 +803,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setConnectionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } connectionId_ = value; bitField0_ |= 0x00000002; 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() { @@ -744,17 +841,21 @@ public Builder clearConnectionId() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setConnectionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); connectionId_ = value; bitField0_ |= 0x00000002; @@ -764,39 +865,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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * 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) { @@ -812,11 +932,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) { @@ -830,17 +954,22 @@ 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 (((bitField0_ & 0x00000004) != 0) && - connection_ != null && - connection_ != com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && connection_ != null + && connection_ + != com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance()) { getConnectionBuilder().mergeFrom(value); } else { connection_ = value; @@ -853,11 +982,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -870,11 +1003,15 @@ 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() { bitField0_ |= 0x00000004; @@ -882,43 +1019,55 @@ public com.google.cloud.bigquery.connection.v1.Connection.Builder getConnectionB 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); } @@ -928,41 +1077,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -974,9 +1125,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/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequestOrBuilder.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequestOrBuilder.java similarity index 53% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequestOrBuilder.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequestOrBuilder.java index de7fb832ce12..850e155a60e7 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/CreateConnectionRequestOrBuilder.java +++ b/java-bigqueryconnection/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/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequest.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequest.java similarity index 61% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequest.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequest.java index eb63d7c16937..8e66c22ec129 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequest.java +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequest.java @@ -1,63 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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; } - 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; + @SuppressWarnings("serial") 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 @@ -66,30 +91,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 { @@ -98,6 +125,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -109,8 +137,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -134,15 +161,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,129 +189,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -294,13 +328,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(); } @@ -315,13 +350,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest result = + new com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -332,46 +371,50 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.DeleteConnect 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_; bitField0_ |= 0x00000001; @@ -403,17 +446,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,23 +468,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -448,21 +498,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 { @@ -470,30 +523,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -503,27 +567,33 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -533,41 +603,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -579,9 +651,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/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequestOrBuilder.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequestOrBuilder.java new file mode 100644 index 000000000000..7dcb0a56fdc1 --- /dev/null +++ b/java-bigqueryconnection/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/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequest.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequest.java similarity index 62% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequest.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequest.java index 589d91189460..29031c6f1aa4 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequest.java +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequest.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; /** + * + * *
  * The request for
  * [ConnectionService.GetConnection][google.cloud.bigquery.connection.v1.ConnectionService.GetConnection].
@@ -11,54 +28,62 @@
  *
  * 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;
   }
-  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;
+
   @SuppressWarnings("serial")
   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 @@ -67,30 +92,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 { @@ -99,6 +126,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,8 +138,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -135,15 +162,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -163,96 +190,104 @@ 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].
@@ -260,33 +295,32 @@ protected Builder newBuilderForType(
    *
    * 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -296,13 +330,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();
     }
 
@@ -317,13 +352,17 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.connection.v1.GetConnectionRequest result =
+          new com.google.cloud.bigquery.connection.v1.GetConnectionRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.bigquery.connection.v1.GetConnectionRequest result) {
+    private void buildPartial0(
+        com.google.cloud.bigquery.connection.v1.GetConnectionRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.name_ = name_;
@@ -334,38 +373,39 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.GetConnection
     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;
@@ -373,7 +413,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_;
         bitField0_ |= 0x00000001;
@@ -405,17 +447,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -425,23 +469,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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; @@ -450,21 +499,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 { @@ -472,30 +524,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -505,27 +568,33 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -535,12 +604,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(); } @@ -549,27 +619,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -584,6 +654,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.connection.v1.GetConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequestOrBuilder.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequestOrBuilder.java new file mode 100644 index 000000000000..e2b275c5f37d --- /dev/null +++ b/java-bigqueryconnection/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/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequest.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequest.java similarity index 65% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequest.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequest.java index 3d238b81c2cd..154d0fb200c2 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequest.java +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequest.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; /** + * + * *
  * The request for
  * [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1.ConnectionService.ListConnections].
@@ -11,15 +28,16 @@
  *
  * 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_ = "";
@@ -27,39 +45,46 @@ 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;
   }
-  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;
+
   @SuppressWarnings("serial")
   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 @@ -68,30 +93,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 { @@ -102,11 +129,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_ = 0; /** + * + * *
    * Required. Page size.
    * 
* * int32 page_size = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The pageSize. */ @java.lang.Override @@ -115,14 +145,18 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Page token.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -131,29 +165,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 { @@ -162,6 +196,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +208,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -200,8 +234,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -211,19 +244,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -247,96 +278,104 @@ 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].
@@ -344,33 +383,32 @@ protected Builder newBuilderForType(
    *
    * 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -382,13 +420,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();
     }
 
@@ -403,13 +442,17 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.connection.v1.ListConnectionsRequest result =
+          new com.google.cloud.bigquery.connection.v1.ListConnectionsRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.bigquery.connection.v1.ListConnectionsRequest result) {
+    private void buildPartial0(
+        com.google.cloud.bigquery.connection.v1.ListConnectionsRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.parent_ = parent_;
@@ -426,38 +469,39 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.ListConnectio
     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;
@@ -465,7 +509,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_;
         bitField0_ |= 0x00000001;
@@ -505,27 +551,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 26: {
-              pageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 32: {
-              pageSize_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 26:
+              {
+                pageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 32:
+              {
+                pageSize_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -535,23 +585,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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; @@ -560,21 +615,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 { @@ -582,30 +640,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -615,18 +684,24 @@ public Builder clearParent() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -634,13 +709,16 @@ public Builder setParentBytes( 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 @@ -648,27 +726,33 @@ 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; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. Page size.
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -680,18 +764,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; @@ -700,20 +786,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 { @@ -721,28 +808,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Page token.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -752,26 +846,30 @@ public Builder clearPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -781,41 +879,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -827,9 +927,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/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequestOrBuilder.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequestOrBuilder.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequestOrBuilder.java index 5bd07d827157..fb517f43a9a6 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsRequestOrBuilder.java +++ b/java-bigqueryconnection/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/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponse.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponse.java similarity index 70% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponse.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponse.java index fd95e7f0a509..4f73a1c88999 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponse.java +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponse.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; /** + * + * *
  * The response for
  * [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1.ConnectionService.ListConnections].
@@ -11,15 +28,16 @@
  *
  * 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();
@@ -27,38 +45,43 @@ 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;
   }
-  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;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object nextPageToken_ = "";
   /**
+   *
+   *
    * 
    * Next page token.
    * 
* * string next_page_token = 1; + * * @return The nextPageToken. */ @java.lang.Override @@ -67,29 +90,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 { @@ -98,9 +121,12 @@ public java.lang.String getNextPageToken() { } public static final int CONNECTIONS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List connections_; /** + * + * *
    * List of connections.
    * 
@@ -112,6 +138,8 @@ public java.util.List getCon return connections_; } /** + * + * *
    * List of connections.
    * 
@@ -119,11 +147,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.
    * 
@@ -135,6 +165,8 @@ public int getConnectionsCount() { return connections_.size(); } /** + * + * *
    * List of connections.
    * 
@@ -146,6 +178,8 @@ public com.google.cloud.bigquery.connection.v1.Connection getConnections(int ind return connections_.get(index); } /** + * + * *
    * List of connections.
    * 
@@ -159,6 +193,7 @@ public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnection } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,8 +205,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nextPageToken_); } @@ -191,8 +225,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -202,17 +235,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -236,96 +268,104 @@ 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].
@@ -333,33 +373,32 @@ protected Builder newBuilderForType(
    *
    * 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -376,13 +415,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();
     }
 
@@ -397,14 +437,18 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.bigquery.connection.v1.ListConnectionsResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.bigquery.connection.v1.ListConnectionsResponse result) {
       if (connectionsBuilder_ == null) {
         if (((bitField0_ & 0x00000002) != 0)) {
           connections_ = java.util.Collections.unmodifiableList(connections_);
@@ -416,7 +460,8 @@ private void buildPartialRepeatedFields(com.google.cloud.bigquery.connection.v1.
       }
     }
 
-    private void buildPartial0(com.google.cloud.bigquery.connection.v1.ListConnectionsResponse result) {
+    private void buildPartial0(
+        com.google.cloud.bigquery.connection.v1.ListConnectionsResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.nextPageToken_ = nextPageToken_;
@@ -427,46 +472,50 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.ListConnectio
     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_;
         bitField0_ |= 0x00000001;
@@ -490,9 +539,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.ListConnections
             connectionsBuilder_ = null;
             connections_ = other.connections_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            connectionsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getConnectionsFieldBuilder() : null;
+            connectionsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getConnectionsFieldBuilder()
+                    : null;
           } else {
             connectionsBuilder_.addAllMessages(other.connections_);
           }
@@ -524,30 +574,33 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              nextPageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              com.google.cloud.bigquery.connection.v1.Connection m =
-                  input.readMessage(
-                      com.google.cloud.bigquery.connection.v1.Connection.parser(),
-                      extensionRegistry);
-              if (connectionsBuilder_ == null) {
-                ensureConnectionsIsMutable();
-                connections_.add(m);
-              } else {
-                connectionsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                nextPageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.cloud.bigquery.connection.v1.Connection m =
+                    input.readMessage(
+                        com.google.cloud.bigquery.connection.v1.Connection.parser(),
+                        extensionRegistry);
+                if (connectionsBuilder_ == null) {
+                  ensureConnectionsIsMutable();
+                  connections_.add(m);
+                } else {
+                  connectionsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -557,22 +610,25 @@ public Builder mergeFrom(
       } // finally
       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; @@ -581,20 +637,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 { @@ -602,28 +659,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Next page token.
      * 
* * string next_page_token = 1; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -633,17 +697,21 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000001; @@ -652,18 +720,26 @@ public Builder setNextPageTokenBytes( } private java.util.List connections_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureConnectionsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - connections_ = new java.util.ArrayList(connections_); + connections_ = + new java.util.ArrayList( + connections_); bitField0_ |= 0x00000002; - } + } } 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.
      * 
@@ -678,6 +754,8 @@ public java.util.List getCon } } /** + * + * *
      * List of connections.
      * 
@@ -692,6 +770,8 @@ public int getConnectionsCount() { } } /** + * + * *
      * List of connections.
      * 
@@ -706,6 +786,8 @@ public com.google.cloud.bigquery.connection.v1.Connection getConnections(int ind } } /** + * + * *
      * List of connections.
      * 
@@ -727,6 +809,8 @@ public Builder setConnections( return this; } /** + * + * *
      * List of connections.
      * 
@@ -745,6 +829,8 @@ public Builder setConnections( return this; } /** + * + * *
      * List of connections.
      * 
@@ -765,6 +851,8 @@ public Builder addConnections(com.google.cloud.bigquery.connection.v1.Connection return this; } /** + * + * *
      * List of connections.
      * 
@@ -786,6 +874,8 @@ public Builder addConnections( return this; } /** + * + * *
      * List of connections.
      * 
@@ -804,6 +894,8 @@ public Builder addConnections( return this; } /** + * + * *
      * List of connections.
      * 
@@ -822,6 +914,8 @@ public Builder addConnections( return this; } /** + * + * *
      * List of connections.
      * 
@@ -832,8 +926,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); @@ -841,6 +934,8 @@ public Builder addAllConnections( return this; } /** + * + * *
      * List of connections.
      * 
@@ -858,6 +953,8 @@ public Builder clearConnections() { return this; } /** + * + * *
      * List of connections.
      * 
@@ -875,6 +972,8 @@ public Builder removeConnections(int index) { return this; } /** + * + * *
      * List of connections.
      * 
@@ -886,6 +985,8 @@ public com.google.cloud.bigquery.connection.v1.Connection.Builder getConnections return getConnectionsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of connections.
      * 
@@ -895,19 +996,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 { @@ -915,6 +1019,8 @@ public com.google.cloud.bigquery.connection.v1.ConnectionOrBuilder getConnection } } /** + * + * *
      * List of connections.
      * 
@@ -922,10 +1028,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.
      * 
@@ -934,37 +1042,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_ & 0x00000002) != 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_ & 0x00000002) != 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); } @@ -974,41 +1088,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1020,9 +1136,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/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponseOrBuilder.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponseOrBuilder.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponseOrBuilder.java index 1c26247d8954..081a72cad3c6 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ListConnectionsResponseOrBuilder.java +++ b/java-bigqueryconnection/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/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/LocationName.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/LocationName.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/LocationName.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/LocationName.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/MetastoreServiceConfig.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/MetastoreServiceConfig.java similarity index 62% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/MetastoreServiceConfig.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/MetastoreServiceConfig.java index 7d5746f843c9..d5dc0b93c925 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/MetastoreServiceConfig.java +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/MetastoreServiceConfig.java @@ -1,64 +1,89 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 of the Dataproc Metastore Service.
  * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.MetastoreServiceConfig} */ -public final class MetastoreServiceConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MetastoreServiceConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.MetastoreServiceConfig) MetastoreServiceConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MetastoreServiceConfig.newBuilder() to construct. private MetastoreServiceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MetastoreServiceConfig() { metastoreService_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MetastoreServiceConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_MetastoreServiceConfig_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_MetastoreServiceConfig_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_MetastoreServiceConfig_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_MetastoreServiceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.class, com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.Builder.class); + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.class, + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.Builder.class); } public static final int METASTORE_SERVICE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object metastoreService_ = ""; /** + * + * *
    * Optional. Resource name of an existing Dataproc Metastore service.
    * Example:
    * * `projects/[project_id]/locations/[region]/services/[service_id]`
    * 
* - * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The metastoreService. */ @java.lang.Override @@ -67,31 +92,33 @@ public java.lang.String getMetastoreService() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metastoreService_ = s; return s; } } /** + * + * *
    * Optional. Resource name of an existing Dataproc Metastore service.
    * Example:
    * * `projects/[project_id]/locations/[region]/services/[service_id]`
    * 
* - * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for metastoreService. */ @java.lang.Override - public com.google.protobuf.ByteString - getMetastoreServiceBytes() { + public com.google.protobuf.ByteString getMetastoreServiceBytes() { java.lang.Object ref = metastoreService_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); metastoreService_ = b; return b; } else { @@ -100,6 +127,7 @@ public java.lang.String getMetastoreService() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -111,8 +139,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metastoreService_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metastoreService_); } @@ -136,15 +163,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.MetastoreServiceConfig)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig other = (com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig) obj; + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig other = + (com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig) obj; - if (!getMetastoreService() - .equals(other.getMetastoreService())) return false; + if (!getMetastoreService().equals(other.getMetastoreService())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -164,129 +191,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig 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.MetastoreServiceConfig 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.MetastoreServiceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig 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.MetastoreServiceConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig 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.MetastoreServiceConfig 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.MetastoreServiceConfig 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.MetastoreServiceConfig 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.MetastoreServiceConfig 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.MetastoreServiceConfig 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.MetastoreServiceConfig 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.MetastoreServiceConfig 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.MetastoreServiceConfig 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.MetastoreServiceConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig 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 of the Dataproc Metastore Service.
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.MetastoreServiceConfig} */ - 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.MetastoreServiceConfig) com.google.cloud.bigquery.connection.v1.MetastoreServiceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_MetastoreServiceConfig_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_MetastoreServiceConfig_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_MetastoreServiceConfig_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_MetastoreServiceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.class, com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.Builder.class); + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.class, + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.Builder.class); } // Construct using com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -296,13 +330,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_MetastoreServiceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_MetastoreServiceConfig_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig + getDefaultInstanceForType() { return com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.getDefaultInstance(); } @@ -317,13 +352,17 @@ public com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig build() { @java.lang.Override public com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig buildPartial() { - com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig result = new com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig result = + new com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig result) { + private void buildPartial0( + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.metastoreService_ = metastoreService_; @@ -334,38 +373,39 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.MetastoreServ 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.MetastoreServiceConfig) { - return mergeFrom((com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig)other); + return mergeFrom((com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig) other); } else { super.mergeFrom(other); return this; @@ -373,7 +413,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig other) { - if (other == com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.getDefaultInstance()) return this; + if (other + == com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.getDefaultInstance()) + return this; if (!other.getMetastoreService().isEmpty()) { metastoreService_ = other.metastoreService_; bitField0_ |= 0x00000001; @@ -405,17 +447,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - metastoreService_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + metastoreService_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -425,24 +469,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object metastoreService_ = ""; /** + * + * *
      * Optional. Resource name of an existing Dataproc Metastore service.
      * Example:
      * * `projects/[project_id]/locations/[region]/services/[service_id]`
      * 
* - * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The metastoreService. */ public java.lang.String getMetastoreService() { java.lang.Object ref = metastoreService_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metastoreService_ = s; return s; @@ -451,22 +500,25 @@ public java.lang.String getMetastoreService() { } } /** + * + * *
      * Optional. Resource name of an existing Dataproc Metastore service.
      * Example:
      * * `projects/[project_id]/locations/[region]/services/[service_id]`
      * 
* - * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for metastoreService. */ - public com.google.protobuf.ByteString - getMetastoreServiceBytes() { + public com.google.protobuf.ByteString getMetastoreServiceBytes() { java.lang.Object ref = metastoreService_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); metastoreService_ = b; return b; } else { @@ -474,32 +526,43 @@ public java.lang.String getMetastoreService() { } } /** + * + * *
      * Optional. Resource name of an existing Dataproc Metastore service.
      * Example:
      * * `projects/[project_id]/locations/[region]/services/[service_id]`
      * 
* - * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The metastoreService to set. * @return This builder for chaining. */ - public Builder setMetastoreService( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMetastoreService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } metastoreService_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. Resource name of an existing Dataproc Metastore service.
      * Example:
      * * `projects/[project_id]/locations/[region]/services/[service_id]`
      * 
* - * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearMetastoreService() { @@ -509,28 +572,34 @@ public Builder clearMetastoreService() { return this; } /** + * + * *
      * Optional. Resource name of an existing Dataproc Metastore service.
      * Example:
      * * `projects/[project_id]/locations/[region]/services/[service_id]`
      * 
* - * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for metastoreService to set. * @return This builder for chaining. */ - public Builder setMetastoreServiceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMetastoreServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); metastoreService_ = value; bitField0_ |= 0x00000001; 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); } @@ -540,41 +609,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.MetastoreServiceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.MetastoreServiceConfig) - private static final com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig(); } - public static com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MetastoreServiceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetastoreServiceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,9 +657,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/MetastoreServiceConfigOrBuilder.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/MetastoreServiceConfigOrBuilder.java new file mode 100644 index 000000000000..aad3eabf3080 --- /dev/null +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/MetastoreServiceConfigOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 MetastoreServiceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.MetastoreServiceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Resource name of an existing Dataproc Metastore service.
+   * Example:
+   * * `projects/[project_id]/locations/[region]/services/[service_id]`
+   * 
+ * + * + * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The metastoreService. + */ + java.lang.String getMetastoreService(); + /** + * + * + *
+   * Optional. Resource name of an existing Dataproc Metastore service.
+   * Example:
+   * * `projects/[project_id]/locations/[region]/services/[service_id]`
+   * 
+ * + * + * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for metastoreService. + */ + com.google.protobuf.ByteString getMetastoreServiceBytes(); +} diff --git a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkHistoryServerConfig.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkHistoryServerConfig.java similarity index 62% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkHistoryServerConfig.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkHistoryServerConfig.java index 112c2c999ecc..3db5a8d96b72 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkHistoryServerConfig.java +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkHistoryServerConfig.java @@ -1,57 +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; /** + * + * *
  * Configuration of the Spark History Server.
  * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.SparkHistoryServerConfig} */ -public final class SparkHistoryServerConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SparkHistoryServerConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.SparkHistoryServerConfig) SparkHistoryServerConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SparkHistoryServerConfig.newBuilder() to construct. private SparkHistoryServerConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SparkHistoryServerConfig() { dataprocCluster_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SparkHistoryServerConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_SparkHistoryServerConfig_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_SparkHistoryServerConfig_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_SparkHistoryServerConfig_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_SparkHistoryServerConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.class, com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.Builder.class); + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.class, + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.Builder.class); } public static final int DATAPROC_CLUSTER_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object dataprocCluster_ = ""; /** + * + * *
    * Optional. Resource name of an existing Dataproc Cluster to act as a Spark
    * History Server for the connection.
@@ -59,7 +81,10 @@ protected java.lang.Object newInstance(
    * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
    * 
* - * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The dataprocCluster. */ @java.lang.Override @@ -68,14 +93,15 @@ public java.lang.String getDataprocCluster() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataprocCluster_ = s; return s; } } /** + * + * *
    * Optional. Resource name of an existing Dataproc Cluster to act as a Spark
    * History Server for the connection.
@@ -83,17 +109,18 @@ public java.lang.String getDataprocCluster() {
    * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
    * 
* - * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for dataprocCluster. */ @java.lang.Override - public com.google.protobuf.ByteString - getDataprocClusterBytes() { + public com.google.protobuf.ByteString getDataprocClusterBytes() { java.lang.Object ref = dataprocCluster_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataprocCluster_ = b; return b; } else { @@ -102,6 +129,7 @@ public java.lang.String getDataprocCluster() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -113,8 +141,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataprocCluster_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataprocCluster_); } @@ -138,15 +165,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.SparkHistoryServerConfig)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig other = (com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig) obj; + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig other = + (com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig) obj; - if (!getDataprocCluster() - .equals(other.getDataprocCluster())) return false; + if (!getDataprocCluster().equals(other.getDataprocCluster())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -166,129 +193,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig 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.SparkHistoryServerConfig 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.SparkHistoryServerConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig 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.SparkHistoryServerConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig 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.SparkHistoryServerConfig 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.SparkHistoryServerConfig 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.SparkHistoryServerConfig 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.SparkHistoryServerConfig 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.SparkHistoryServerConfig 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.SparkHistoryServerConfig 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.SparkHistoryServerConfig 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.SparkHistoryServerConfig 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.SparkHistoryServerConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig 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 of the Spark History Server.
    * 
* * Protobuf type {@code google.cloud.bigquery.connection.v1.SparkHistoryServerConfig} */ - 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.SparkHistoryServerConfig) com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_SparkHistoryServerConfig_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_SparkHistoryServerConfig_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_SparkHistoryServerConfig_fieldAccessorTable + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_SparkHistoryServerConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.class, com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.Builder.class); + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.class, + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.Builder.class); } // Construct using com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -298,13 +332,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_SparkHistoryServerConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass + .internal_static_google_cloud_bigquery_connection_v1_SparkHistoryServerConfig_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig + getDefaultInstanceForType() { return com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.getDefaultInstance(); } @@ -319,13 +354,17 @@ public com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig build() @java.lang.Override public com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig buildPartial() { - com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig result = new com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig result = + new com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig result) { + private void buildPartial0( + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.dataprocCluster_ = dataprocCluster_; @@ -336,46 +375,50 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.SparkHistoryS 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.SparkHistoryServerConfig) { - return mergeFrom((com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig)other); + return mergeFrom((com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig other) { - if (other == com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig other) { + if (other + == com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.getDefaultInstance()) + return this; if (!other.getDataprocCluster().isEmpty()) { dataprocCluster_ = other.dataprocCluster_; bitField0_ |= 0x00000001; @@ -407,17 +450,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - dataprocCluster_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + dataprocCluster_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -427,10 +472,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object dataprocCluster_ = ""; /** + * + * *
      * Optional. Resource name of an existing Dataproc Cluster to act as a Spark
      * History Server for the connection.
@@ -438,14 +486,16 @@ public Builder mergeFrom(
      * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
      * 
* - * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The dataprocCluster. */ public java.lang.String getDataprocCluster() { java.lang.Object ref = dataprocCluster_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataprocCluster_ = s; return s; @@ -454,6 +504,8 @@ public java.lang.String getDataprocCluster() { } } /** + * + * *
      * Optional. Resource name of an existing Dataproc Cluster to act as a Spark
      * History Server for the connection.
@@ -461,16 +513,17 @@ public java.lang.String getDataprocCluster() {
      * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
      * 
* - * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for dataprocCluster. */ - public com.google.protobuf.ByteString - getDataprocClusterBytes() { + public com.google.protobuf.ByteString getDataprocClusterBytes() { java.lang.Object ref = dataprocCluster_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataprocCluster_ = b; return b; } else { @@ -478,6 +531,8 @@ public java.lang.String getDataprocCluster() { } } /** + * + * *
      * Optional. Resource name of an existing Dataproc Cluster to act as a Spark
      * History Server for the connection.
@@ -485,19 +540,25 @@ public java.lang.String getDataprocCluster() {
      * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
      * 
* - * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The dataprocCluster to set. * @return This builder for chaining. */ - public Builder setDataprocCluster( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDataprocCluster(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } dataprocCluster_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. Resource name of an existing Dataproc Cluster to act as a Spark
      * History Server for the connection.
@@ -505,7 +566,10 @@ public Builder setDataprocCluster(
      * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
      * 
* - * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearDataprocCluster() { @@ -515,6 +579,8 @@ public Builder clearDataprocCluster() { return this; } /** + * + * *
      * Optional. Resource name of an existing Dataproc Cluster to act as a Spark
      * History Server for the connection.
@@ -522,22 +588,26 @@ public Builder clearDataprocCluster() {
      * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
      * 
* - * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for dataprocCluster to set. * @return This builder for chaining. */ - public Builder setDataprocClusterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDataprocClusterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); dataprocCluster_ = value; bitField0_ |= 0x00000001; 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); } @@ -547,41 +617,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.SparkHistoryServerConfig) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.SparkHistoryServerConfig) - private static final com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig(); } - public static com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig getDefaultInstance() { + public static com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkHistoryServerConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SparkHistoryServerConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -593,9 +665,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig getDefaultInstanceForType() { + public com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkHistoryServerConfigOrBuilder.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkHistoryServerConfigOrBuilder.java new file mode 100644 index 000000000000..0d34b611c09c --- /dev/null +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkHistoryServerConfigOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 SparkHistoryServerConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.SparkHistoryServerConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Resource name of an existing Dataproc Cluster to act as a Spark
+   * History Server for the connection.
+   * Example:
+   * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
+   * 
+ * + * + * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The dataprocCluster. + */ + java.lang.String getDataprocCluster(); + /** + * + * + *
+   * Optional. Resource name of an existing Dataproc Cluster to act as a Spark
+   * History Server for the connection.
+   * Example:
+   * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
+   * 
+ * + * + * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataprocCluster. + */ + com.google.protobuf.ByteString getDataprocClusterBytes(); +} diff --git a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkProperties.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkProperties.java similarity index 63% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkProperties.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkProperties.java index d215e99e7773..5bce3832ac60 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkProperties.java +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkProperties.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; /** + * + * *
  * Container for connection properties to execute stored procedures for Apache
  * Spark.
@@ -11,48 +28,53 @@
  *
  * Protobuf type {@code google.cloud.bigquery.connection.v1.SparkProperties}
  */
-public final class SparkProperties extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SparkProperties extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.connection.v1.SparkProperties)
     SparkPropertiesOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SparkProperties.newBuilder() to construct.
   private SparkProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SparkProperties() {
     serviceAccountId_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SparkProperties();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_SparkProperties_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_SparkProperties_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_SparkProperties_fieldAccessorTable
+    return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
+        .internal_static_google_cloud_bigquery_connection_v1_SparkProperties_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.connection.v1.SparkProperties.class, com.google.cloud.bigquery.connection.v1.SparkProperties.Builder.class);
+            com.google.cloud.bigquery.connection.v1.SparkProperties.class,
+            com.google.cloud.bigquery.connection.v1.SparkProperties.Builder.class);
   }
 
   public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object serviceAccountId_ = "";
   /**
+   *
+   *
    * 
    * Output only. The account ID of the service created for the purpose of this
    * connection.
@@ -66,6 +88,7 @@ protected java.lang.Object newInstance(
    * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAccountId. */ @java.lang.Override @@ -74,14 +97,15 @@ public java.lang.String getServiceAccountId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountId_ = s; return s; } } /** + * + * *
    * Output only. The account ID of the service created for the purpose of this
    * connection.
@@ -95,16 +119,15 @@ public java.lang.String getServiceAccountId() {
    * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAccountId. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountIdBytes() { + public com.google.protobuf.ByteString getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountId_ = b; return b; } else { @@ -115,11 +138,16 @@ public java.lang.String getServiceAccountId() { public static final int METASTORE_SERVICE_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastoreServiceConfig_; /** + * + * *
    * Optional. Dataproc Metastore Service configuration for the connection.
    * 
* - * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the metastoreServiceConfig field is set. */ @java.lang.Override @@ -127,37 +155,58 @@ public boolean hasMetastoreServiceConfig() { return metastoreServiceConfig_ != null; } /** + * + * *
    * Optional. Dataproc Metastore Service configuration for the connection.
    * 
* - * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The metastoreServiceConfig. */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig getMetastoreServiceConfig() { - return metastoreServiceConfig_ == null ? com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.getDefaultInstance() : metastoreServiceConfig_; + public com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig + getMetastoreServiceConfig() { + return metastoreServiceConfig_ == null + ? com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.getDefaultInstance() + : metastoreServiceConfig_; } /** + * + * *
    * Optional. Dataproc Metastore Service configuration for the connection.
    * 
* - * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1.MetastoreServiceConfigOrBuilder getMetastoreServiceConfigOrBuilder() { - return metastoreServiceConfig_ == null ? com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.getDefaultInstance() : metastoreServiceConfig_; + public com.google.cloud.bigquery.connection.v1.MetastoreServiceConfigOrBuilder + getMetastoreServiceConfigOrBuilder() { + return metastoreServiceConfig_ == null + ? com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.getDefaultInstance() + : metastoreServiceConfig_; } public static final int SPARK_HISTORY_SERVER_CONFIG_FIELD_NUMBER = 4; - private com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig sparkHistoryServerConfig_; + private com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig + sparkHistoryServerConfig_; /** + * + * *
    * Optional. Spark History Server configuration for the connection.
    * 
* - * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkHistoryServerConfig field is set. */ @java.lang.Override @@ -165,30 +214,46 @@ public boolean hasSparkHistoryServerConfig() { return sparkHistoryServerConfig_ != null; } /** + * + * *
    * Optional. Spark History Server configuration for the connection.
    * 
* - * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkHistoryServerConfig. */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig getSparkHistoryServerConfig() { - return sparkHistoryServerConfig_ == null ? com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.getDefaultInstance() : sparkHistoryServerConfig_; + public com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig + getSparkHistoryServerConfig() { + return sparkHistoryServerConfig_ == null + ? com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.getDefaultInstance() + : sparkHistoryServerConfig_; } /** + * + * *
    * Optional. Spark History Server configuration for the connection.
    * 
* - * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfigOrBuilder getSparkHistoryServerConfigOrBuilder() { - return sparkHistoryServerConfig_ == null ? com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.getDefaultInstance() : sparkHistoryServerConfig_; + public com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfigOrBuilder + getSparkHistoryServerConfigOrBuilder() { + return sparkHistoryServerConfig_ == null + ? com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.getDefaultInstance() + : sparkHistoryServerConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +265,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAccountId_); } @@ -224,12 +288,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAccountId_); } if (metastoreServiceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMetastoreServiceConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetastoreServiceConfig()); } if (sparkHistoryServerConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getSparkHistoryServerConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getSparkHistoryServerConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -239,24 +304,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.SparkProperties)) { return super.equals(obj); } - com.google.cloud.bigquery.connection.v1.SparkProperties other = (com.google.cloud.bigquery.connection.v1.SparkProperties) obj; + com.google.cloud.bigquery.connection.v1.SparkProperties other = + (com.google.cloud.bigquery.connection.v1.SparkProperties) obj; - if (!getServiceAccountId() - .equals(other.getServiceAccountId())) return false; + if (!getServiceAccountId().equals(other.getServiceAccountId())) return false; if (hasMetastoreServiceConfig() != other.hasMetastoreServiceConfig()) return false; if (hasMetastoreServiceConfig()) { - if (!getMetastoreServiceConfig() - .equals(other.getMetastoreServiceConfig())) return false; + if (!getMetastoreServiceConfig().equals(other.getMetastoreServiceConfig())) return false; } if (hasSparkHistoryServerConfig() != other.hasSparkHistoryServerConfig()) return false; if (hasSparkHistoryServerConfig()) { - if (!getSparkHistoryServerConfig() - .equals(other.getSparkHistoryServerConfig())) return false; + if (!getSparkHistoryServerConfig().equals(other.getSparkHistoryServerConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -285,96 +348,104 @@ public int hashCode() { } public static com.google.cloud.bigquery.connection.v1.SparkProperties 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.SparkProperties 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.SparkProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.SparkProperties 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.SparkProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.connection.v1.SparkProperties 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.SparkProperties 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.SparkProperties 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.SparkProperties 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.SparkProperties 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.SparkProperties 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.SparkProperties 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.SparkProperties 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.SparkProperties 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.SparkProperties prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.connection.v1.SparkProperties prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Container for connection properties to execute stored procedures for Apache
    * Spark.
@@ -382,33 +453,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.connection.v1.SparkProperties}
    */
-  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.SparkProperties)
       com.google.cloud.bigquery.connection.v1.SparkPropertiesOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.internal_static_google_cloud_bigquery_connection_v1_SparkProperties_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_SparkProperties_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_SparkProperties_fieldAccessorTable
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
+          .internal_static_google_cloud_bigquery_connection_v1_SparkProperties_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.connection.v1.SparkProperties.class, com.google.cloud.bigquery.connection.v1.SparkProperties.Builder.class);
+              com.google.cloud.bigquery.connection.v1.SparkProperties.class,
+              com.google.cloud.bigquery.connection.v1.SparkProperties.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.connection.v1.SparkProperties.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -428,9 +498,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_SparkProperties_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass
+          .internal_static_google_cloud_bigquery_connection_v1_SparkProperties_descriptor;
     }
 
     @java.lang.Override
@@ -449,8 +519,11 @@ public com.google.cloud.bigquery.connection.v1.SparkProperties build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.connection.v1.SparkProperties buildPartial() {
-      com.google.cloud.bigquery.connection.v1.SparkProperties result = new com.google.cloud.bigquery.connection.v1.SparkProperties(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.connection.v1.SparkProperties result =
+          new com.google.cloud.bigquery.connection.v1.SparkProperties(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -461,14 +534,16 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.SparkProperti
         result.serviceAccountId_ = serviceAccountId_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.metastoreServiceConfig_ = metastoreServiceConfigBuilder_ == null
-            ? metastoreServiceConfig_
-            : metastoreServiceConfigBuilder_.build();
+        result.metastoreServiceConfig_ =
+            metastoreServiceConfigBuilder_ == null
+                ? metastoreServiceConfig_
+                : metastoreServiceConfigBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.sparkHistoryServerConfig_ = sparkHistoryServerConfigBuilder_ == null
-            ? sparkHistoryServerConfig_
-            : sparkHistoryServerConfigBuilder_.build();
+        result.sparkHistoryServerConfig_ =
+            sparkHistoryServerConfigBuilder_ == null
+                ? sparkHistoryServerConfig_
+                : sparkHistoryServerConfigBuilder_.build();
       }
     }
 
@@ -476,38 +551,39 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.SparkProperti
     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.SparkProperties) {
-        return mergeFrom((com.google.cloud.bigquery.connection.v1.SparkProperties)other);
+        return mergeFrom((com.google.cloud.bigquery.connection.v1.SparkProperties) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -515,7 +591,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.connection.v1.SparkProperties other) {
-      if (other == com.google.cloud.bigquery.connection.v1.SparkProperties.getDefaultInstance()) return this;
+      if (other == com.google.cloud.bigquery.connection.v1.SparkProperties.getDefaultInstance())
+        return this;
       if (!other.getServiceAccountId().isEmpty()) {
         serviceAccountId_ = other.serviceAccountId_;
         bitField0_ |= 0x00000001;
@@ -553,31 +630,33 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              serviceAccountId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 26: {
-              input.readMessage(
-                  getMetastoreServiceConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getSparkHistoryServerConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 34
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                serviceAccountId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 26:
+              {
+                input.readMessage(
+                    getMetastoreServiceConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(
+                    getSparkHistoryServerConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -587,10 +666,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object serviceAccountId_ = "";
     /**
+     *
+     *
      * 
      * Output only. The account ID of the service created for the purpose of this
      * connection.
@@ -604,13 +686,13 @@ public Builder mergeFrom(
      * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAccountId. */ public java.lang.String getServiceAccountId() { java.lang.Object ref = serviceAccountId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountId_ = s; return s; @@ -619,6 +701,8 @@ public java.lang.String getServiceAccountId() { } } /** + * + * *
      * Output only. The account ID of the service created for the purpose of this
      * connection.
@@ -632,15 +716,14 @@ public java.lang.String getServiceAccountId() {
      * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAccountId. */ - public com.google.protobuf.ByteString - getServiceAccountIdBytes() { + public com.google.protobuf.ByteString getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountId_ = b; return b; } else { @@ -648,6 +731,8 @@ public java.lang.String getServiceAccountId() { } } /** + * + * *
      * Output only. The account ID of the service created for the purpose of this
      * connection.
@@ -661,18 +746,22 @@ public java.lang.String getServiceAccountId() {
      * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The serviceAccountId to set. * @return This builder for chaining. */ - public Builder setServiceAccountId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAccountId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } serviceAccountId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The account ID of the service created for the purpose of this
      * connection.
@@ -686,6 +775,7 @@ public Builder setServiceAccountId(
      * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearServiceAccountId() { @@ -695,6 +785,8 @@ public Builder clearServiceAccountId() { return this; } /** + * + * *
      * Output only. The account ID of the service created for the purpose of this
      * connection.
@@ -708,12 +800,14 @@ public Builder clearServiceAccountId() {
      * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for serviceAccountId to set. * @return This builder for chaining. */ - public Builder setServiceAccountIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAccountIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); serviceAccountId_ = value; bitField0_ |= 0x00000001; @@ -723,41 +817,62 @@ public Builder setServiceAccountIdBytes( private com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastoreServiceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig, com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.Builder, com.google.cloud.bigquery.connection.v1.MetastoreServiceConfigOrBuilder> metastoreServiceConfigBuilder_; + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig, + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.Builder, + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfigOrBuilder> + metastoreServiceConfigBuilder_; /** + * + * *
      * Optional. Dataproc Metastore Service configuration for the connection.
      * 
* - * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the metastoreServiceConfig field is set. */ public boolean hasMetastoreServiceConfig() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Optional. Dataproc Metastore Service configuration for the connection.
      * 
* - * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The metastoreServiceConfig. */ - public com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig getMetastoreServiceConfig() { + public com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig + getMetastoreServiceConfig() { if (metastoreServiceConfigBuilder_ == null) { - return metastoreServiceConfig_ == null ? com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.getDefaultInstance() : metastoreServiceConfig_; + return metastoreServiceConfig_ == null + ? com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.getDefaultInstance() + : metastoreServiceConfig_; } else { return metastoreServiceConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Dataproc Metastore Service configuration for the connection.
      * 
* - * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setMetastoreServiceConfig(com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig value) { + public Builder setMetastoreServiceConfig( + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig value) { if (metastoreServiceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -771,11 +886,15 @@ public Builder setMetastoreServiceConfig(com.google.cloud.bigquery.connection.v1 return this; } /** + * + * *
      * Optional. Dataproc Metastore Service configuration for the connection.
      * 
* - * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMetastoreServiceConfig( com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.Builder builderForValue) { @@ -789,17 +908,24 @@ public Builder setMetastoreServiceConfig( return this; } /** + * + * *
      * Optional. Dataproc Metastore Service configuration for the connection.
      * 
* - * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeMetastoreServiceConfig(com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig value) { + public Builder mergeMetastoreServiceConfig( + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig value) { if (metastoreServiceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - metastoreServiceConfig_ != null && - metastoreServiceConfig_ != com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && metastoreServiceConfig_ != null + && metastoreServiceConfig_ + != com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig + .getDefaultInstance()) { getMetastoreServiceConfigBuilder().mergeFrom(value); } else { metastoreServiceConfig_ = value; @@ -812,11 +938,15 @@ public Builder mergeMetastoreServiceConfig(com.google.cloud.bigquery.connection. return this; } /** + * + * *
      * Optional. Dataproc Metastore Service configuration for the connection.
      * 
* - * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMetastoreServiceConfig() { bitField0_ = (bitField0_ & ~0x00000002); @@ -829,90 +959,130 @@ public Builder clearMetastoreServiceConfig() { return this; } /** + * + * *
      * Optional. Dataproc Metastore Service configuration for the connection.
      * 
* - * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.Builder getMetastoreServiceConfigBuilder() { + public com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.Builder + getMetastoreServiceConfigBuilder() { bitField0_ |= 0x00000002; onChanged(); return getMetastoreServiceConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Dataproc Metastore Service configuration for the connection.
      * 
* - * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.bigquery.connection.v1.MetastoreServiceConfigOrBuilder getMetastoreServiceConfigOrBuilder() { + public com.google.cloud.bigquery.connection.v1.MetastoreServiceConfigOrBuilder + getMetastoreServiceConfigOrBuilder() { if (metastoreServiceConfigBuilder_ != null) { return metastoreServiceConfigBuilder_.getMessageOrBuilder(); } else { - return metastoreServiceConfig_ == null ? - com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.getDefaultInstance() : metastoreServiceConfig_; + return metastoreServiceConfig_ == null + ? com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.getDefaultInstance() + : metastoreServiceConfig_; } } /** + * + * *
      * Optional. Dataproc Metastore Service configuration for the connection.
      * 
* - * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig, com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.Builder, com.google.cloud.bigquery.connection.v1.MetastoreServiceConfigOrBuilder> + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig, + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.Builder, + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfigOrBuilder> getMetastoreServiceConfigFieldBuilder() { if (metastoreServiceConfigBuilder_ == null) { - metastoreServiceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig, com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.Builder, com.google.cloud.bigquery.connection.v1.MetastoreServiceConfigOrBuilder>( - getMetastoreServiceConfig(), - getParentForChildren(), - isClean()); + metastoreServiceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig, + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig.Builder, + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfigOrBuilder>( + getMetastoreServiceConfig(), getParentForChildren(), isClean()); metastoreServiceConfig_ = null; } return metastoreServiceConfigBuilder_; } - private com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig sparkHistoryServerConfig_; + private com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig + sparkHistoryServerConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig, com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.Builder, com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfigOrBuilder> sparkHistoryServerConfigBuilder_; + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig, + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.Builder, + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfigOrBuilder> + sparkHistoryServerConfigBuilder_; /** + * + * *
      * Optional. Spark History Server configuration for the connection.
      * 
* - * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkHistoryServerConfig field is set. */ public boolean hasSparkHistoryServerConfig() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Optional. Spark History Server configuration for the connection.
      * 
* - * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkHistoryServerConfig. */ - public com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig getSparkHistoryServerConfig() { + public com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig + getSparkHistoryServerConfig() { if (sparkHistoryServerConfigBuilder_ == null) { - return sparkHistoryServerConfig_ == null ? com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.getDefaultInstance() : sparkHistoryServerConfig_; + return sparkHistoryServerConfig_ == null + ? com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.getDefaultInstance() + : sparkHistoryServerConfig_; } else { return sparkHistoryServerConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Spark History Server configuration for the connection.
      * 
* - * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSparkHistoryServerConfig(com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig value) { + public Builder setSparkHistoryServerConfig( + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig value) { if (sparkHistoryServerConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -926,11 +1096,15 @@ public Builder setSparkHistoryServerConfig(com.google.cloud.bigquery.connection. return this; } /** + * + * *
      * Optional. Spark History Server configuration for the connection.
      * 
* - * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSparkHistoryServerConfig( com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.Builder builderForValue) { @@ -944,17 +1118,24 @@ public Builder setSparkHistoryServerConfig( return this; } /** + * + * *
      * Optional. Spark History Server configuration for the connection.
      * 
* - * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeSparkHistoryServerConfig(com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig value) { + public Builder mergeSparkHistoryServerConfig( + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig value) { if (sparkHistoryServerConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - sparkHistoryServerConfig_ != null && - sparkHistoryServerConfig_ != com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && sparkHistoryServerConfig_ != null + && sparkHistoryServerConfig_ + != com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig + .getDefaultInstance()) { getSparkHistoryServerConfigBuilder().mergeFrom(value); } else { sparkHistoryServerConfig_ = value; @@ -967,11 +1148,15 @@ public Builder mergeSparkHistoryServerConfig(com.google.cloud.bigquery.connectio return this; } /** + * + * *
      * Optional. Spark History Server configuration for the connection.
      * 
* - * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSparkHistoryServerConfig() { bitField0_ = (bitField0_ & ~0x00000004); @@ -984,55 +1169,73 @@ public Builder clearSparkHistoryServerConfig() { return this; } /** + * + * *
      * Optional. Spark History Server configuration for the connection.
      * 
* - * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.Builder getSparkHistoryServerConfigBuilder() { + public com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.Builder + getSparkHistoryServerConfigBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSparkHistoryServerConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Spark History Server configuration for the connection.
      * 
* - * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfigOrBuilder getSparkHistoryServerConfigOrBuilder() { + public com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfigOrBuilder + getSparkHistoryServerConfigOrBuilder() { if (sparkHistoryServerConfigBuilder_ != null) { return sparkHistoryServerConfigBuilder_.getMessageOrBuilder(); } else { - return sparkHistoryServerConfig_ == null ? - com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.getDefaultInstance() : sparkHistoryServerConfig_; + return sparkHistoryServerConfig_ == null + ? com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.getDefaultInstance() + : sparkHistoryServerConfig_; } } /** + * + * *
      * Optional. Spark History Server configuration for the connection.
      * 
* - * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig, com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.Builder, com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfigOrBuilder> + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig, + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.Builder, + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfigOrBuilder> getSparkHistoryServerConfigFieldBuilder() { if (sparkHistoryServerConfigBuilder_ == null) { - sparkHistoryServerConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig, com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.Builder, com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfigOrBuilder>( - getSparkHistoryServerConfig(), - getParentForChildren(), - isClean()); + sparkHistoryServerConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig, + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig.Builder, + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfigOrBuilder>( + getSparkHistoryServerConfig(), getParentForChildren(), isClean()); sparkHistoryServerConfig_ = null; } return sparkHistoryServerConfigBuilder_; } + @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); } @@ -1042,12 +1245,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.connection.v1.SparkProperties) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.connection.v1.SparkProperties) private static final com.google.cloud.bigquery.connection.v1.SparkProperties DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.connection.v1.SparkProperties(); } @@ -1056,27 +1259,27 @@ public static com.google.cloud.bigquery.connection.v1.SparkProperties getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SparkProperties parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1091,6 +1294,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.connection.v1.SparkProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkPropertiesOrBuilder.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkPropertiesOrBuilder.java similarity index 62% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkPropertiesOrBuilder.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkPropertiesOrBuilder.java index c1bc22565c04..66137dcb9ff0 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkPropertiesOrBuilder.java +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkPropertiesOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/connection/v1/connection.proto package com.google.cloud.bigquery.connection.v1; -public interface SparkPropertiesOrBuilder extends +public interface SparkPropertiesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.SparkProperties) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The account ID of the service created for the purpose of this
    * connection.
@@ -21,10 +39,13 @@ public interface SparkPropertiesOrBuilder extends
    * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAccountId. */ java.lang.String getServiceAccountId(); /** + * + * *
    * Output only. The account ID of the service created for the purpose of this
    * connection.
@@ -38,62 +59,92 @@ public interface SparkPropertiesOrBuilder extends
    * 
* * string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAccountId. */ - com.google.protobuf.ByteString - getServiceAccountIdBytes(); + com.google.protobuf.ByteString getServiceAccountIdBytes(); /** + * + * *
    * Optional. Dataproc Metastore Service configuration for the connection.
    * 
* - * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the metastoreServiceConfig field is set. */ boolean hasMetastoreServiceConfig(); /** + * + * *
    * Optional. Dataproc Metastore Service configuration for the connection.
    * 
* - * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The metastoreServiceConfig. */ com.google.cloud.bigquery.connection.v1.MetastoreServiceConfig getMetastoreServiceConfig(); /** + * + * *
    * Optional. Dataproc Metastore Service configuration for the connection.
    * 
* - * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.bigquery.connection.v1.MetastoreServiceConfigOrBuilder getMetastoreServiceConfigOrBuilder(); + com.google.cloud.bigquery.connection.v1.MetastoreServiceConfigOrBuilder + getMetastoreServiceConfigOrBuilder(); /** + * + * *
    * Optional. Spark History Server configuration for the connection.
    * 
* - * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sparkHistoryServerConfig field is set. */ boolean hasSparkHistoryServerConfig(); /** + * + * *
    * Optional. Spark History Server configuration for the connection.
    * 
* - * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sparkHistoryServerConfig. */ com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfig getSparkHistoryServerConfig(); /** + * + * *
    * Optional. Spark History Server configuration for the connection.
    * 
* - * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfigOrBuilder getSparkHistoryServerConfigOrBuilder(); + com.google.cloud.bigquery.connection.v1.SparkHistoryServerConfigOrBuilder + getSparkHistoryServerConfigOrBuilder(); } diff --git a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequest.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequest.java similarity index 62% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequest.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequest.java index 99291171c1f8..043e192ef15c 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequest.java +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequest.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; /** + * + * *
  * The request for
  * [ConnectionService.UpdateConnection][google.cloud.bigquery.connection.v1.ConnectionService.UpdateConnection].
@@ -11,54 +28,62 @@
  *
  * 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;
   }
-  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;
+
   @SuppressWarnings("serial")
   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 @@ -67,30 +92,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 { @@ -101,11 +128,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 @@ -113,37 +145,54 @@ 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() { - return connection_ == null ? com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() : connection_; + return connection_ == null + ? com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance() + : connection_; } 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 @@ -151,11 +200,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 @@ -163,11 +216,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() { @@ -175,6 +231,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,8 +243,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -210,12 +266,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -225,24 +279,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -271,96 +323,104 @@ 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].
@@ -368,33 +428,32 @@ protected Builder newBuilderForType(
    *
    * 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -414,13 +473,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();
     }
 
@@ -435,26 +495,26 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest result =
+          new com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest result) {
+    private void buildPartial0(
+        com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.connection_ = connectionBuilder_ == null
-            ? connection_
-            : connectionBuilder_.build();
+        result.connection_ = connectionBuilder_ == null ? connection_ : connectionBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null
-            ? updateMask_
-            : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
       }
     }
 
@@ -462,46 +522,50 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1.UpdateConnect
     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_;
         bitField0_ |= 0x00000001;
@@ -539,31 +603,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getConnectionFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getUpdateMaskFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getConnectionFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -573,23 +637,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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; @@ -598,21 +667,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 { @@ -620,30 +692,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -653,18 +736,24 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -674,39 +763,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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) { @@ -722,11 +830,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) { @@ -740,17 +852,22 @@ 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 (((bitField0_ & 0x00000002) != 0) && - connection_ != null && - connection_ != com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && connection_ != null + && connection_ + != com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance()) { getConnectionBuilder().mergeFrom(value); } else { connection_ = value; @@ -763,11 +880,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -780,11 +901,15 @@ 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() { bitField0_ |= 0x00000002; @@ -792,36 +917,48 @@ public com.google.cloud.bigquery.connection.v1.Connection.Builder getConnectionB 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_; @@ -829,39 +966,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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * 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) { @@ -877,14 +1030,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(); } else { @@ -895,17 +1050,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 (((bitField0_ & 0x00000004) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -918,11 +1076,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -935,11 +1096,14 @@ 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() { bitField0_ |= 0x00000004; @@ -947,43 +1111,53 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { 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); } @@ -993,41 +1167,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1039,9 +1215,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/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequestOrBuilder.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequestOrBuilder.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequestOrBuilder.java index 60267c6ca14b..3ef85f0d6215 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/UpdateConnectionRequestOrBuilder.java +++ b/java-bigqueryconnection/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/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/src/main/proto/google/cloud/bigquery/connection/v1/connection.proto diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionName.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionName.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionName.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionName.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java similarity index 58% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java index 894609498f0c..779ae5e86b14 100644 --- a/owl-bot-staging/java-bigqueryconnection/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionProto.java +++ b/java-bigqueryconnection/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,89 +20,119 @@ 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].
@@ -95,15 +140,16 @@ public interface CreateConnectionRequestOrBuilder extends
    *
    * 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_ = "";
@@ -111,39 +157,48 @@ 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;
     }
-    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;
+
     @SuppressWarnings("serial")
     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 @@ -152,30 +207,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 { @@ -184,14 +241,18 @@ public java.lang.String getParent() { } public static final int CONNECTION_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -200,29 +261,29 @@ public java.lang.String getConnectionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connectionId_ = s; return s; } } /** + * + * *
      * Optional. Connection id that should be assigned to the created connection.
      * 
* * string connection_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for connectionId. */ @java.lang.Override - public com.google.protobuf.ByteString - getConnectionIdBytes() { + public com.google.protobuf.ByteString getConnectionIdBytes() { java.lang.Object ref = connectionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); connectionId_ = b; return b; } else { @@ -233,11 +294,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 @@ -245,30 +311,47 @@ 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() { - return connection_ == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance() : connection_; + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder + getConnectionOrBuilder() { + return connection_ == null + ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection + .getDefaultInstance() + : connection_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -280,8 +363,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -307,8 +389,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -318,21 +399,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -358,88 +440,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 @@ -449,6 +557,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The request for
      * [ConnectionService.CreateConnection][google.cloud.bigquery.connection.v1beta1.ConnectionService.CreateConnection].
@@ -456,33 +566,37 @@ protected Builder newBuilderForType(
      *
      * 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()
-      private Builder() {
-
-      }
+      // Construct using
+      // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest.newBuilder()
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -498,19 +612,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);
         }
@@ -518,14 +636,22 @@ 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);
-        if (bitField0_ != 0) { buildPartial0(result); }
+      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);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest result) {
+      private void buildPartial0(
+          com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest
+              result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.parent_ = parent_;
@@ -534,9 +660,8 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.Connecti
           result.connectionId_ = connectionId_;
         }
         if (((from_bitField0_ & 0x00000004) != 0)) {
-          result.connection_ = connectionBuilder_ == null
-              ? connection_
-              : connectionBuilder_.build();
+          result.connection_ =
+              connectionBuilder_ == null ? connection_ : connectionBuilder_.build();
         }
       }
 
@@ -544,46 +669,57 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.Connecti
       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_;
           bitField0_ |= 0x00000001;
@@ -623,29 +759,31 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 18: {
-                connectionId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-              case 26: {
-                input.readMessage(
-                    getConnectionFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  parent_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 18:
+                {
+                  connectionId_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 18
+              case 26:
+                {
+                  input.readMessage(getConnectionFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000004;
+                  break;
+                } // case 26
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -655,23 +793,28 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       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; @@ -680,21 +823,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 { @@ -702,30 +848,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -735,18 +892,24 @@ public Builder clearParent() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -756,18 +919,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; @@ -776,20 +941,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 { @@ -797,28 +963,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setConnectionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } connectionId_ = value; bitField0_ |= 0x00000002; 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() { @@ -828,17 +1001,21 @@ public Builder clearConnectionId() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setConnectionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); connectionId_ = value; bitField0_ |= 0x00000002; @@ -848,41 +1025,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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
        * 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(); @@ -896,14 +1095,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(); } else { @@ -914,17 +1118,24 @@ 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 (((bitField0_ & 0x00000004) != 0) && - connection_ != null && - connection_ != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && connection_ != null + && connection_ + != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection + .getDefaultInstance()) { getConnectionBuilder().mergeFrom(value); } else { connection_ = value; @@ -937,11 +1148,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -954,52 +1169,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() { bitField0_ |= 0x00000004; 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) { @@ -1012,41 +1247,48 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1058,39 +1300,51 @@ 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].
@@ -1098,54 +1352,64 @@ public interface GetConnectionRequestOrBuilder extends
    *
    * 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;
     }
-    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;
+
     @SuppressWarnings("serial")
     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 @@ -1154,30 +1418,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 { @@ -1186,6 +1452,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1197,8 +1464,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1222,15 +1488,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1249,88 +1517,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 @@ -1340,6 +1622,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The request for
      * [ConnectionService.GetConnection][google.cloud.bigquery.connection.v1beta1.ConnectionService.GetConnection].
@@ -1347,33 +1631,36 @@ protected Builder newBuilderForType(
      *
      * 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()
-      private Builder() {
+      // Construct using
+      // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.newBuilder()
+      private Builder() {}
 
-      }
-
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1383,19 +1670,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);
         }
@@ -1403,14 +1694,21 @@ 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);
-        if (bitField0_ != 0) { buildPartial0(result); }
+      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);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest result) {
+      private void buildPartial0(
+          com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest
+              result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.name_ = name_;
@@ -1421,46 +1719,56 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.Connecti
       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_;
           bitField0_ |= 0x00000001;
@@ -1492,17 +1800,19 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  name_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1512,23 +1822,28 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       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; @@ -1537,21 +1852,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 { @@ -1559,30 +1877,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -1592,24 +1921,31 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1622,41 +1958,46 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1668,86 +2009,114 @@ 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].
@@ -1755,15 +2124,16 @@ public interface ListConnectionsRequestOrBuilder extends
    *
    * 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_ = "";
@@ -1771,39 +2141,48 @@ 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;
     }
-    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;
+
     @SuppressWarnings("serial")
     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 @@ -1812,30 +2191,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 { @@ -1846,11 +2227,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 @@ -1858,38 +2243,53 @@ 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() { - return maxResults_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : maxResults_; + return maxResults_ == null + ? com.google.protobuf.UInt32Value.getDefaultInstance() + : maxResults_; } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token.
      * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -1898,29 +2298,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 { @@ -1929,6 +2329,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1940,8 +2341,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -1964,8 +2364,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (maxResults_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMaxResults()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxResults()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -1978,22 +2377,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2018,88 +2417,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 @@ -2109,6 +2534,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The request for
      * [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1beta1.ConnectionService.ListConnections].
@@ -2116,33 +2543,37 @@ protected Builder newBuilderForType(
      *
      * 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()
-      private Builder() {
-
-      }
+      // Construct using
+      // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.newBuilder()
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -2158,19 +2589,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);
         }
@@ -2178,22 +2613,28 @@ 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);
-        if (bitField0_ != 0) { buildPartial0(result); }
+      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);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest result) {
+      private void buildPartial0(
+          com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest
+              result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.parent_ = parent_;
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
-          result.maxResults_ = maxResultsBuilder_ == null
-              ? maxResults_
-              : maxResultsBuilder_.build();
+          result.maxResults_ =
+              maxResultsBuilder_ == null ? maxResults_ : maxResultsBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000004) != 0)) {
           result.pageToken_ = pageToken_;
@@ -2204,46 +2645,57 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.Connecti
       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_;
           bitField0_ |= 0x00000001;
@@ -2283,29 +2735,31 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 18: {
-                input.readMessage(
-                    getMaxResultsFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-              case 26: {
-                pageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  parent_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 18:
+                {
+                  input.readMessage(getMaxResultsFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 18
+              case 26:
+                {
+                  pageToken_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000004;
+                  break;
+                } // case 26
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2315,23 +2769,28 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       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; @@ -2340,21 +2799,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 { @@ -2362,30 +2824,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -2395,18 +2868,24 @@ public Builder clearParent() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -2416,39 +2895,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * 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) { @@ -2464,14 +2962,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(); } else { @@ -2482,17 +2983,21 @@ 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 (((bitField0_ & 0x00000002) != 0) && - maxResults_ != null && - maxResults_ != com.google.protobuf.UInt32Value.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && maxResults_ != null + && maxResults_ != com.google.protobuf.UInt32Value.getDefaultInstance()) { getMaxResultsBuilder().mergeFrom(value); } else { maxResults_ = value; @@ -2505,11 +3010,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -2522,11 +3031,15 @@ 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() { bitField0_ |= 0x00000002; @@ -2534,36 +3047,48 @@ public com.google.protobuf.UInt32Value.Builder getMaxResultsBuilder() { 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_; @@ -2571,18 +3096,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; @@ -2591,20 +3118,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 { @@ -2612,28 +3140,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * Page token.
        * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -2643,23 +3178,28 @@ public Builder clearPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2672,41 +3212,47 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2718,54 +3264,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.
      * 
@@ -2774,25 +3333,33 @@ 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].
@@ -2800,15 +3367,16 @@ com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder
    *
    * 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();
@@ -2816,38 +3384,45 @@ 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;
     }
-    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;
+
     @SuppressWarnings("serial")
     private volatile java.lang.Object nextPageToken_ = "";
     /**
+     *
+     *
      * 
      * Next page token.
      * 
* * string next_page_token = 1; + * * @return The nextPageToken. */ @java.lang.Override @@ -2856,29 +3431,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 { @@ -2887,9 +3462,13 @@ public java.lang.String getNextPageToken() { } public static final int CONNECTIONS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") - private java.util.List connections_; + private java.util.List + connections_; /** + * + * *
      * List of connections.
      * 
@@ -2897,10 +3476,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.
      * 
@@ -2908,11 +3490,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.
      * 
@@ -2924,6 +3510,8 @@ public int getConnectionsCount() { return connections_.size(); } /** + * + * *
      * List of connections.
      * 
@@ -2931,10 +3519,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.
      * 
@@ -2942,12 +3533,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; @@ -2959,8 +3551,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nextPageToken_); } @@ -2980,8 +3571,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2991,17 +3581,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3024,88 +3616,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 @@ -3115,6 +3733,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The response for
      * [ConnectionService.ListConnections][google.cloud.bigquery.connection.v1beta1.ConnectionService.ListConnections].
@@ -3122,33 +3742,37 @@ protected Builder newBuilderForType(
      *
      * 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()
-      private Builder() {
-
-      }
+      // Construct using
+      // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse.newBuilder()
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -3165,19 +3789,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);
         }
@@ -3185,15 +3813,23 @@ 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);
         buildPartialRepeatedFields(result);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
 
-      private void buildPartialRepeatedFields(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse result) {
+      private void buildPartialRepeatedFields(
+          com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse
+              result) {
         if (connectionsBuilder_ == null) {
           if (((bitField0_ & 0x00000002) != 0)) {
             connections_ = java.util.Collections.unmodifiableList(connections_);
@@ -3205,7 +3841,9 @@ private void buildPartialRepeatedFields(com.google.cloud.bigquery.connection.v1b
         }
       }
 
-      private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse result) {
+      private void buildPartial0(
+          com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse
+              result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.nextPageToken_ = nextPageToken_;
@@ -3216,46 +3854,57 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.Connecti
       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_;
           bitField0_ |= 0x00000001;
@@ -3279,9 +3928,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.connection.v1beta1.Connection
               connectionsBuilder_ = null;
               connections_ = other.connections_;
               bitField0_ = (bitField0_ & ~0x00000002);
-              connectionsBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getConnectionsFieldBuilder() : null;
+              connectionsBuilder_ =
+                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                      ? getConnectionsFieldBuilder()
+                      : null;
             } else {
               connectionsBuilder_.addAllMessages(other.connections_);
             }
@@ -3313,30 +3963,34 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                nextPageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 18: {
-                com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection m =
-                    input.readMessage(
-                        com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.parser(),
-                        extensionRegistry);
-                if (connectionsBuilder_ == null) {
-                  ensureConnectionsIsMutable();
-                  connections_.add(m);
-                } else {
-                  connectionsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  nextPageToken_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 18:
+                {
+                  com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection m =
+                      input.readMessage(
+                          com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection
+                              .parser(),
+                          extensionRegistry);
+                  if (connectionsBuilder_ == null) {
+                    ensureConnectionsIsMutable();
+                    connections_.add(m);
+                  } else {
+                    connectionsBuilder_.addMessage(m);
+                  }
+                  break;
+                } // case 18
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -3346,22 +4000,25 @@ public Builder mergeFrom(
         } // finally
         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; @@ -3370,20 +4027,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 { @@ -3391,28 +4049,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Next page token.
        * 
* * string next_page_token = 1; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -3422,17 +4087,21 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000001; @@ -3440,26 +4109,37 @@ public Builder setNextPageTokenBytes( 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_ & 0x00000002) != 0)) { - connections_ = new java.util.ArrayList(connections_); + connections_ = + new java.util.ArrayList< + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection>( + connections_); bitField0_ |= 0x00000002; - } + } } 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 { @@ -3467,6 +4147,8 @@ public java.util.List * List of connections. *
@@ -3481,13 +4163,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 { @@ -3495,6 +4180,8 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection g } } /** + * + * *
        * List of connections.
        * 
@@ -3502,7 +4189,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(); @@ -3516,6 +4204,8 @@ public Builder setConnections( return this; } /** + * + * *
        * List of connections.
        * 
@@ -3523,7 +4213,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()); @@ -3534,13 +4226,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(); @@ -3554,6 +4249,8 @@ public Builder addConnections(com.google.cloud.bigquery.connection.v1beta1.Conne return this; } /** + * + * *
        * List of connections.
        * 
@@ -3561,7 +4258,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(); @@ -3575,6 +4273,8 @@ public Builder addConnections( return this; } /** + * + * *
        * List of connections.
        * 
@@ -3582,7 +4282,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()); @@ -3593,6 +4294,8 @@ public Builder addConnections( return this; } /** + * + * *
        * List of connections.
        * 
@@ -3600,7 +4303,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()); @@ -3611,6 +4316,8 @@ public Builder addConnections( return this; } /** + * + * *
        * List of connections.
        * 
@@ -3618,11 +4325,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); @@ -3630,6 +4338,8 @@ public Builder addAllConnections( return this; } /** + * + * *
        * List of connections.
        * 
@@ -3647,6 +4357,8 @@ public Builder clearConnections() { return this; } /** + * + * *
        * List of connections.
        * 
@@ -3664,39 +4376,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 { @@ -3704,45 +4425,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_ & 0x00000002) != 0), getParentForChildren(), @@ -3751,6 +4491,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) { @@ -3763,42 +4504,49 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + public static com.google.protobuf.Parser parser() { return PARSER; } @@ -3809,93 +4557,131 @@ 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].
@@ -3903,54 +4689,64 @@ public interface UpdateConnectionRequestOrBuilder extends
    *
    * 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;
     }
-    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;
+
     @SuppressWarnings("serial")
     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 @@ -3959,30 +4755,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 { @@ -3993,11 +4791,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 @@ -4005,37 +4808,57 @@ 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() { - return connection_ == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance() : connection_; + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionOrBuilder + getConnectionOrBuilder() { + return connection_ == null + ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection + .getDefaultInstance() + : connection_; } 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 @@ -4043,11 +4866,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 @@ -4055,11 +4882,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() { @@ -4067,6 +4897,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4078,8 +4909,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -4102,12 +4932,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -4117,24 +4945,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -4162,88 +4991,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 @@ -4253,6 +5108,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The request for
      * [ConnectionService.UpdateConnection][google.cloud.bigquery.connection.v1beta1.ConnectionService.UpdateConnection].
@@ -4260,33 +5117,37 @@ protected Builder newBuilderForType(
      *
      * 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()
-      private Builder() {
-
-      }
+      // Construct using
+      // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest.newBuilder()
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -4306,19 +5167,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);
         }
@@ -4326,27 +5191,33 @@ 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);
-        if (bitField0_ != 0) { buildPartial0(result); }
+      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);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest result) {
+      private void buildPartial0(
+          com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest
+              result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.name_ = name_;
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
-          result.connection_ = connectionBuilder_ == null
-              ? connection_
-              : connectionBuilder_.build();
+          result.connection_ =
+              connectionBuilder_ == null ? connection_ : connectionBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000004) != 0)) {
-          result.updateMask_ = updateMaskBuilder_ == null
-              ? updateMask_
-              : updateMaskBuilder_.build();
+          result.updateMask_ =
+              updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
         }
       }
 
@@ -4354,46 +5225,57 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.Connecti
       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_;
           bitField0_ |= 0x00000001;
@@ -4431,31 +5313,31 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 18: {
-                input.readMessage(
-                    getConnectionFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-              case 26: {
-                input.readMessage(
-                    getUpdateMaskFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  name_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 18:
+                {
+                  input.readMessage(getConnectionFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 18
+              case 26:
+                {
+                  input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000004;
+                  break;
+                } // case 26
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -4465,23 +5347,28 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       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; @@ -4490,21 +5377,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 { @@ -4512,30 +5402,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -4545,18 +5446,24 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -4566,41 +5473,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * 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(); @@ -4614,14 +5543,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(); } else { @@ -4632,17 +5566,24 @@ 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 (((bitField0_ & 0x00000002) != 0) && - connection_ != null && - connection_ != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && connection_ != null + && connection_ + != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection + .getDefaultInstance()) { getConnectionBuilder().mergeFrom(value); } else { connection_ = value; @@ -4655,11 +5596,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -4672,48 +5617,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() { bitField0_ |= 0x00000002; 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_; @@ -4721,39 +5685,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 ((bitField0_ & 0x00000004) != 0); } /** + * + * *
        * 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) { @@ -4769,14 +5749,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(); } else { @@ -4787,17 +5769,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 (((bitField0_ & 0x00000004) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -4810,11 +5795,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() { bitField0_ = (bitField0_ & ~0x00000004); @@ -4827,11 +5815,14 @@ 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() { bitField0_ |= 0x00000004; @@ -4839,40 +5830,51 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { 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) { @@ -4885,41 +5887,48 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4931,121 +5940,156 @@ 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; } - 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; + @SuppressWarnings("serial") 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 @@ -5054,30 +6098,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 { @@ -5086,13 +6130,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 @@ -5100,30 +6150,49 @@ 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() { - return credential_ == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.getDefaultInstance() : credential_; + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ConnectionCredentialOrBuilder + getCredentialOrBuilder() { + return credential_ == null + ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + .getDefaultInstance() + : credential_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5135,8 +6204,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -5156,8 +6224,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -5167,19 +6234,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -5203,88 +6275,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 @@ -5294,40 +6393,47 @@ 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() - private Builder() { + // Construct using + // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -5342,19 +6448,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); } @@ -5362,22 +6475,32 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + 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); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .UpdateConnectionCredentialRequest + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.credential_ = credentialBuilder_ == null - ? credential_ - : credentialBuilder_.build(); + result.credential_ = + credentialBuilder_ == null ? credential_ : credentialBuilder_.build(); } } @@ -5385,46 +6508,60 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.Connecti 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_; bitField0_ |= 0x00000001; @@ -5459,24 +6596,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getCredentialFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCredentialFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -5486,23 +6624,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -5511,21 +6652,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 { @@ -5533,30 +6675,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -5566,18 +6715,22 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -5585,43 +6738,68 @@ public Builder setNameBytes( 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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * 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(); @@ -5635,14 +6813,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(); } else { @@ -5653,17 +6836,24 @@ 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 (((bitField0_ & 0x00000002) != 0) && - credential_ != null && - credential_ != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && credential_ != null + && credential_ + != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto + .ConnectionCredential.getDefaultInstance()) { getCredentialBuilder().mergeFrom(value); } else { credential_ = value; @@ -5676,11 +6866,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -5693,52 +6887,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() { bitField0_ |= 0x00000002; 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) { @@ -5751,41 +6971,48 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5797,93 +7024,116 @@ 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; } - 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; + @SuppressWarnings("serial") 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 @@ -5892,30 +7142,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 { @@ -5924,6 +7176,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5935,8 +7188,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -5960,15 +7212,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5987,88 +7242,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 @@ -6078,39 +7359,45 @@ 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() - private Builder() { + // Construct using + // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -6120,19 +7407,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); } @@ -6140,14 +7431,22 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + 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); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -6158,46 +7457,57 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.Connecti 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_; bitField0_ |= 0x00000001; @@ -6229,17 +7539,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -6249,23 +7561,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -6274,21 +7591,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 { @@ -6296,30 +7616,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -6329,24 +7660,31 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6359,41 +7697,48 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6405,138 +7750,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.
@@ -6544,15 +7926,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_ = "";
@@ -6561,37 +7944,42 @@ 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;
     }
-    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;
       }
@@ -6607,32 +7995,38 @@ 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;
+
     @SuppressWarnings("serial")
     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 @@ -6641,30 +8035,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 { @@ -6673,14 +8067,18 @@ public java.lang.String getName() { } public static final int FRIENDLY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object friendlyName_ = ""; /** + * + * *
      * User provided display name for the connection.
      * 
* * string friendly_name = 2; + * * @return The friendlyName. */ @java.lang.Override @@ -6689,29 +8087,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 { @@ -6720,14 +8118,18 @@ public java.lang.String getFriendlyName() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
      * User provided description.
      * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -6736,29 +8138,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 { @@ -6768,11 +8170,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 @@ -6780,21 +8185,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.
      * 
@@ -6802,21 +8215,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_ = 0L; /** + * + * *
      * Output only. The creation timestamp of the connection.
      * 
* * int64 creation_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The creationTime. */ @java.lang.Override @@ -6827,11 +8246,14 @@ public long getCreationTime() { public static final int LAST_MODIFIED_TIME_FIELD_NUMBER = 6; private long lastModifiedTime_ = 0L; /** + * + * *
      * 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 @@ -6842,11 +8264,14 @@ public long getLastModifiedTime() { public static final int HAS_CREDENTIAL_FIELD_NUMBER = 7; private boolean hasCredential_ = false; /** + * + * *
      * 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 @@ -6855,6 +8280,7 @@ public boolean getHasCredential() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6866,8 +8292,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -6878,7 +8303,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_); @@ -6908,20 +8336,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -6931,30 +8359,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: @@ -6977,14 +8400,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; @@ -6999,87 +8419,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 @@ -7089,6 +8517,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Configuration parameters to establish connection with an external data
      * source, except the credential attributes.
@@ -7096,33 +8526,35 @@ 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()
-      private Builder() {
-
-      }
+      // Construct using
+      // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.newBuilder()
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -7142,19 +8574,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);
         }
@@ -7162,15 +8597,20 @@ 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);
-        if (bitField0_ != 0) { buildPartial0(result); }
+      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);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         buildPartialOneofs(result);
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection result) {
+      private void buildPartial0(
+          com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.name_ = name_;
@@ -7192,11 +8632,11 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.Connecti
         }
       }
 
-      private void buildPartialOneofs(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection result) {
+      private void buildPartialOneofs(
+          com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection result) {
         result.propertiesCase_ = propertiesCase_;
         result.properties_ = this.properties_;
-        if (propertiesCase_ == 4 &&
-            cloudSqlBuilder_ != null) {
+        if (propertiesCase_ == 4 && cloudSqlBuilder_ != null) {
           result.properties_ = cloudSqlBuilder_.build();
         }
       }
@@ -7205,46 +8645,54 @@ private void buildPartialOneofs(com.google.cloud.bigquery.connection.v1beta1.Con
       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_;
           bitField0_ |= 0x00000001;
@@ -7270,13 +8718,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.getUnknownFields());
         onChanged();
@@ -7304,49 +8754,55 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 18: {
-                friendlyName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-              case 26: {
-                description_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-              case 34: {
-                input.readMessage(
-                    getCloudSqlFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                propertiesCase_ = 4;
-                break;
-              } // case 34
-              case 40: {
-                creationTime_ = input.readInt64();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 40
-              case 48: {
-                lastModifiedTime_ = input.readInt64();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 48
-              case 56: {
-                hasCredential_ = input.readBool();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 56
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  name_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 18:
+                {
+                  friendlyName_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 18
+              case 26:
+                {
+                  description_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000004;
+                  break;
+                } // case 26
+              case 34:
+                {
+                  input.readMessage(getCloudSqlFieldBuilder().getBuilder(), extensionRegistry);
+                  propertiesCase_ = 4;
+                  break;
+                } // case 34
+              case 40:
+                {
+                  creationTime_ = input.readInt64();
+                  bitField0_ |= 0x00000010;
+                  break;
+                } // case 40
+              case 48:
+                {
+                  lastModifiedTime_ = input.readInt64();
+                  bitField0_ |= 0x00000020;
+                  break;
+                } // case 48
+              case 56:
+                {
+                  hasCredential_ = input.readBool();
+                  bitField0_ |= 0x00000040;
+                  break;
+                } // case 56
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -7356,12 +8812,12 @@ public Builder mergeFrom(
         } // finally
         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() {
@@ -7375,19 +8831,21 @@ public Builder clearProperties() {
 
       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; @@ -7396,21 +8854,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 { @@ -7418,30 +8877,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -7451,18 +8917,22 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -7472,18 +8942,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; @@ -7492,20 +8964,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 { @@ -7513,28 +8986,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFriendlyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } friendlyName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * User provided display name for the connection.
        * 
* * string friendly_name = 2; + * * @return This builder for chaining. */ public Builder clearFriendlyName() { @@ -7544,17 +9024,21 @@ public Builder clearFriendlyName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFriendlyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); friendlyName_ = value; bitField0_ |= 0x00000002; @@ -7564,18 +9048,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; @@ -7584,20 +9070,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 { @@ -7605,28 +9092,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * User provided description.
        * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -7636,17 +9130,21 @@ public Builder clearDescription() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000004; @@ -7655,13 +9153,21 @@ public Builder setDescriptionBytes( } 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 @@ -7669,35 +9175,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(); @@ -7711,6 +9227,8 @@ public Builder setCloudSql(com.google.cloud.bigquery.connection.v1beta1.Connecti return this; } /** + * + * *
        * Cloud SQL properties.
        * 
@@ -7718,7 +9236,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(); @@ -7729,18 +9248,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; } @@ -7756,6 +9286,8 @@ public Builder mergeCloudSql(com.google.cloud.bigquery.connection.v1beta1.Connec return this; } /** + * + * *
        * Cloud SQL properties.
        * 
@@ -7779,16 +9311,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.
        * 
@@ -7796,17 +9333,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.
        * 
@@ -7814,15 +9357,27 @@ 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; @@ -7832,13 +9387,16 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProp 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 @@ -7846,27 +9404,33 @@ 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; bitField0_ |= 0x00000010; 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() { @@ -7876,13 +9440,16 @@ public Builder clearCreationTime() { 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 @@ -7890,27 +9457,33 @@ 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; bitField0_ |= 0x00000020; 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() { @@ -7920,13 +9493,16 @@ public Builder clearLastModifiedTime() { 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 @@ -7934,27 +9510,33 @@ 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; bitField0_ |= 0x00000040; 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() { @@ -7963,6 +9545,7 @@ public Builder clearHasCredential() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7975,41 +9558,45 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8021,97 +9608,117 @@ 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; } - 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; } @@ -8127,29 +9734,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 @@ -8157,21 +9769,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.
      * 
@@ -8179,14 +9799,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; @@ -8198,10 +9822,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_); } getUnknownFields().writeTo(output); } @@ -8213,8 +9839,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -8224,18 +9853,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: @@ -8264,88 +9895,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 { - 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) + 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 { 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 @@ -8355,39 +10000,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() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -8401,19 +10051,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); } @@ -8421,23 +10075,31 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + 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 (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential result) { + private void buildPartial0( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential result) { + private void buildPartialOneofs( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ConnectionCredential + result) { result.credentialCase_ = credentialCase_; result.credential_ = this.credential_; - if (credentialCase_ == 1 && - cloudSqlBuilder_ != null) { + if (credentialCase_ == 1 && cloudSqlBuilder_ != null) { result.credential_ = cloudSqlBuilder_.build(); } } @@ -8446,54 +10108,66 @@ private void buildPartialOneofs(com.google.cloud.bigquery.connection.v1beta1.Con 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.getUnknownFields()); onChanged(); @@ -8521,19 +10195,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCloudSqlFieldBuilder().getBuilder(), - extensionRegistry); - credentialCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCloudSqlFieldBuilder().getBuilder(), extensionRegistry); + credentialCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -8543,12 +10217,12 @@ public Builder mergeFrom( } // finally 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() { @@ -8561,13 +10235,21 @@ public Builder clearCredential() { private int bitField0_; 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 @@ -8575,35 +10257,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(); @@ -8617,6 +10309,8 @@ public Builder setCloudSql(com.google.cloud.bigquery.connection.v1beta1.Connecti return this; } /** + * + * *
        * Credential for Cloud SQL database.
        * 
@@ -8624,7 +10318,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(); @@ -8635,18 +10330,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; } @@ -8662,6 +10368,8 @@ public Builder mergeCloudSql(com.google.cloud.bigquery.connection.v1beta1.Connec return this; } /** + * + * *
        * Credential for Cloud SQL database.
        * 
@@ -8685,16 +10393,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.
        * 
@@ -8702,17 +10415,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.
        * 
@@ -8720,15 +10439,27 @@ 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; @@ -8737,6 +10468,7 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCred onChanged(); return cloudSqlBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8749,41 +10481,46 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8795,103 +10532,140 @@ 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(); /** + * + * *
      * Output only. The account ID of the service used for the purpose of this
      * connection.
@@ -8901,10 +10675,13 @@ public interface CloudSqlPropertiesOrBuilder extends
      * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAccountId. */ java.lang.String getServiceAccountId(); /** + * + * *
      * Output only. The account ID of the service used for the purpose of this
      * connection.
@@ -8914,27 +10691,30 @@ public interface CloudSqlPropertiesOrBuilder extends
      * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAccountId. */ - com.google.protobuf.ByteString - getServiceAccountIdBytes(); + com.google.protobuf.ByteString getServiceAccountIdBytes(); } /** + * + * *
    * 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_ = ""; @@ -8944,39 +10724,45 @@ 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; } - 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.
        * 
@@ -8985,6 +10771,8 @@ public enum DatabaseType */ DATABASE_TYPE_UNSPECIFIED(0), /** + * + * *
        * Cloud SQL for PostgreSQL.
        * 
@@ -8993,6 +10781,8 @@ public enum DatabaseType */ POSTGRES(1), /** + * + * *
        * Cloud SQL for MySQL.
        * 
@@ -9004,6 +10794,8 @@ public enum DatabaseType ; /** + * + * *
        * Unspecified database type.
        * 
@@ -9012,6 +10804,8 @@ public enum DatabaseType */ public static final int DATABASE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * Cloud SQL for PostgreSQL.
        * 
@@ -9020,6 +10814,8 @@ public enum DatabaseType */ public static final int POSTGRES_VALUE = 1; /** + * + * *
        * Cloud SQL for MySQL.
        * 
@@ -9028,7 +10824,6 @@ public enum DatabaseType */ public static final int MYSQL_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -9053,49 +10848,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; @@ -9113,14 +10911,18 @@ private DatabaseType(int value) { } public static final int INSTANCE_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") 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 @@ -9129,29 +10931,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 { @@ -9160,14 +10962,18 @@ public java.lang.String getInstanceId() { } public static final int DATABASE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object database_ = ""; /** + * + * *
      * Database name.
      * 
* * string database = 2; + * * @return The database. */ @java.lang.Override @@ -9176,29 +10982,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 { @@ -9209,37 +11015,61 @@ public java.lang.String getDatabase() { public static final int TYPE_FIELD_NUMBER = 3; 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; + * + * * @return The type. */ - @java.lang.Override public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType getType() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType result = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType.forNumber(type_); - return result == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .DatabaseType + getType() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType + result = + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .DatabaseType.forNumber(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 @@ -9247,33 +11077,53 @@ 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() { - return credential_ == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.getDefaultInstance() : credential_; + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredentialOrBuilder + getCredentialOrBuilder() { + return credential_ == null + ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + .getDefaultInstance() + : credential_; } public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object serviceAccountId_ = ""; /** + * + * *
      * Output only. The account ID of the service used for the purpose of this
      * connection.
@@ -9283,6 +11133,7 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCred
      * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAccountId. */ @java.lang.Override @@ -9291,14 +11142,15 @@ public java.lang.String getServiceAccountId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountId_ = s; return s; } } /** + * + * *
      * Output only. The account ID of the service used for the purpose of this
      * connection.
@@ -9308,16 +11160,15 @@ public java.lang.String getServiceAccountId() {
      * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAccountId. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountIdBytes() { + public com.google.protobuf.ByteString getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountId_ = b; return b; } else { @@ -9326,6 +11177,7 @@ public java.lang.String getServiceAccountId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -9337,15 +11189,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, database_); } - if (type_ != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType.DATABASE_TYPE_UNSPECIFIED.getNumber()) { + if (type_ + != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .DatabaseType.DATABASE_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, type_); } if (credential_ != null) { @@ -9369,13 +11223,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, database_); } - if (type_ != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType.DATABASE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, type_); + if (type_ + != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .DatabaseType.DATABASE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_); } if (credential_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCredential()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCredential()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, serviceAccountId_); @@ -9388,25 +11243,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.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 (!getServiceAccountId() - .equals(other.getServiceAccountId())) return false; + if (!getServiceAccountId().equals(other.getServiceAccountId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -9435,88 +11289,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 @@ -9526,39 +11393,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() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -9576,19 +11448,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); } @@ -9596,14 +11472,20 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + 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); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties result) { + private void buildPartial0( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.instanceId_ = instanceId_; @@ -9615,9 +11497,8 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.Connecti result.type_ = type_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.credential_ = credentialBuilder_ == null - ? credential_ - : credentialBuilder_.build(); + result.credential_ = + credentialBuilder_ == null ? credential_ : credentialBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.serviceAccountId_ = serviceAccountId_; @@ -9628,46 +11509,56 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.Connecti 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_; bitField0_ |= 0x00000001; @@ -9715,39 +11606,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - instanceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - database_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - type_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - input.readMessage( - getCredentialFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - serviceAccountId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + database_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage(getCredentialFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + serviceAccountId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -9757,22 +11652,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -9781,20 +11679,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 { @@ -9802,28 +11701,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setInstanceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } instanceId_ = value; bitField0_ |= 0x00000001; 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() { @@ -9833,17 +11739,21 @@ public Builder clearInstanceId() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); instanceId_ = value; bitField0_ |= 0x00000001; @@ -9853,18 +11763,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; @@ -9873,20 +11785,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 { @@ -9894,28 +11807,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatabase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } database_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Database name.
        * 
* * string database = 2; + * * @return This builder for chaining. */ public Builder clearDatabase() { @@ -9925,17 +11845,21 @@ public Builder clearDatabase() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); database_ = value; bitField0_ |= 0x00000002; @@ -9945,22 +11869,31 @@ 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. */ @@ -9971,28 +11904,47 @@ public Builder setTypeValue(int value) { 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() { - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType result = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType.forNumber(type_); - return result == null ? com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType.UNRECOGNIZED : result; + public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .DatabaseType + getType() { + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties.DatabaseType + result = + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlProperties + .DatabaseType.forNumber(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(); } @@ -10002,11 +11954,15 @@ public Builder setType(com.google.cloud.bigquery.connection.v1beta1.ConnectionPr 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() { @@ -10016,43 +11972,68 @@ public Builder clearType() { 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 ((bitField0_ & 0x00000008) != 0); } /** + * + * *
        * 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(); @@ -10066,14 +12047,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(); } else { @@ -10084,17 +12070,24 @@ 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 (((bitField0_ & 0x00000008) != 0) && - credential_ != null && - credential_ != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && credential_ != null + && credential_ + != com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential + .getDefaultInstance()) { getCredentialBuilder().mergeFrom(value); } else { credential_ = value; @@ -10107,11 +12100,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() { bitField0_ = (bitField0_ & ~0x00000008); @@ -10124,48 +12121,72 @@ 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() { bitField0_ |= 0x00000008; 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_; @@ -10173,6 +12194,8 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCred private java.lang.Object serviceAccountId_ = ""; /** + * + * *
        * Output only. The account ID of the service used for the purpose of this
        * connection.
@@ -10182,13 +12205,13 @@ public com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCred
        * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAccountId. */ public java.lang.String getServiceAccountId() { java.lang.Object ref = serviceAccountId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountId_ = s; return s; @@ -10197,6 +12220,8 @@ public java.lang.String getServiceAccountId() { } } /** + * + * *
        * Output only. The account ID of the service used for the purpose of this
        * connection.
@@ -10206,15 +12231,14 @@ public java.lang.String getServiceAccountId() {
        * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAccountId. */ - public com.google.protobuf.ByteString - getServiceAccountIdBytes() { + public com.google.protobuf.ByteString getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountId_ = b; return b; } else { @@ -10222,6 +12246,8 @@ public java.lang.String getServiceAccountId() { } } /** + * + * *
        * Output only. The account ID of the service used for the purpose of this
        * connection.
@@ -10231,18 +12257,22 @@ public java.lang.String getServiceAccountId() {
        * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The serviceAccountId to set. * @return This builder for chaining. */ - public Builder setServiceAccountId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAccountId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } serviceAccountId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
        * Output only. The account ID of the service used for the purpose of this
        * connection.
@@ -10252,6 +12282,7 @@ public Builder setServiceAccountId(
        * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearServiceAccountId() { @@ -10261,6 +12292,8 @@ public Builder clearServiceAccountId() { return this; } /** + * + * *
        * Output only. The account ID of the service used for the purpose of this
        * connection.
@@ -10270,18 +12303,21 @@ public Builder clearServiceAccountId() {
        * 
* * string service_account_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for serviceAccountId to set. * @return This builder for chaining. */ - public Builder setServiceAccountIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAccountIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); serviceAccountId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10294,41 +12330,46 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -10340,72 +12381,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_ = ""; @@ -10413,38 +12468,44 @@ 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; } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object username_ = ""; /** + * + * *
      * The username for the credential.
      * 
* * string username = 1; + * * @return The username. */ @java.lang.Override @@ -10453,29 +12514,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 { @@ -10484,14 +12545,18 @@ public java.lang.String getUsername() { } public static final int PASSWORD_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object password_ = ""; /** + * + * *
      * The password for the credential.
      * 
* * string password = 2; + * * @return The password. */ @java.lang.Override @@ -10500,29 +12565,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 { @@ -10531,6 +12596,7 @@ public java.lang.String getPassword() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10542,8 +12608,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, username_); } @@ -10573,17 +12638,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -10604,88 +12670,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 @@ -10695,39 +12774,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() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -10738,19 +12822,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); } @@ -10758,14 +12846,20 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + 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); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential result) { + private void buildPartial0( + com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CloudSqlCredential result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.username_ = username_; @@ -10779,46 +12873,56 @@ private void buildPartial0(com.google.cloud.bigquery.connection.v1beta1.Connecti 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_; bitField0_ |= 0x00000001; @@ -10855,22 +12959,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - password_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -10880,22 +12987,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -10904,20 +13014,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 { @@ -10925,28 +13036,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } username_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The username for the credential.
        * 
* * string username = 1; + * * @return This builder for chaining. */ public Builder clearUsername() { @@ -10956,17 +13074,21 @@ public Builder clearUsername() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000001; @@ -10976,18 +13098,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; @@ -10996,20 +13120,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 { @@ -11017,28 +13142,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } password_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * The password for the credential.
        * 
* * string password = 2; + * * @return This builder for chaining. */ public Builder clearPassword() { @@ -11048,23 +13180,28 @@ public Builder clearPassword() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -11077,41 +13214,46 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -11123,272 +13265,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\"\324\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\022\037\n\022serv" + - "ice_account_id\030\005 \001(\tB\003\340A\003\"F\n\014DatabaseTyp" + - "e\022\035\n\031DATABASE_TYPE_UNSPECIFIED\020\000\022\014\n\010POST" + - "GRES\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(\t2\230\020\n\021" + - "ConnectionService\022\367\001\n\020CreateConnection\022A" + - ".google.cloud.bigquery.connection.v1beta" + - "1.CreateConnectionRequest\0324.google.cloud" + - ".bigquery.connection.v1beta1.Connection\"" + - "j\202\323\344\223\002B\"4/v1beta1/{parent=projects/*/loc" + - "ations/*}/connections:\nconnection\332A\037pare" + - "nt,connection,connection_id\022\312\001\n\rGetConne" + - "ction\022>.google.cloud.bigquery.connection" + - ".v1beta1.GetConnectionRequest\0324.google.c" + - "loud.bigquery.connection.v1beta1.Connect" + - "ion\"C\202\323\344\223\0026\0224/v1beta1/{name=projects/*/l" + - "ocations/*/connections/*}\332A\004name\022\351\001\n\017Lis" + - "tConnections\022@.google.cloud.bigquery.con" + - "nection.v1beta1.ListConnectionsRequest\032A" + - ".google.cloud.bigquery.connection.v1beta" + - "1.ListConnectionsResponse\"Q\202\323\344\223\0026\0224/v1be" + - "ta1/{parent=projects/*/locations/*}/conn" + - "ections\332A\022parent,max_results\022\363\001\n\020UpdateC" + - "onnection\022A.google.cloud.bigquery.connec" + - "tion.v1beta1.UpdateConnectionRequest\0324.g" + - "oogle.cloud.bigquery.connection.v1beta1." + - "Connection\"f\202\323\344\223\002B24/v1beta1/{name=proje" + - "cts/*/locations/*/connections/*}:\nconnec" + - "tion\332A\033name,connection,update_mask\022\350\001\n\032U" + - "pdateConnectionCredential\022K.google.cloud" + - ".bigquery.connection.v1beta1.UpdateConne" + - "ctionCredentialRequest\032\026.google.protobuf" + - ".Empty\"e\202\323\344\223\002M2?/v1beta1/{name=projects/" + - "*/locations/*/connections/*/credential}:" + - "\ncredential\332A\017name,credential\022\262\001\n\020Delete" + - "Connection\022A.google.cloud.bigquery.conne" + - "ction.v1beta1.DeleteConnectionRequest\032\026." + - "google.protobuf.Empty\"C\202\323\344\223\0026*4/v1beta1/" + - "{name=projects/*/locations/*/connections" + - "/*}\332A\004name\022\256\001\n\014GetIamPolicy\022\".google.iam" + - ".v1.GetIamPolicyRequest\032\025.google.iam.v1." + - "Policy\"c\202\323\344\223\002J\"E/v1beta1/{resource=proje" + - "cts/*/locations/*/connections/*}:getIamP" + - "olicy:\001*\332A\020resource,options\022\255\001\n\014SetIamPo" + - "licy\022\".google.iam.v1.SetIamPolicyRequest" + - "\032\025.google.iam.v1.Policy\"b\202\323\344\223\002J\"E/v1beta" + - "1/{resource=projects/*/locations/*/conne" + - "ctions/*}:setIamPolicy:\001*\332A\017resource,pol" + - "icy\022\330\001\n\022TestIamPermissions\022(.google.iam." + - "v1.TestIamPermissionsRequest\032).google.ia" + - "m.v1.TestIamPermissionsResponse\"m\202\323\344\223\002P\"" + - "K/v1beta1/{resource=projects/*/locations" + - "/*/connections/*}:testIamPermissions:\001*\332" + - "A\024resource,permissions\032~\312A!bigqueryconne" + - "ction.googleapis.com\322AWhttps://www.googl" + - "eapis.com/auth/bigquery,https://www.goog" + - "leapis.com/auth/cloud-platformB\343\001\n,com.g" + - "oogle.cloud.bigquery.connection.v1beta1B" + - "\017ConnectionProtoZLcloud.google.com/go/bi" + - "gquery/connection/apiv1beta1/connectionp" + - "b;connectionpb\252\002(Google.Cloud.BigQuery.C" + - "onnection.V1Beta1\312\002(Google\\Cloud\\BigQuer" + - "y\\Connection\\V1beta1b\006proto3" + "\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\"\324\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\022\037\n\022serv" + + "ice_account_id\030\005 \001(\tB\003\340A\003\"F\n\014DatabaseTyp" + + "e\022\035\n\031DATABASE_TYPE_UNSPECIFIED\020\000\022\014\n\010POST" + + "GRES\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(\t2\230\020\n\021" + + "ConnectionService\022\367\001\n\020CreateConnection\022A" + + ".google.cloud.bigquery.connection.v1beta" + + "1.CreateConnectionRequest\0324.google.cloud" + + ".bigquery.connection.v1beta1.Connection\"" + + "j\202\323\344\223\002B\"4/v1beta1/{parent=projects/*/loc" + + "ations/*}/connections:\nconnection\332A\037pare" + + "nt,connection,connection_id\022\312\001\n\rGetConne" + + "ction\022>.google.cloud.bigquery.connection" + + ".v1beta1.GetConnectionRequest\0324.google.c" + + "loud.bigquery.connection.v1beta1.Connect" + + "ion\"C\202\323\344\223\0026\0224/v1beta1/{name=projects/*/l" + + "ocations/*/connections/*}\332A\004name\022\351\001\n\017Lis" + + "tConnections\022@.google.cloud.bigquery.con" + + "nection.v1beta1.ListConnectionsRequest\032A" + + ".google.cloud.bigquery.connection.v1beta" + + "1.ListConnectionsResponse\"Q\202\323\344\223\0026\0224/v1be" + + "ta1/{parent=projects/*/locations/*}/conn" + + "ections\332A\022parent,max_results\022\363\001\n\020UpdateC" + + "onnection\022A.google.cloud.bigquery.connec" + + "tion.v1beta1.UpdateConnectionRequest\0324.g" + + "oogle.cloud.bigquery.connection.v1beta1." + + "Connection\"f\202\323\344\223\002B24/v1beta1/{name=proje" + + "cts/*/locations/*/connections/*}:\nconnec" + + "tion\332A\033name,connection,update_mask\022\350\001\n\032U" + + "pdateConnectionCredential\022K.google.cloud" + + ".bigquery.connection.v1beta1.UpdateConne" + + "ctionCredentialRequest\032\026.google.protobuf" + + ".Empty\"e\202\323\344\223\002M2?/v1beta1/{name=projects/" + + "*/locations/*/connections/*/credential}:" + + "\ncredential\332A\017name,credential\022\262\001\n\020Delete" + + "Connection\022A.google.cloud.bigquery.conne" + + "ction.v1beta1.DeleteConnectionRequest\032\026." + + "google.protobuf.Empty\"C\202\323\344\223\0026*4/v1beta1/" + + "{name=projects/*/locations/*/connections" + + "/*}\332A\004name\022\256\001\n\014GetIamPolicy\022\".google.iam" + + ".v1.GetIamPolicyRequest\032\025.google.iam.v1." + + "Policy\"c\202\323\344\223\002J\"E/v1beta1/{resource=proje" + + "cts/*/locations/*/connections/*}:getIamP" + + "olicy:\001*\332A\020resource,options\022\255\001\n\014SetIamPo" + + "licy\022\".google.iam.v1.SetIamPolicyRequest" + + "\032\025.google.iam.v1.Policy\"b\202\323\344\223\002J\"E/v1beta" + + "1/{resource=projects/*/locations/*/conne" + + "ctions/*}:setIamPolicy:\001*\332A\017resource,pol" + + "icy\022\330\001\n\022TestIamPermissions\022(.google.iam." + + "v1.TestIamPermissionsRequest\032).google.ia" + + "m.v1.TestIamPermissionsResponse\"m\202\323\344\223\002P\"" + + "K/v1beta1/{resource=projects/*/locations" + + "/*/connections/*}:testIamPermissions:\001*\332" + + "A\024resource,permissions\032~\312A!bigqueryconne" + + "ction.googleapis.com\322AWhttps://www.googl" + + "eapis.com/auth/bigquery,https://www.goog" + + "leapis.com/auth/cloud-platformB\343\001\n,com.g" + + "oogle.cloud.bigquery.connection.v1beta1B" + + "\017ConnectionProtoZLcloud.google.com/go/bi" + + "gquery/connection/apiv1beta1/connectionp" + + "b;connectionpb\252\002(Google.Cloud.BigQuery.C" + + "onnection.V1Beta1\312\002(Google\\Cloud\\BigQuer" + + "y\\Connection\\V1beta1b\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(), - }); + 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", "ServiceAccountId", }); + 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", "ServiceAccountId", + }); 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); @@ -11398,8 +13559,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/java-bigqueryconnection/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/LocationName.java b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/LocationName.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/LocationName.java rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/LocationName.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/proto/google/cloud/bigquery/connection/v1beta1/connection.proto b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/src/main/proto/google/cloud/bigquery/connection/v1beta1/connection.proto similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/proto-google-cloud-bigqueryconnection-v1beta1/src/main/proto/google/cloud/bigquery/connection/v1beta1/connection.proto rename to java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/src/main/proto/google/cloud/bigquery/connection/v1beta1/connection.proto diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetCredentialsProvider.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetCredentialsProvider.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetCredentialsProvider1.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetCredentialsProvider1.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetEndpoint.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetEndpoint.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/AsyncCreateConnection.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/AsyncCreateConnection.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/AsyncCreateConnection.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/AsyncCreateConnection.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnection.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnection.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnection.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnection.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnectionLocationnameConnectionprotoconnectionString.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnectionLocationnameConnectionprotoconnectionString.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnectionLocationnameConnectionprotoconnectionString.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnectionLocationnameConnectionprotoconnectionString.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnectionStringConnectionprotoconnectionString.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnectionStringConnectionprotoconnectionString.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnectionStringConnectionprotoconnectionString.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/createconnection/SyncCreateConnectionStringConnectionprotoconnectionString.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/AsyncDeleteConnection.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/AsyncDeleteConnection.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/AsyncDeleteConnection.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/AsyncDeleteConnection.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnection.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnection.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnection.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnection.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnectionConnectionname.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnectionConnectionname.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnectionConnectionname.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnectionConnectionname.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnectionString.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnectionString.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnectionString.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/deleteconnection/SyncDeleteConnectionString.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/AsyncGetConnection.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/AsyncGetConnection.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/AsyncGetConnection.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/AsyncGetConnection.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnection.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnection.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnection.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnection.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnectionConnectionname.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnectionConnectionname.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnectionConnectionname.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnectionConnectionname.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnectionString.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnectionString.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnectionString.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getconnection/SyncGetConnectionString.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/AsyncGetIamPolicy.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/AsyncGetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/AsyncGetIamPolicy.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/AsyncGetIamPolicy.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicy.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicy.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicy.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicyResourcenameGetpolicyoptions.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicyResourcenameGetpolicyoptions.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicyResourcenameGetpolicyoptions.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicyResourcenameGetpolicyoptions.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicyStringGetpolicyoptions.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicyStringGetpolicyoptions.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicyStringGetpolicyoptions.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/getiampolicy/SyncGetIamPolicyStringGetpolicyoptions.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/AsyncListConnections.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/AsyncListConnections.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/AsyncListConnections.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/AsyncListConnections.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnections.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnections.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnections.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnections.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnectionsLocationnameUint32Value.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnectionsLocationnameUint32Value.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnectionsLocationnameUint32Value.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnectionsLocationnameUint32Value.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnectionsStringUint32Value.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnectionsStringUint32Value.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnectionsStringUint32Value.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/listconnections/SyncListConnectionsStringUint32Value.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/AsyncSetIamPolicy.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/AsyncSetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/AsyncSetIamPolicy.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/AsyncSetIamPolicy.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicy.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicy.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicy.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicyStringPolicy.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicyStringPolicy.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicyStringPolicy.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/setiampolicy/SyncSetIamPolicyStringPolicy.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/AsyncTestIamPermissions.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/AsyncTestIamPermissions.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/AsyncTestIamPermissions.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/AsyncTestIamPermissions.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissions.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissions.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissions.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissions.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissionsStringListstring.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissionsStringListstring.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissionsStringListstring.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/testiampermissions/SyncTestIamPermissionsStringListstring.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/AsyncUpdateConnection.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/AsyncUpdateConnection.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/AsyncUpdateConnection.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/AsyncUpdateConnection.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnection.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnection.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnection.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnection.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnectionConnectionnameConnectionprotoconnectionFieldmask.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnectionConnectionnameConnectionprotoconnectionFieldmask.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnectionConnectionnameConnectionprotoconnectionFieldmask.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnectionConnectionnameConnectionprotoconnectionFieldmask.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnectionStringConnectionprotoconnectionFieldmask.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnectionStringConnectionprotoconnectionFieldmask.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnectionStringConnectionprotoconnectionFieldmask.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnection/SyncUpdateConnectionStringConnectionprotoconnectionFieldmask.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/AsyncUpdateConnectionCredential.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/AsyncUpdateConnectionCredential.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/AsyncUpdateConnectionCredential.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/AsyncUpdateConnectionCredential.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/SyncUpdateConnectionCredential.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/SyncUpdateConnectionCredential.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/SyncUpdateConnectionCredential.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/SyncUpdateConnectionCredential.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/SyncUpdateConnectionCredentialStringConnectionprotoconnectioncredential.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/SyncUpdateConnectionCredentialStringConnectionprotoconnectioncredential.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/SyncUpdateConnectionCredentialStringConnectionprotoconnectioncredential.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservice/updateconnectioncredential/SyncUpdateConnectionCredentialStringConnectionprotoconnectioncredential.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservicesettings/createconnection/SyncCreateConnection.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservicesettings/createconnection/SyncCreateConnection.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservicesettings/createconnection/SyncCreateConnection.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/connectionservicesettings/createconnection/SyncCreateConnection.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/stub/connectionservicestubsettings/createconnection/SyncCreateConnection.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/stub/connectionservicestubsettings/createconnection/SyncCreateConnection.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1beta1/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/stub/connectionservicestubsettings/createconnection/SyncCreateConnection.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigquery/connection/v1beta1/stub/connectionservicestubsettings/createconnection/SyncCreateConnection.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetCredentialsProvider.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetCredentialsProvider.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetCredentialsProvider1.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetCredentialsProvider1.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetEndpoint.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetEndpoint.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/AsyncCreateConnection.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/AsyncCreateConnection.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/AsyncCreateConnection.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/AsyncCreateConnection.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnection.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnection.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnection.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnection.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnectionLocationnameConnectionString.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnectionLocationnameConnectionString.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnectionLocationnameConnectionString.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnectionLocationnameConnectionString.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnectionStringConnectionString.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnectionStringConnectionString.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnectionStringConnectionString.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/createconnection/SyncCreateConnectionStringConnectionString.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/AsyncDeleteConnection.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/AsyncDeleteConnection.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/AsyncDeleteConnection.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/AsyncDeleteConnection.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnection.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnection.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnection.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnection.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnectionConnectionname.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnectionConnectionname.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnectionConnectionname.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnectionConnectionname.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnectionString.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnectionString.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnectionString.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/deleteconnection/SyncDeleteConnectionString.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/AsyncGetConnection.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/AsyncGetConnection.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/AsyncGetConnection.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/AsyncGetConnection.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnection.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnection.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnection.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnection.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnectionConnectionname.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnectionConnectionname.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnectionConnectionname.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnectionConnectionname.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnectionString.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnectionString.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnectionString.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getconnection/SyncGetConnectionString.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/AsyncGetIamPolicy.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/AsyncGetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/AsyncGetIamPolicy.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/AsyncGetIamPolicy.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicy.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicy.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicy.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicyResourcenameGetpolicyoptions.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicyResourcenameGetpolicyoptions.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicyResourcenameGetpolicyoptions.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicyResourcenameGetpolicyoptions.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicyStringGetpolicyoptions.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicyStringGetpolicyoptions.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicyStringGetpolicyoptions.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/getiampolicy/SyncGetIamPolicyStringGetpolicyoptions.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/AsyncListConnections.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/AsyncListConnections.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/AsyncListConnections.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/AsyncListConnections.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/AsyncListConnectionsPaged.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/AsyncListConnectionsPaged.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/AsyncListConnectionsPaged.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/AsyncListConnectionsPaged.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnections.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnections.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnections.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnections.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnectionsLocationname.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnectionsLocationname.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnectionsLocationname.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnectionsLocationname.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnectionsString.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnectionsString.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnectionsString.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/listconnections/SyncListConnectionsString.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/AsyncSetIamPolicy.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/AsyncSetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/AsyncSetIamPolicy.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/AsyncSetIamPolicy.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicy.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicy.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicy.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicyStringPolicy.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicyStringPolicy.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicyStringPolicy.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/setiampolicy/SyncSetIamPolicyStringPolicy.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/AsyncTestIamPermissions.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/AsyncTestIamPermissions.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/AsyncTestIamPermissions.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/AsyncTestIamPermissions.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissions.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissions.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissions.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissions.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissionsStringListstring.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissionsStringListstring.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissionsStringListstring.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/testiampermissions/SyncTestIamPermissionsStringListstring.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/AsyncUpdateConnection.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/AsyncUpdateConnection.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/AsyncUpdateConnection.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/AsyncUpdateConnection.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnection.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnection.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnection.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnection.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnectionConnectionnameConnectionFieldmask.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnectionConnectionnameConnectionFieldmask.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnectionConnectionnameConnectionFieldmask.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnectionConnectionnameConnectionFieldmask.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnectionStringConnectionFieldmask.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnectionStringConnectionFieldmask.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnectionStringConnectionFieldmask.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservice/updateconnection/SyncUpdateConnectionStringConnectionFieldmask.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservicesettings/createconnection/SyncCreateConnection.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservicesettings/createconnection/SyncCreateConnection.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservicesettings/createconnection/SyncCreateConnection.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/connectionservicesettings/createconnection/SyncCreateConnection.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/stub/connectionservicestubsettings/createconnection/SyncCreateConnection.java b/java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/stub/connectionservicestubsettings/createconnection/SyncCreateConnection.java similarity index 100% rename from owl-bot-staging/java-bigqueryconnection/v1/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/stub/connectionservicestubsettings/createconnection/SyncCreateConnection.java rename to java-bigqueryconnection/samples/snippets/generated/com/google/cloud/bigqueryconnection/v1/stub/connectionservicestubsettings/createconnection/SyncCreateConnection.java diff --git a/owl-bot-staging/java-bigqueryconnection/v1/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java b/owl-bot-staging/java-bigqueryconnection/v1/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java deleted file mode 100644 index f9bfa8081d96..000000000000 --- a/owl-bot-staging/java-bigqueryconnection/v1/grpc-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionServiceGrpc.java +++ /dev/null @@ -1,945 +0,0 @@ -package com.google.cloud.bigquery.connection.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Manages external data source connections and credentials.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/connection/v1/connection.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ConnectionServiceGrpc { - - private ConnectionServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.bigquery.connection.v1.ConnectionService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateConnection", - requestType = com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.class, - responseType = com.google.cloud.bigquery.connection.v1.Connection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateConnectionMethod() { - io.grpc.MethodDescriptor getCreateConnectionMethod; - if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { - ConnectionServiceGrpc.getCreateConnectionMethod = getCreateConnectionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("CreateConnection")) - .build(); - } - } - } - return getCreateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetConnection", - requestType = com.google.cloud.bigquery.connection.v1.GetConnectionRequest.class, - responseType = com.google.cloud.bigquery.connection.v1.Connection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetConnectionMethod() { - io.grpc.MethodDescriptor getGetConnectionMethod; - if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { - ConnectionServiceGrpc.getGetConnectionMethod = getGetConnectionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.GetConnectionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("GetConnection")) - .build(); - } - } - } - return getGetConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor getListConnectionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListConnections", - requestType = com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.class, - responseType = com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListConnectionsMethod() { - io.grpc.MethodDescriptor getListConnectionsMethod; - if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { - ConnectionServiceGrpc.getListConnectionsMethod = getListConnectionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnections")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.ListConnectionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("ListConnections")) - .build(); - } - } - } - return getListConnectionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateConnection", - requestType = com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.class, - responseType = com.google.cloud.bigquery.connection.v1.Connection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateConnectionMethod() { - io.grpc.MethodDescriptor getUpdateConnectionMethod; - if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { - ConnectionServiceGrpc.getUpdateConnectionMethod = getUpdateConnectionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.Connection.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("UpdateConnection")) - .build(); - } - } - } - return getUpdateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteConnection", - requestType = com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteConnectionMethod() { - io.grpc.MethodDescriptor getDeleteConnectionMethod; - if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { - ConnectionServiceGrpc.getDeleteConnectionMethod = getDeleteConnectionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("DeleteConnection")) - .build(); - } - } - } - return getDeleteConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", - requestType = com.google.iam.v1.GetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetIamPolicyMethod() { - io.grpc.MethodDescriptor getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { - ConnectionServiceGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", - requestType = com.google.iam.v1.SetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetIamPolicyMethod() { - io.grpc.MethodDescriptor getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { - ConnectionServiceGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", - requestType = com.google.iam.v1.TestIamPermissionsRequest.class, - responseType = com.google.iam.v1.TestIamPermissionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) == null) { - ConnectionServiceGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static ConnectionServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceStub(channel, callOptions); - } - }; - return ConnectionServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ConnectionServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceBlockingStub(channel, callOptions); - } - }; - return ConnectionServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static ConnectionServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceFutureStub(channel, callOptions); - } - }; - return ConnectionServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Manages external data source connections and credentials.
-   * 
- */ - public static abstract class ConnectionServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates a new connection.
-     * 
- */ - public void createConnection(com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateConnectionMethod(), responseObserver); - } - - /** - *
-     * Returns specified connection.
-     * 
- */ - public void getConnection(com.google.cloud.bigquery.connection.v1.GetConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConnectionMethod(), responseObserver); - } - - /** - *
-     * Returns a list of connections in the given project.
-     * 
- */ - public void listConnections(com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListConnectionsMethod(), responseObserver); - } - - /** - *
-     * Updates the specified connection. For security reasons, also resets
-     * credential if connection properties are in the update field mask.
-     * 
- */ - public void updateConnection(com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConnectionMethod(), responseObserver); - } - - /** - *
-     * Deletes connection and associated credential.
-     * 
- */ - public void deleteConnection(com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteConnectionMethod(), responseObserver); - } - - /** - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); - } - - /** - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
-     * 
- */ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); - } - - /** - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a `NOT_FOUND` error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection>( - this, METHODID_CREATE_CONNECTION))) - .addMethod( - getGetConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1.GetConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection>( - this, METHODID_GET_CONNECTION))) - .addMethod( - getListConnectionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest, - com.google.cloud.bigquery.connection.v1.ListConnectionsResponse>( - this, METHODID_LIST_CONNECTIONS))) - .addMethod( - getUpdateConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest, - com.google.cloud.bigquery.connection.v1.Connection>( - this, METHODID_UPDATE_CONNECTION))) - .addMethod( - getDeleteConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_CONNECTION))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, - com.google.iam.v1.Policy>( - this, METHODID_GET_IAM_POLICY))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, - com.google.iam.v1.Policy>( - this, METHODID_SET_IAM_POLICY))) - .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - this, METHODID_TEST_IAM_PERMISSIONS))) - .build(); - } - } - - /** - *
-   * Manages external data source connections and credentials.
-   * 
- */ - public static final class ConnectionServiceStub extends io.grpc.stub.AbstractAsyncStub { - private ConnectionServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConnectionServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceStub(channel, callOptions); - } - - /** - *
-     * Creates a new connection.
-     * 
- */ - public void createConnection(com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateConnectionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns specified connection.
-     * 
- */ - public void getConnection(com.google.cloud.bigquery.connection.v1.GetConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConnectionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns a list of connections in the given project.
-     * 
- */ - public void listConnections(com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListConnectionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the specified connection. For security reasons, also resets
-     * credential if connection properties are in the update field mask.
-     * 
- */ - public void updateConnection(com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateConnectionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes connection and associated credential.
-     * 
- */ - public void deleteConnection(com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteConnectionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
-     * 
- */ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a `NOT_FOUND` error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Manages external data source connections and credentials.
-   * 
- */ - public static final class ConnectionServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private ConnectionServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConnectionServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a new connection.
-     * 
- */ - public com.google.cloud.bigquery.connection.v1.Connection createConnection(com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateConnectionMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns specified connection.
-     * 
- */ - public com.google.cloud.bigquery.connection.v1.Connection getConnection(com.google.cloud.bigquery.connection.v1.GetConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConnectionMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns a list of connections in the given project.
-     * 
- */ - public com.google.cloud.bigquery.connection.v1.ListConnectionsResponse listConnections(com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListConnectionsMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the specified connection. For security reasons, also resets
-     * credential if connection properties are in the update field mask.
-     * 
- */ - public com.google.cloud.bigquery.connection.v1.Connection updateConnection(com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateConnectionMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes connection and associated credential.
-     * 
- */ - public com.google.protobuf.Empty deleteConnection(com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteConnectionMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
-     * 
- */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a `NOT_FOUND` error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Manages external data source connections and credentials.
-   * 
- */ - public static final class ConnectionServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private ConnectionServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConnectionServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a new connection.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createConnection( - com.google.cloud.bigquery.connection.v1.CreateConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateConnectionMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns specified connection.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getConnection( - com.google.cloud.bigquery.connection.v1.GetConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetConnectionMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns a list of connections in the given project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listConnections( - com.google.cloud.bigquery.connection.v1.ListConnectionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListConnectionsMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the specified connection. For security reasons, also resets
-     * credential if connection properties are in the update field mask.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateConnection( - com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateConnectionMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes connection and associated credential.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteConnection( - com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteConnectionMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns permissions that a caller has on the specified resource.
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a `NOT_FOUND` error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_CONNECTION = 0; - private static final int METHODID_GET_CONNECTION = 1; - private static final int METHODID_LIST_CONNECTIONS = 2; - private static final int METHODID_UPDATE_CONNECTION = 3; - private static final int METHODID_DELETE_CONNECTION = 4; - private static final int METHODID_GET_IAM_POLICY = 5; - private static final int METHODID_SET_IAM_POLICY = 6; - private static final int METHODID_TEST_IAM_PERMISSIONS = 7; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final ConnectionServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ConnectionServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_CONNECTION: - serviceImpl.createConnection((com.google.cloud.bigquery.connection.v1.CreateConnectionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CONNECTION: - serviceImpl.getConnection((com.google.cloud.bigquery.connection.v1.GetConnectionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CONNECTIONS: - serviceImpl.listConnections((com.google.cloud.bigquery.connection.v1.ListConnectionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CONNECTION: - serviceImpl.updateConnection((com.google.cloud.bigquery.connection.v1.UpdateConnectionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CONNECTION: - serviceImpl.deleteConnection((com.google.cloud.bigquery.connection.v1.DeleteConnectionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class ConnectionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ConnectionServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.bigquery.connection.v1.ConnectionOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ConnectionService"); - } - } - - private static final class ConnectionServiceFileDescriptorSupplier - extends ConnectionServiceBaseDescriptorSupplier { - ConnectionServiceFileDescriptorSupplier() {} - } - - private static final class ConnectionServiceMethodDescriptorSupplier - extends ConnectionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ConnectionServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (ConnectionServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ConnectionServiceFileDescriptorSupplier()) - .addMethod(getCreateConnectionMethod()) - .addMethod(getGetConnectionMethod()) - .addMethod(getListConnectionsMethod()) - .addMethod(getUpdateConnectionMethod()) - .addMethod(getDeleteConnectionMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java deleted file mode 100644 index 8e6cf986ad93..000000000000 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/ConnectionOuterClass.java +++ /dev/null @@ -1,402 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/connection/v1/connection.proto - -package com.google.cloud.bigquery.connection.v1; - -public final class ConnectionOuterClass { - private ConnectionOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_Connection_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_CloudSqlProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_CloudSqlCredential_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_CloudSpannerProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_AwsProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_AzureProperties_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_AzureProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_MetastoreServiceConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_MetastoreServiceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_SparkHistoryServerConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_SparkHistoryServerConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_connection_v1_SparkProperties_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_connection_v1_SparkProperties_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/bigquery/connection/v1/co" + - "nnection.proto\022#google.cloud.bigquery.co" + - "nnection.v1\032\034google/api/annotations.prot" + - "o\032\027google/api/client.proto\032\037google/api/f" + - "ield_behavior.proto\032\031google/api/resource" + - ".proto\032\036google/iam/v1/iam_policy.proto\032\032" + - "google/iam/v1/policy.proto\032\033google/proto" + - "buf/empty.proto\032 google/protobuf/field_m" + - "ask.proto\"\272\001\n\027CreateConnectionRequest\0229\n" + - "\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googlea" + - "pis.com/Location\022\032\n\rconnection_id\030\002 \001(\tB" + - "\003\340A\001\022H\n\nconnection\030\003 \001(\0132/.google.cloud." + - "bigquery.connection.v1.ConnectionB\003\340A\002\"Z" + - "\n\024GetConnectionRequest\022B\n\004name\030\001 \001(\tB4\340A" + - "\002\372A.\n,bigqueryconnection.googleapis.com/" + - "Connection\"\177\n\026ListConnectionsRequest\0229\n\006" + - "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + - "is.com/Location\022\026\n\tpage_size\030\004 \001(\005B\003\340A\002\022" + - "\022\n\npage_token\030\003 \001(\t\"x\n\027ListConnectionsRe" + - "sponse\022\027\n\017next_page_token\030\001 \001(\t\022D\n\013conne" + - "ctions\030\002 \003(\0132/.google.cloud.bigquery.con" + - "nection.v1.Connection\"\335\001\n\027UpdateConnecti" + - "onRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,bigquer" + - "yconnection.googleapis.com/Connection\022H\n" + - "\nconnection\030\002 \001(\0132/.google.cloud.bigquer" + - "y.connection.v1.ConnectionB\003\340A\002\0224\n\013updat" + - "e_mask\030\003 \001(\0132\032.google.protobuf.FieldMask" + - "B\003\340A\002\"]\n\027DeleteConnectionRequest\022B\n\004name" + - "\030\001 \001(\tB4\340A\002\372A.\n,bigqueryconnection.googl" + - "eapis.com/Connection\"\360\005\n\nConnection\022\014\n\004n" + - "ame\030\001 \001(\t\022\025\n\rfriendly_name\030\002 \001(\t\022\023\n\013desc" + - "ription\030\003 \001(\t\022L\n\tcloud_sql\030\004 \001(\01327.googl" + - "e.cloud.bigquery.connection.v1.CloudSqlP" + - "ropertiesH\000\022A\n\003aws\030\010 \001(\01322.google.cloud." + - "bigquery.connection.v1.AwsPropertiesH\000\022E" + - "\n\005azure\030\013 \001(\01324.google.cloud.bigquery.co" + - "nnection.v1.AzurePropertiesH\000\022T\n\rcloud_s" + - "panner\030\025 \001(\0132;.google.cloud.bigquery.con" + - "nection.v1.CloudSpannerPropertiesH\000\022V\n\016c" + - "loud_resource\030\026 \001(\0132<.google.cloud.bigqu" + - "ery.connection.v1.CloudResourcePropertie" + - "sH\000\022E\n\005spark\030\027 \001(\01324.google.cloud.bigque" + - "ry.connection.v1.SparkPropertiesH\000\022\032\n\rcr" + - "eation_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}/loca" + - "tions/{location}/connections/{connection" + - "}B\014\n\nproperties\"\312\002\n\022CloudSqlProperties\022\023" + - "\n\013instance_id\030\001 \001(\t\022\020\n\010database\030\002 \001(\t\022R\n" + - "\004type\030\003 \001(\0162D.google.cloud.bigquery.conn" + - "ection.v1.CloudSqlProperties.DatabaseTyp" + - "e\022P\n\ncredential\030\004 \001(\01327.google.cloud.big" + - "query.connection.v1.CloudSqlCredentialB\003" + - "\340A\004\022\037\n\022service_account_id\030\005 \001(\tB\003\340A\003\"F\n\014" + - "DatabaseType\022\035\n\031DATABASE_TYPE_UNSPECIFIE" + - "D\020\000\022\014\n\010POSTGRES\020\001\022\t\n\005MYSQL\020\002\"8\n\022CloudSql" + - "Credential\022\020\n\010username\030\001 \001(\t\022\020\n\010password" + - "\030\002 \001(\t\"\201\001\n\026CloudSpannerProperties\022\020\n\010dat" + - "abase\030\001 \001(\t\022\027\n\017use_parallelism\030\002 \001(\010\022 \n\030" + - "use_serverless_analytics\030\003 \001(\010\022\032\n\rdataba" + - "se_role\030\004 \001(\tB\003\340A\001\"\317\001\n\rAwsProperties\022Z\n\022" + - "cross_account_role\030\002 \001(\01328.google.cloud." + - "bigquery.connection.v1.AwsCrossAccountRo" + - "leB\002\030\001H\000\022I\n\013access_role\030\003 \001(\01322.google.c" + - "loud.bigquery.connection.v1.AwsAccessRol" + - "eH\000B\027\n\025authentication_method\"^\n\023AwsCross" + - "AccountRole\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\rAwsAccessRole\022\023\n\013iam_role_id\030\001 \001" + - "(\t\022\020\n\010identity\030\002 \001(\t\"\315\001\n\017AzureProperties" + - "\022\030\n\013application\030\001 \001(\tB\003\340A\003\022\026\n\tclient_id\030" + - "\002 \001(\tB\003\340A\003\022\026\n\tobject_id\030\003 \001(\tB\003\340A\003\022\032\n\022cu" + - "stomer_tenant_id\030\004 \001(\t\022\024\n\014redirect_uri\030\005" + - " \001(\t\022\'\n\037federated_application_client_id\030" + - "\006 \001(\t\022\025\n\010identity\030\007 \001(\tB\003\340A\003\":\n\027CloudRes" + - "ourceProperties\022\037\n\022service_account_id\030\001 " + - "\001(\tB\003\340A\003\"]\n\026MetastoreServiceConfig\022C\n\021me" + - "tastore_service\030\001 \001(\tB(\340A\001\372A\"\n metastore" + - ".googleapis.com/Service\"]\n\030SparkHistoryS" + - "erverConfig\022A\n\020dataproc_cluster\030\001 \001(\tB\'\340" + - "A\001\372A!\n\037dataproc.googleapis.com/Cluster\"\377" + - "\001\n\017SparkProperties\022\037\n\022service_account_id" + - "\030\001 \001(\tB\003\340A\003\022b\n\030metastore_service_config\030" + - "\003 \001(\0132;.google.cloud.bigquery.connection" + - ".v1.MetastoreServiceConfigB\003\340A\001\022g\n\033spark" + - "_history_server_config\030\004 \001(\0132=.google.cl" + - "oud.bigquery.connection.v1.SparkHistoryS" + - "erverConfigB\003\340A\0012\314\r\n\021ConnectionService\022\350" + - "\001\n\020CreateConnection\022<.google.cloud.bigqu" + - "ery.connection.v1.CreateConnectionReques" + - "t\032/.google.cloud.bigquery.connection.v1." + - "Connection\"e\202\323\344\223\002=\"//v1/{parent=projects" + - "/*/locations/*}/connections:\nconnection\332" + - "A\037parent,connection,connection_id\022\273\001\n\rGe" + - "tConnection\0229.google.cloud.bigquery.conn" + - "ection.v1.GetConnectionRequest\032/.google." + - "cloud.bigquery.connection.v1.Connection\"" + - ">\202\323\344\223\0021\022//v1/{name=projects/*/locations/" + - "*/connections/*}\332A\004name\022\316\001\n\017ListConnecti" + - "ons\022;.google.cloud.bigquery.connection.v" + - "1.ListConnectionsRequest\032<.google.cloud." + - "bigquery.connection.v1.ListConnectionsRe" + - "sponse\"@\202\323\344\223\0021\022//v1/{parent=projects/*/l" + - "ocations/*}/connections\332A\006parent\022\344\001\n\020Upd" + - "ateConnection\022<.google.cloud.bigquery.co" + - "nnection.v1.UpdateConnectionRequest\032/.go" + - "ogle.cloud.bigquery.connection.v1.Connec" + - "tion\"a\202\323\344\223\002=2//v1/{name=projects/*/locat" + - "ions/*/connections/*}:\nconnection\332A\033name" + - ",connection,update_mask\022\250\001\n\020DeleteConnec" + - "tion\022<.google.cloud.bigquery.connection." + - "v1.DeleteConnectionRequest\032\026.google.prot" + - "obuf.Empty\">\202\323\344\223\0021*//v1/{name=projects/*" + - "/locations/*/connections/*}\332A\004name\022\251\001\n\014G" + - "etIamPolicy\022\".google.iam.v1.GetIamPolicy" + - "Request\032\025.google.iam.v1.Policy\"^\202\323\344\223\002E\"@" + - "/v1/{resource=projects/*/locations/*/con" + - "nections/*}:getIamPolicy:\001*\332A\020resource,o" + - "ptions\022\250\001\n\014SetIamPolicy\022\".google.iam.v1." + - "SetIamPolicyRequest\032\025.google.iam.v1.Poli" + - "cy\"]\202\323\344\223\002E\"@/v1/{resource=projects/*/loc" + - "ations/*/connections/*}:setIamPolicy:\001*\332" + - "A\017resource,policy\022\323\001\n\022TestIamPermissions" + - "\022(.google.iam.v1.TestIamPermissionsReque" + - "st\032).google.iam.v1.TestIamPermissionsRes" + - "ponse\"h\202\323\344\223\002K\"F/v1/{resource=projects/*/" + - "locations/*/connections/*}:testIamPermis" + - "sions:\001*\332A\024resource,permissions\032~\312A!bigq" + - "ueryconnection.googleapis.com\322AWhttps://" + - "www.googleapis.com/auth/bigquery,https:/" + - "/www.googleapis.com/auth/cloud-platformB" + - "\375\002\n\'com.google.cloud.bigquery.connection" + - ".v1P\001ZGcloud.google.com/go/bigquery/conn" + - "ection/apiv1/connectionpb;connectionpb\252\002" + - "#Google.Cloud.BigQuery.Connection.V1\312\002#G" + - "oogle\\Cloud\\BigQuery\\Connection\\V1\352AY\n\037d" + - "ataproc.googleapis.com/Cluster\0226projects" + - "/{project}/regions/{region}/clusters/{cl" + - "uster}\352A^\n metastore.googleapis.com/Serv" + - "ice\022:projects/{project}/locations/{locat" + - "ion}/services/{service}b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_CreateConnectionRequest_descriptor, - new java.lang.String[] { "Parent", "ConnectionId", "Connection", }); - internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_GetConnectionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_ListConnectionsResponse_descriptor, - new java.lang.String[] { "NextPageToken", "Connections", }); - internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_UpdateConnectionRequest_descriptor, - new java.lang.String[] { "Name", "Connection", "UpdateMask", }); - internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_DeleteConnectionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_bigquery_connection_v1_Connection_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_Connection_descriptor, - new java.lang.String[] { "Name", "FriendlyName", "Description", "CloudSql", "Aws", "Azure", "CloudSpanner", "CloudResource", "Spark", "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", "ServiceAccountId", }); - 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", "UseServerlessAnalytics", "DatabaseRole", }); - internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_bigquery_connection_v1_AwsProperties_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_AwsProperties_descriptor, - new java.lang.String[] { "CrossAccountRole", "AccessRole", "AuthenticationMethod", }); - internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_AwsCrossAccountRole_descriptor, - new java.lang.String[] { "IamRoleId", "IamUserId", "ExternalId", }); - internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_AwsAccessRole_descriptor, - new java.lang.String[] { "IamRoleId", "Identity", }); - internal_static_google_cloud_bigquery_connection_v1_AzureProperties_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_bigquery_connection_v1_AzureProperties_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_AzureProperties_descriptor, - new java.lang.String[] { "Application", "ClientId", "ObjectId", "CustomerTenantId", "RedirectUri", "FederatedApplicationClientId", "Identity", }); - internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_CloudResourceProperties_descriptor, - new java.lang.String[] { "ServiceAccountId", }); - internal_static_google_cloud_bigquery_connection_v1_MetastoreServiceConfig_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_bigquery_connection_v1_MetastoreServiceConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_MetastoreServiceConfig_descriptor, - new java.lang.String[] { "MetastoreService", }); - internal_static_google_cloud_bigquery_connection_v1_SparkHistoryServerConfig_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_bigquery_connection_v1_SparkHistoryServerConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_SparkHistoryServerConfig_descriptor, - new java.lang.String[] { "DataprocCluster", }); - internal_static_google_cloud_bigquery_connection_v1_SparkProperties_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_bigquery_connection_v1_SparkProperties_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_connection_v1_SparkProperties_descriptor, - new java.lang.String[] { "ServiceAccountId", "MetastoreServiceConfig", "SparkHistoryServerConfig", }); - 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.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequestOrBuilder.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/DeleteConnectionRequestOrBuilder.java deleted file mode 100644 index 2ad16f8a41b9..000000000000 --- a/owl-bot-staging/java-bigqueryconnection/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/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequestOrBuilder.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/GetConnectionRequestOrBuilder.java deleted file mode 100644 index 63fae6bed649..000000000000 --- a/owl-bot-staging/java-bigqueryconnection/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/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/MetastoreServiceConfigOrBuilder.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/MetastoreServiceConfigOrBuilder.java deleted file mode 100644 index 2cee12c1052e..000000000000 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/MetastoreServiceConfigOrBuilder.java +++ /dev/null @@ -1,33 +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 MetastoreServiceConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.MetastoreServiceConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Optional. Resource name of an existing Dataproc Metastore service.
-   * Example:
-   * * `projects/[project_id]/locations/[region]/services/[service_id]`
-   * 
- * - * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @return The metastoreService. - */ - java.lang.String getMetastoreService(); - /** - *
-   * Optional. Resource name of an existing Dataproc Metastore service.
-   * Example:
-   * * `projects/[project_id]/locations/[region]/services/[service_id]`
-   * 
- * - * string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @return The bytes for metastoreService. - */ - com.google.protobuf.ByteString - getMetastoreServiceBytes(); -} diff --git a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkHistoryServerConfigOrBuilder.java b/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkHistoryServerConfigOrBuilder.java deleted file mode 100644 index 994b69a90ae7..000000000000 --- a/owl-bot-staging/java-bigqueryconnection/v1/proto-google-cloud-bigqueryconnection-v1/src/main/java/com/google/cloud/bigquery/connection/v1/SparkHistoryServerConfigOrBuilder.java +++ /dev/null @@ -1,35 +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 SparkHistoryServerConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.connection.v1.SparkHistoryServerConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Optional. Resource name of an existing Dataproc Cluster to act as a Spark
-   * History Server for the connection.
-   * Example:
-   * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
-   * 
- * - * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @return The dataprocCluster. - */ - java.lang.String getDataprocCluster(); - /** - *
-   * Optional. Resource name of an existing Dataproc Cluster to act as a Spark
-   * History Server for the connection.
-   * Example:
-   * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
-   * 
- * - * string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @return The bytes for dataprocCluster. - */ - com.google.protobuf.ByteString - getDataprocClusterBytes(); -} diff --git a/owl-bot-staging/java-bigqueryconnection/v1beta1/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java b/owl-bot-staging/java-bigqueryconnection/v1beta1/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java deleted file mode 100644 index fa290692bcce..000000000000 --- a/owl-bot-staging/java-bigqueryconnection/v1beta1/grpc-google-cloud-bigqueryconnection-v1beta1/src/main/java/com/google/cloud/bigquery/connection/v1beta1/ConnectionServiceGrpc.java +++ /dev/null @@ -1,1031 +0,0 @@ -package com.google.cloud.bigquery.connection.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Manages external data source connections and credentials.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/connection/v1beta1/connection.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ConnectionServiceGrpc { - - private ConnectionServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.bigquery.connection.v1beta1.ConnectionService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateConnection", - requestType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest.class, - responseType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateConnectionMethod() { - io.grpc.MethodDescriptor getCreateConnectionMethod; - if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getCreateConnectionMethod = ConnectionServiceGrpc.getCreateConnectionMethod) == null) { - ConnectionServiceGrpc.getCreateConnectionMethod = getCreateConnectionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("CreateConnection")) - .build(); - } - } - } - return getCreateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetConnection", - requestType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.class, - responseType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetConnectionMethod() { - io.grpc.MethodDescriptor getGetConnectionMethod; - if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getGetConnectionMethod = ConnectionServiceGrpc.getGetConnectionMethod) == null) { - ConnectionServiceGrpc.getGetConnectionMethod = getGetConnectionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("GetConnection")) - .build(); - } - } - } - return getGetConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor getListConnectionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListConnections", - requestType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.class, - responseType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListConnectionsMethod() { - io.grpc.MethodDescriptor getListConnectionsMethod; - if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { - ConnectionServiceGrpc.getListConnectionsMethod = getListConnectionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnections")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("ListConnections")) - .build(); - } - } - } - return getListConnectionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateConnection", - requestType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest.class, - responseType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateConnectionMethod() { - io.grpc.MethodDescriptor getUpdateConnectionMethod; - if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getUpdateConnectionMethod = ConnectionServiceGrpc.getUpdateConnectionMethod) == null) { - ConnectionServiceGrpc.getUpdateConnectionMethod = getUpdateConnectionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.Connection.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("UpdateConnection")) - .build(); - } - } - } - return getUpdateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateConnectionCredentialMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateConnectionCredential", - requestType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateConnectionCredentialMethod() { - io.grpc.MethodDescriptor getUpdateConnectionCredentialMethod; - if ((getUpdateConnectionCredentialMethod = ConnectionServiceGrpc.getUpdateConnectionCredentialMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getUpdateConnectionCredentialMethod = ConnectionServiceGrpc.getUpdateConnectionCredentialMethod) == null) { - ConnectionServiceGrpc.getUpdateConnectionCredentialMethod = getUpdateConnectionCredentialMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConnectionCredential")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("UpdateConnectionCredential")) - .build(); - } - } - } - return getUpdateConnectionCredentialMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteConnection", - requestType = com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteConnectionMethod() { - io.grpc.MethodDescriptor getDeleteConnectionMethod; - if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getDeleteConnectionMethod = ConnectionServiceGrpc.getDeleteConnectionMethod) == null) { - ConnectionServiceGrpc.getDeleteConnectionMethod = getDeleteConnectionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("DeleteConnection")) - .build(); - } - } - } - return getDeleteConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", - requestType = com.google.iam.v1.GetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetIamPolicyMethod() { - io.grpc.MethodDescriptor getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getGetIamPolicyMethod = ConnectionServiceGrpc.getGetIamPolicyMethod) == null) { - ConnectionServiceGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", - requestType = com.google.iam.v1.SetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetIamPolicyMethod() { - io.grpc.MethodDescriptor getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getSetIamPolicyMethod = ConnectionServiceGrpc.getSetIamPolicyMethod) == null) { - ConnectionServiceGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", - requestType = com.google.iam.v1.TestIamPermissionsRequest.class, - responseType = com.google.iam.v1.TestIamPermissionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) == null) { - synchronized (ConnectionServiceGrpc.class) { - if ((getTestIamPermissionsMethod = ConnectionServiceGrpc.getTestIamPermissionsMethod) == null) { - ConnectionServiceGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static ConnectionServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceStub(channel, callOptions); - } - }; - return ConnectionServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ConnectionServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceBlockingStub(channel, callOptions); - } - }; - return ConnectionServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static ConnectionServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceFutureStub(channel, callOptions); - } - }; - return ConnectionServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Manages external data source connections and credentials.
-   * 
- */ - public static abstract class ConnectionServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates a new connection.
-     * 
- */ - public void createConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.CreateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateConnectionMethod(), responseObserver); - } - - /** - *
-     * Returns specified connection.
-     * 
- */ - public void getConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.GetConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConnectionMethod(), responseObserver); - } - - /** - *
-     * Returns a list of connections in the given project.
-     * 
- */ - public void listConnections(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.ListConnectionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListConnectionsMethod(), responseObserver); - } - - /** - *
-     * Updates the specified connection. For security reasons, also resets
-     * credential if connection properties are in the update field mask.
-     * 
- */ - public void updateConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConnectionMethod(), responseObserver); - } - - /** - *
-     * Sets the credential for the specified connection.
-     * 
- */ - public void updateConnectionCredential(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.UpdateConnectionCredentialRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConnectionCredentialMethod(), responseObserver); - } - - /** - *
-     * Deletes connection and associated credential.
-     * 
- */ - public void deleteConnection(com.google.cloud.bigquery.connection.v1beta1.ConnectionProto.DeleteConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteConnectionMethod(), responseObserver); - } - - /** - *
-     * Gets the access control policy for a resource.
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * 
- */ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); - } - - /** - *
-     * Sets the access control policy on the specified resource. Replaces any
-     * existing policy.
-     * Can return `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.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 `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.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 `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.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 `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_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; - } -}